@tech_query/node-toolkit
Advanced tools
+6
-1
@@ -34,3 +34,8 @@ "use strict"; | ||
| filename: fileName || undefined, | ||
| babelrc: !onlyModule | ||
| babelrc: !onlyModule, | ||
| parserOpts: { | ||
| plugins: ['optionalCatchBinding', 'objectRestSpread', 'asyncGenerators', 'classProperties', ['decorators', { | ||
| decoratorsBeforeExport: true | ||
| }], 'importMeta', 'dynamicImport', 'exportDefaultFrom', 'exportNamespaceFrom'] | ||
| } | ||
| }; | ||
@@ -37,0 +42,0 @@ if (!onlyModule) option.presets = ['@babel/preset-env']; |
+9
-5
| { | ||
| "name": "@tech_query/node-toolkit", | ||
| "version": "0.6.1", | ||
| "version": "0.6.2", | ||
| "description": "Toolkit for Node.JS packages", | ||
@@ -31,10 +31,14 @@ "keywords": [ | ||
| "lint": "eslint source/ test/ --fix", | ||
| "bundle": "babel source/ -d dist/", | ||
| "test": "mocha --exit", | ||
| "debug": "mocha --inspect-brk", | ||
| "build": "npm run lint && npm run bundle && npm test", | ||
| "compile": "babel source/ -d dist/", | ||
| "build": "npm run lint && npm test && npm run compile && esdoc", | ||
| "prepublishOnly": "npm run build", | ||
| "precommit": "npm run build && esdoc && git add .", | ||
| "start": "opn docs/index.html" | ||
| }, | ||
| "husky": { | ||
| "hook": { | ||
| "pre-commit": "npm run build && git add ." | ||
| } | ||
| }, | ||
| "dependencies": { | ||
@@ -60,3 +64,3 @@ "@babel/core": "^7.1.0", | ||
| "eslint": "^5.6.0", | ||
| "husky": "^0.14.3", | ||
| "husky": "^1.0.1", | ||
| "mocha": "^5.2.0", | ||
@@ -63,0 +67,0 @@ "opn-cli": "^3.1.0", |
+14
-4
@@ -27,6 +27,16 @@ import { transform } from '@babel/core'; | ||
| const option = { | ||
| plugins: ['@babel/plugin-transform-modules-commonjs'], | ||
| ast: false, | ||
| filename: fileName || undefined, | ||
| babelrc: !onlyModule | ||
| plugins: ['@babel/plugin-transform-modules-commonjs'], | ||
| ast: false, | ||
| filename: fileName || undefined, | ||
| babelrc: !onlyModule, | ||
| parserOpts: { | ||
| plugins: [ | ||
| 'optionalCatchBinding', 'objectRestSpread', 'asyncGenerators', | ||
| 'classProperties', [ | ||
| 'decorators', {decoratorsBeforeExport: true} | ||
| ], | ||
| 'importMeta', 'dynamicImport', | ||
| 'exportDefaultFrom', 'exportNamespaceFrom' | ||
| ] | ||
| } | ||
| }; | ||
@@ -33,0 +43,0 @@ |
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
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
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
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
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
29655
2.38%628
2.45%