await-to-js
Advanced tools
Comparing version 1.0.1 to 2.0.0
140
package.json
{ | ||
"name": "await-to-js", | ||
"version": "1.0.1", | ||
"version": "2.0.0", | ||
"description": "Async/await wrapper for easy error handling in js", | ||
"main": "dist/index.js", | ||
"keywords": [ | ||
"node", | ||
"async", | ||
"await", | ||
"async await" | ||
], | ||
"main": "dist/await-to-js.umd.js", | ||
"module": "dist/await-to-js.es5.js", | ||
"typings": "dist/types/await-to-js.d.ts", | ||
"homepage": "https://github.com/scopsy/await-to-js#readme", | ||
"files": [ | ||
"bin/", | ||
"dist/" | ||
"dist" | ||
], | ||
"scripts": { | ||
"clean": "rimraf dist", | ||
"lint": "eslint src test", | ||
"check": "npm run lint -s && dependency-check package.json --entry src", | ||
"watch": "watch 'npm run build' src test", | ||
"test": "babel-node test/index.js | tspec", | ||
"prebuild": "npm run check -s && npm run clean -s", | ||
"build": "babel --optional runtime src -d dist", | ||
"postbuild": "npm run test -s", | ||
"coverage": "babel-node node_modules/isparta/bin/isparta cover test/index.js", | ||
"coveralls": "npm run coverage -s && coveralls < coverage/lcov.info", | ||
"postcoveralls": "rimraf ./coverage", | ||
"prepublish": "npm run build -s", | ||
"deploy": "git pull --rebase origin master && git push origin master", | ||
"patch": "npm version patch && npm publish", | ||
"minor": "npm version minor && npm publish", | ||
"major": "npm version major && npm publish", | ||
"postpublish": "git push origin master --follow-tags", | ||
"toc": "doctoc --github --title \"# Changelog\" CHANGELOG.md" | ||
}, | ||
"author": "Dima Grossman <dima@grossman.io>, Tomer Barnea <tomer@barnea.io>", | ||
"repository": { | ||
@@ -34,26 +23,89 @@ "type": "git", | ||
}, | ||
"keywords": [ | ||
"node async await" | ||
], | ||
"author": "Dima Grossman <dima@grossman.io>, Tomer Barnea <tomer@barnea.io>", | ||
"license": "MIT", | ||
"bugs": { | ||
"url": "https://github.com/scopsy/await-to-js/issues" | ||
"engines": { | ||
"node": ">=6.0.0" | ||
}, | ||
"homepage": "https://github.com/scopsy/await-to-js#readme", | ||
"scripts": { | ||
"lint": "tslint -t codeFrame 'src/**/*.ts' 'test/**/*.ts'", | ||
"prebuild": "rimraf dist", | ||
"build": "tsc && rollup -c && rimraf compiled && typedoc --out dist/docs --target es6 --theme minimal src", | ||
"start": "tsc -w & rollup -c -w", | ||
"test": "jest", | ||
"test:watch": "jest --watch", | ||
"test:prod": "npm run lint && npm run test -- --coverage --no-cache", | ||
"deploy-docs": "ts-node tools/gh-pages-publish", | ||
"report-coverage": "cat ./coverage/lcov.info | coveralls", | ||
"commit": "git-cz", | ||
"semantic-release": "semantic-release pre && npm publish && semantic-release post", | ||
"semantic-release-prepare": "ts-node tools/semantic-release-prepare", | ||
"precommit": "lint-staged" | ||
}, | ||
"lint-staged": { | ||
"{src,test}/**/*.ts": [ | ||
"prettier --write --no-semi", | ||
"git add" | ||
] | ||
}, | ||
"config": { | ||
"commitizen": { | ||
"path": "node_modules/cz-conventional-changelog" | ||
}, | ||
"validate-commit-msg": { | ||
"types": "conventional-commit-types", | ||
"helpMessage": "Use \"npm run commit\" instead, we use conventional-changelog format :) (https://github.com/commitizen/cz-cli)" | ||
} | ||
}, | ||
"jest": { | ||
"transform": { | ||
".(ts|tsx)": "<rootDir>/node_modules/ts-jest/preprocessor.js" | ||
}, | ||
"testRegex": "(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$", | ||
"moduleFileExtensions": [ | ||
"ts", | ||
"tsx", | ||
"js" | ||
], | ||
"coveragePathIgnorePatterns": [ | ||
"/node_modules/", | ||
"/test/" | ||
], | ||
"coverageThreshold": { | ||
"global": { | ||
"branches": 90, | ||
"functions": 95, | ||
"lines": 95, | ||
"statements": 95 | ||
} | ||
} | ||
}, | ||
"devDependencies": { | ||
"babel-cli": "^6.18.0", | ||
"babel-core": "^6.21.0", | ||
"babel-eslint": "^4.1.6", | ||
"babel-preset-es2015": "^6.18.0", | ||
"coveralls": "^2.11.4", | ||
"dependency-check": "^2.5.1", | ||
"doctoc": "^0.15.0", | ||
"eslint": "^1.10.1", | ||
"isparta": "^4.0.0", | ||
"rimraf": "^2.4.2", | ||
"tap-spec": "^4.1.1", | ||
"tape": "^4.2.2", | ||
"watch": "^0.16.0" | ||
"@types/jest": "^21.1.0", | ||
"@types/node": "^8.0.0", | ||
"colors": "^1.1.2", | ||
"commitizen": "^2.9.6", | ||
"coveralls": "^2.13.1", | ||
"cross-env": "^5.0.1", | ||
"cz-conventional-changelog": "^2.0.0", | ||
"husky": "^0.14.0", | ||
"jest": "^21.0.0", | ||
"lint-staged": "^4.0.0", | ||
"lodash.camelcase": "^4.3.0", | ||
"prettier": "^1.4.4", | ||
"prompt": "^1.0.0", | ||
"replace-in-file": "^3.0.0-beta.2", | ||
"rimraf": "^2.6.1", | ||
"rollup": "^0.50.0", | ||
"rollup-plugin-commonjs": "^8.0.2", | ||
"rollup-plugin-node-resolve": "^3.0.0", | ||
"rollup-plugin-sourcemaps": "^0.4.2", | ||
"semantic-release": "^8.0.0", | ||
"ts-jest": "^21.0.0", | ||
"ts-node": "^3.0.6", | ||
"tslint": "^5.4.3", | ||
"tslint-config-prettier": "^1.1.0", | ||
"tslint-config-standard": "^6.0.0", | ||
"typedoc": "^0.8.0", | ||
"typescript": "^2.3.4", | ||
"validate-commit-msg": "^2.12.2" | ||
} | ||
} |
@@ -9,3 +9,3 @@ # await-to-js | ||
## Pre-requisites | ||
You need ES7 transpiler in order to use async/await functionality. | ||
You need to use Node 7.6 (or later) or an ES7 transpiler in order to use async/await functionality. | ||
You can use babel or typescript for that. | ||
@@ -12,0 +12,0 @@ |
Sorry, the diff of this file is not supported yet
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
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 2 instances in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
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
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
1155296
19
1268
28
1
1
4