@integromat/proto
Advanced tools
Comparing version 1.8.0 to 2.0.0
@@ -12,7 +12,8 @@ { | ||
], | ||
"version": "1.8.0", | ||
"main": "index.js", | ||
"typescript": { | ||
"definition": "imt-proto.d.ts" | ||
}, | ||
"version": "2.0.0", | ||
"main": "dist/index.js", | ||
"types": "dist/index.d.ts", | ||
"files": [ | ||
"/dist" | ||
], | ||
"repository": { | ||
@@ -23,14 +24,28 @@ "type": "git", | ||
"license": "MIT", | ||
"dependencies": {}, | ||
"devDependencies": { | ||
"mocha": "^7.1.2" | ||
"@types/mocha": "^10.0.1", | ||
"@types/node": "^18.15.11", | ||
"@typescript-eslint/eslint-plugin": "^5.58.0", | ||
"eslint": "^8.38.0", | ||
"eslint-config-prettier": "^8.8.0", | ||
"eslint-plugin-prettier": "^4.2.1", | ||
"eslint-plugin-typescript": "^0.14.0", | ||
"mocha": "^10.2.0", | ||
"prettier": "^2.8.7", | ||
"source-map-support": "^0.5.21", | ||
"ts-node": "^10.9.1", | ||
"typescript": "^5.0.4" | ||
}, | ||
"engines": { | ||
"node": ">=8.0" | ||
"node": ">=16.19.0 <17.0.0" | ||
}, | ||
"scripts": { | ||
"test": "npm run-script test-es5 && npm run-script test-es6", | ||
"test-es5": "IMT_ES=es5 mocha test", | ||
"test-es6": "IMT_ES=es6 mocha test" | ||
"clean": "rm -Rf ./dist", | ||
"build": "npm run clean && npm run build:ts", | ||
"build:ts": "tsc", | ||
"lint": "eslint -c .eslintrc.js --ext .ts src test", | ||
"lint:fix": "npm run lint -- --fix", | ||
"test": "npm run lint && npm run test:unit", | ||
"test:unit": "TS_NODE_PROJECT='./tsconfig.spec.json' mocha test" | ||
} | ||
} |
@@ -13,6 +13,15 @@ # Integromat Proto-Classes | ||
```javascript | ||
require('@integromat/proto'); | ||
### A. Usage via module import | ||
```ts | ||
import { /* ... */ } from '@integromat/proto'; | ||
``` | ||
### B. Usage via globals (deprecated) | ||
```js | ||
require('@integromat/proto/global'); | ||
``` | ||
## License | ||
@@ -19,0 +28,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
88848
74
42
0
12
1799
1