@globalfishingwatch/api-client
Advanced tools
Comparing version 0.0.21 to 1.0.1
@@ -32,3 +32,3 @@ import { UserData } from './types'; | ||
maxRefreshRetries: number; | ||
logging: Promise<any> | null; | ||
logging: Promise<UserData> | null; | ||
constructor({ debug, baseUrl, tokenStorageKey, refreshTokenStorageKey, }?: { | ||
@@ -68,1 +68,2 @@ debug?: boolean | undefined; | ||
export default _default; | ||
//# sourceMappingURL=api-client.d.ts.map |
@@ -16,1 +16,2 @@ interface UserPermission { | ||
export {}; | ||
//# sourceMappingURL=types.d.ts.map |
@@ -1,3 +0,2 @@ | ||
export declare function getURLParameterByName(paramName: string, url?: string): string | null; | ||
export declare function removeUrlParameterByName(paramName: string): void; | ||
export declare function isUrlAbsolute(url: string): boolean; | ||
//# sourceMappingURL=url.d.ts.map |
113
package.json
{ | ||
"name": "@globalfishingwatch/api-client", | ||
"version": "0.0.21", | ||
"description": "js library to help with the login/logout and resources fetch of the GFW API", | ||
"keywords": [], | ||
"main": "dist/api-client.umd.js", | ||
"module": "dist/api-client.es5.js", | ||
"typings": "dist/types/api-client.d.ts", | ||
"version": "1.0.1", | ||
"description": "", | ||
"author": "satellitestudio <contact@satellitestud.io>", | ||
"homepage": "https://github.com/GlobalFishingWatch/frontend#readme", | ||
"license": "MIT", | ||
"main": "dist/index.js", | ||
"typings": "dist/types/index.d.ts", | ||
"directories": { | ||
"src": "src", | ||
"dist": "dist" | ||
}, | ||
"files": [ | ||
"dist" | ||
], | ||
"author": "@satellitestudio<contact@satellitestud.io>", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/GlobalFishingWatch/api-client" | ||
"url": "git+https://github.com/GlobalFishingWatch/frontend.git" | ||
}, | ||
"license": "MIT", | ||
"engines": { | ||
"node": ">=6.0.0" | ||
}, | ||
"scripts": { | ||
"start": "rollup -c rollup.config.ts -w", | ||
"test": "jest", | ||
"test:watch": "jest --watch", | ||
"test:prod": "npm run lint && npm run test -- --no-cache", | ||
"lint": "eslint -c .eslintrc src/**/*.ts test/*.ts --fix", | ||
"prebuild": "rimraf dist", | ||
"build": "cross-env NODE_ENV=production tsc --module commonjs && rollup -c rollup.config.ts", | ||
"typedoc": "typedoc --out docs --target es6 --theme minimal --mode file src", | ||
"gh-pages": "gh-pages -d docs", | ||
"prepublish": "npm run build", | ||
"publishdoc": "npm run typedoc && npm run gh-pages" | ||
"start": "rollup -c ./rollup.config.js -w", | ||
"build": "cross-env NODE_ENV=production tsc --module commonjs && rollup -c rollup.config.js", | ||
"prepublishOnly": "yarn build", | ||
"test": "echo \"Error: run tests from root\" && exit 1" | ||
}, | ||
"husky": { | ||
"hooks": { | ||
"pre-commit": "lint-staged" | ||
} | ||
"bugs": { | ||
"url": "https://github.com/GlobalFishingWatch/frontend/issues" | ||
}, | ||
"lint-staged": { | ||
"{src,test}/**/*.ts": [ | ||
"eslint --fix", | ||
"git add" | ||
] | ||
}, | ||
"jest": { | ||
"transform": { | ||
".(ts|tsx)": "ts-jest" | ||
}, | ||
"testEnvironment": "node", | ||
"testRegex": "(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$", | ||
"moduleFileExtensions": [ | ||
"ts", | ||
"tsx", | ||
"js" | ||
], | ||
"setupFiles": [ | ||
"jest-localstorage-mock" | ||
] | ||
}, | ||
"dependencies": { | ||
"file-saver": "^2.0.2" | ||
}, | ||
"peerDependencies": { | ||
"react": "^16.12.0", | ||
"react-dom": "^16.12.0" | ||
"devDependencies": { | ||
"@types/file-saver": "^2.0.1" | ||
}, | ||
"devDependencies": { | ||
"@satellitestudio/eslint-config": "^1.2.1", | ||
"@types/file-saver": "^2.0.1", | ||
"@types/jest": "^24.0.25", | ||
"@types/node": "^13.1.6", | ||
"@types/react": "^16.9.17", | ||
"@typescript-eslint/eslint-plugin": "^2.6.1", | ||
"@typescript-eslint/parser": "^2.6.1", | ||
"babel-eslint": "^10.0.3", | ||
"cross-env": "^6.0.3", | ||
"eslint": "^6.8.0", | ||
"eslint-config-prettier": "^6.9.0", | ||
"eslint-config-react-app": "^5.1.0", | ||
"eslint-plugin-flowtype": "^4.6.0", | ||
"eslint-plugin-import": "^2.20.0", | ||
"eslint-plugin-jsx-a11y": "^6.2.3", | ||
"eslint-plugin-prettier": "^3.1.2", | ||
"eslint-plugin-react": "^7.17.0", | ||
"eslint-plugin-react-hooks": "^2.3.0", | ||
"file-saver": "^2.0.2", | ||
"gh-pages": "^2.2.0", | ||
"husky": "^4.0.7", | ||
"jest": "^24.9.0", | ||
"jest-config": "^24.9.0", | ||
"jest-localstorage-mock": "^2.4.0", | ||
"lint-staged": "^9.5.0", | ||
"lodash.camelcase": "^4.3.0", | ||
"prettier": "^1.19.1", | ||
"react": "^16.12.0", | ||
"rollup": "^1.29.0", | ||
"rollup-plugin-commonjs": "^10.1.0", | ||
"rollup-plugin-json": "^4.0.0", | ||
"rollup-plugin-node-resolve": "^5.2.0", | ||
"rollup-plugin-peer-deps-external": "^2.2.0", | ||
"rollup-plugin-sourcemaps": "^0.5.0", | ||
"rollup-plugin-typescript2": "^0.25.3", | ||
"ts-jest": "^24.3.0", | ||
"ts-node": "^8.6.2", | ||
"typedoc": "^0.16.2", | ||
"typescript": "^3.7.4" | ||
} | ||
"gitHead": "10c3825a90f584a1c240e6f3c1a77dece200a650" | ||
} |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Mixed license
License(Experimental) Package contains multiple licenses.
Found 1 instance in 1 package
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
1
1
0
0
0
9
104272
19
1023