on-error-resume-next
Advanced tools
Comparing version 1.0.1-master.f440a76 to 1.1.0-master.0d6181e
@@ -8,5 +8,10 @@ # Changelog | ||
## [Unreleased] | ||
### Added | ||
- Default exports for CommonJS | ||
### Changed | ||
- Moved to Babel 7 | ||
## [1.0.0] - 2018-03-21 | ||
### Added | ||
- Initial commit |
@@ -1,2 +0,2 @@ | ||
'use strict'; | ||
"use strict"; | ||
@@ -7,2 +7,3 @@ Object.defineProperty(exports, "__esModule", { | ||
exports.default = onErrorResumeNext; | ||
function onErrorResumeNext(fn) { | ||
@@ -24,2 +25,5 @@ var context = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null; | ||
} catch (err) {} | ||
} | ||
} | ||
module.exports = exports.default; | ||
module.exports.default = exports.default; |
{ | ||
"name": "on-error-resume-next", | ||
"version": "1.0.1-master.f440a76", | ||
"version": "1.1.0-master.0d6181e", | ||
"description": "", | ||
@@ -11,3 +11,4 @@ "main": "lib/index.js", | ||
"versionCommit": "npx gulp-cli version-commit", | ||
"test": "jest" | ||
"test": "jest", | ||
"watch": "npm run build -- --watch" | ||
}, | ||
@@ -24,12 +25,16 @@ "repository": { | ||
"homepage": "https://github.com/compulim/on-error-resume-next#readme", | ||
"jest": { | ||
"collectCoverage": true | ||
}, | ||
"devDependencies": { | ||
"babel-cli": "^6.26.0", | ||
"babel-core": "^6.26.0", | ||
"babel-preset-env": "^1.6.1", | ||
"babel-preset-stage-3": "^6.24.1", | ||
"gulp": "^3.9.1", | ||
"gulp-exec": "^3.0.1", | ||
"jest": "^22.4.2", | ||
"last-commit-log": "^1.0.3" | ||
} | ||
"@babel/cli": "^7.1.2", | ||
"@babel/core": "^7.1.2", | ||
"@babel/plugin-proposal-object-rest-spread": "^7.0.0", | ||
"@babel/preset-env": "^7.1.0", | ||
"babel-core": "^7.0.0-bridge.0", | ||
"babel-jest": "^23.6.0", | ||
"babel-plugin-add-module-exports": "^1.0.0", | ||
"jest": "^23.6.0" | ||
}, | ||
"dependencies": {} | ||
} |
@@ -1,5 +0,7 @@ | ||
# on-error-resume-next [![Build Status](https://travis-ci.org/compulim/on-error-resume-next.svg?branch=master)](https://travis-ci.org/compulim/on-error-resume-next) | ||
# on-error-resume-next | ||
Run a function, synchronously or asynchronously, and ignore errors. | ||
[![npm version](https://badge.fury.io/js/on-error-resume-next.svg)](https://badge.fury.io/js/on-error-resume-next) [![Build Status](https://travis-ci.org/compulim/on-error-resume-next.svg?branch=master)](https://travis-ci.org/compulim/on-error-resume-next) | ||
The name come from [Visual Basic](https://docs.microsoft.com/en-us/dotnet/visual-basic/language-reference/statements/on-error-statement). The original `On Error Resume Next` statement is considered a bad error handling practice. | ||
@@ -6,0 +8,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 2 instances in 1 package
53
0
9601
9
69