aloes-logger
Advanced tools
Comparing version 1.0.4 to 1.0.5
{ | ||
"name": "aloes-logger", | ||
"version": "1.0.4", | ||
"version": "1.0.5", | ||
"description": "Logger function", | ||
"main": "./dist/index.js", | ||
"unpkg": "logger.min.js", | ||
"main": "./src/index.js", | ||
"scripts": { | ||
"lint": "npx eslint --ext js .", | ||
"test:logger": "export NODE_ENV=test; mocha --require @babel/register './src/test/logger.spec.js'", | ||
"test:logger": "export NODE_ENV=test; mocha './src/test/logger.spec.js'", | ||
"test": "npm run test:logger", | ||
"lib:build": "npx babel src --out-dir dist --ignore './src/test/*.spec.js'", | ||
"lib:build-min": "npx babel ./src --ignore './src/test/*.spec.js' --presets minify --out-file ./logger.min.js", | ||
"prePublish": "npm run lint; npm run test; npm run lib:build" | ||
"prePublish": "npm run lint; npm run test" | ||
}, | ||
"files": [ | ||
"dist/*", | ||
"src/*", | ||
"package.json", | ||
@@ -31,54 +28,10 @@ "logger.min.js", | ||
"devDependencies": { | ||
"@babel/cli": "^7.0.0", | ||
"@babel/core": "^7.3.4", | ||
"@babel/node": "^7.0.0", | ||
"@babel/plugin-proposal-class-properties": "^7.0.0", | ||
"@babel/plugin-proposal-decorators": "^7.0.0", | ||
"@babel/plugin-proposal-export-namespace-from": "^7.0.0", | ||
"@babel/plugin-proposal-function-sent": "^7.0.0", | ||
"@babel/plugin-proposal-json-strings": "^7.0.0", | ||
"@babel/plugin-proposal-numeric-separator": "^7.0.0", | ||
"@babel/plugin-proposal-throw-expressions": "^7.0.0", | ||
"@babel/plugin-syntax-dynamic-import": "^7.0.0", | ||
"@babel/plugin-syntax-import-meta": "^7.0.0", | ||
"@babel/preset-env": "^7.0.0", | ||
"@babel/register": "^7.0.0", | ||
"acorn": "^6.1.0", | ||
"babel-eslint": "^8.2.6", | ||
"babel-preset-minify": "^0.5.0", | ||
"chai": "^4.2.0", | ||
"eslint": "^4.19.1", | ||
"eslint-config-airbnb-base": "^11.3.0", | ||
"eslint": "^6.8.0", | ||
"eslint-config-prettier": "^3.1.0", | ||
"eslint-plugin-babel": "^5.3.0", | ||
"eslint-plugin-import": "^2.9.0", | ||
"eslint-plugin-prettier": "^2.6.2", | ||
"identity-obj-proxy": "^3.0.0", | ||
"mocha": "^5.2.0", | ||
"mocha": "^7.0.1", | ||
"prettier": "1.16.1" | ||
}, | ||
"mocha.requires": [ | ||
"@babel/register" | ||
], | ||
"babel": { | ||
"presets": [ | ||
"@babel/preset-env" | ||
], | ||
"plugins": [ | ||
"@babel/plugin-syntax-dynamic-import", | ||
"@babel/plugin-syntax-import-meta", | ||
"@babel/plugin-proposal-class-properties", | ||
"@babel/plugin-proposal-json-strings", | ||
[ | ||
"@babel/plugin-proposal-decorators", | ||
{ | ||
"legacy": true | ||
} | ||
], | ||
"@babel/plugin-proposal-function-sent", | ||
"@babel/plugin-proposal-export-namespace-from", | ||
"@babel/plugin-proposal-numeric-separator", | ||
"@babel/plugin-proposal-throw-expressions" | ||
] | ||
}, | ||
"prettier": { | ||
@@ -97,11 +50,9 @@ "bracketSpacing": false, | ||
"extends": [ | ||
"airbnb-base", | ||
"prettier" | ||
], | ||
"plugins": [ | ||
"babel" | ||
"prettier" | ||
], | ||
"parserOptions": { | ||
"ecmaVersion": 2018, | ||
"parser": "babel-eslint" | ||
"ecmaVersion": 2018 | ||
}, | ||
@@ -108,0 +59,0 @@ "rules": { |
@@ -15,8 +15,2 @@ # Aloes Logger | ||
Via script tag : | ||
```html | ||
<script src="https://unpkg.com/aloes-logger"></script> | ||
``` | ||
## Linting | ||
@@ -37,9 +31,1 @@ | ||
``` | ||
## Build | ||
With Babel | ||
```bash | ||
$ npm run build-lib | ||
``` |
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
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
7
4
71
0
4473
30
8