Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: Docs add typedoc website (WIP) #128

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@
],
"devDependencies": {
"eslint": "^7.0.0",
"jest": "^26.5.3",
"jest": "^27.0.6",
"lerna": "^3.20.2",
"prettier": "^1.17.0",
"ts-jest": "^26.2.0"
"ts-jest": "^27.0.4"
},
"dependencies": {}
}
6 changes: 3 additions & 3 deletions packages/identify/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,16 @@
"dependencies": {
"@amplitude/types": "^1.8.0",
"@amplitude/utils": "^1.8.0",
"tslib": "^1.9.3"
"tslib": "^2.3.0"
},
"devDependencies": {
"@types/jest": "^26.0.10",
"eslint": "^7.0.0",
"eslint-plugin-jest": "^24.1.5",
"jest": "^26.4.0",
"jest": "^27.0.6",
"npm-run-all": "^4.1.5",
"prettier": "^1.17.0",
"typescript": "^3.9.2"
"typescript": "^4.3.5"
},
"scripts": {
"build": "run-p build:es5 build:esm",
Expand Down
6 changes: 3 additions & 3 deletions packages/identity/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,17 @@
"dependencies": {
"@amplitude/types": "^1.8.0",
"@amplitude/utils": "^1.8.0",
"tslib": "^1.9.3"
"tslib": "^2.3.0"
},
"devDependencies": {
"@amplitude/eslint-config-typescript": "^1.5.4",
"@types/jest": "^26.0.10",
"eslint": "^7.0.0",
"eslint-plugin-jest": "^24.1.5",
"jest": "^26.4.0",
"jest": "^27.0.6",
"npm-run-all": "^4.1.5",
"prettier": "^1.17.0",
"typescript": "^3.9.2"
"typescript": "^4.3.5"
},
"scripts": {
"build": "run-p build:es5 build:esm",
Expand Down
8 changes: 4 additions & 4 deletions packages/node/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,21 +19,21 @@
"@amplitude/identify": "^1.8.0",
"@amplitude/types": "^1.8.0",
"@amplitude/utils": "^1.8.0",
"tslib": "^1.9.3"
"tslib": "^2.3.0"
},
"devDependencies": {
"@amplitude/eslint-config-typescript": "^1.5.4",
"@types/jest": "^26.0.14",
"@types/node": "^15.0.2",
"eslint": "^7.0.0",
"eslint-plugin-jest": "^24.1.5",
"jest": "^26.5.3",
"jest": "^27.0.6",
"nock": "^13.0.4",
"npm-run-all": "^4.1.5",
"prettier": "^1.17.0",
"rimraf": "^2.6.3",
"ts-jest": "^26.2.0",
"typescript": "^3.9.2"
"ts-jest": "^27.0.4",
"typescript": "^4.3.5"
},
"scripts": {
"build": "run-p build:es5 build:esm",
Expand Down
2 changes: 1 addition & 1 deletion packages/node/src/nodeClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export class NodeClient implements Client<Options> {
private _events: Event[] = [];
private _responseListeners: Array<{ resolve: (response: Response) => void; reject: (err: Error) => void }> = [];
private readonly _transportWithRetry: Retry;
private _flushTimer: NodeJS.Timeout | null = null;
private _flushTimer: ReturnType<typeof setTimeout>| null = null;

/**
* Initializes this client instance.
Expand Down
2 changes: 1 addition & 1 deletion packages/node/src/transports/http.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ export class HTTPTransport implements Transport {
/** JSDoc */
protected async _sendWithModule(payload: Payload, limitInMs: number): Promise<Response> {
return await new Promise<Response>((resolve, reject) => {
let timeoutId: NodeJS.Timeout;
let timeoutId: ReturnType<typeof setTimeout>;
const req = this.module.request(this._getRequestOptions(), (res: http.IncomingMessage) => {
res.setEncoding('utf8');
let rawData = '';
Expand Down
5 changes: 3 additions & 2 deletions packages/types/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,11 @@
"@amplitude/eslint-config-typescript": "^1.5.4",
"@types/jest": "^26.0.14",
"eslint": "^7.0.0",
"jest": "^26.5.3",
"jest": "^27.0.6",
"npm-run-all": "^4.1.5",
"prettier": "^1.17.0",
"typescript": "^3.9.2"
"typedoc": "^0.21.4",
"typescript": "^4.3.5"
},
"scripts": {
"build": "run-p build:es5 build:esm",
Expand Down
2 changes: 1 addition & 1 deletion packages/typescript/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
},
"peerDependencies": {
"eslint": "^7.0.0",
"typescript": "^3.9.2"
"typescript": "^4.3.5"
},
"scripts": {
"link:yarn": "yarn link"
Expand Down
6 changes: 3 additions & 3 deletions packages/utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,19 +17,19 @@
},
"dependencies": {
"@amplitude/types": "^1.8.0",
"tslib": "^1.9.3"
"tslib": "^2.3.0"
},
"devDependencies": {
"@amplitude/eslint-config-typescript": "^1.5.4",
"@types/jest": "^26.0.14",
"@types/jsdom": "^16.2.5",
"eslint": "^7.0.0",
"eslint-plugin-jest": "^24.1.5",
"jest": "^26.5.3",
"jest": "^27.0.6",
"jsdom": "^16.4.0",
"npm-run-all": "^4.1.5",
"prettier": "^1.17.0",
"typescript": "^3.9.2"
"typescript": "^4.3.5"
},
"scripts": {
"build": "run-p build:es5 build:esm",
Expand Down
Loading