on-error-resume-next
Version:
Run a function, synchronously or asynchronously, and ignore errors.
94 lines (93 loc) • 3.85 kB
JSON
{
"name": "on-error-resume-next",
"version": "2.0.2",
"description": "Run a function, synchronously or asynchronously, and ignore errors.",
"files": [
"./dist/",
"./*.js"
],
"exports": {
".": {
"import": {
"types": "./dist/on-error-resume-next.d.mts",
"default": "./dist/on-error-resume-next.mjs"
},
"require": {
"types": "./dist/on-error-resume-next.d.ts",
"default": "./dist/on-error-resume-next.js"
}
},
"./async": {
"import": {
"types": "./dist/on-error-resume-next.async.d.mts",
"default": "./dist/on-error-resume-next.async.mjs"
},
"require": {
"types": "./dist/on-error-resume-next.async.d.ts",
"default": "./dist/on-error-resume-next.async.js"
}
},
"./auto": {
"import": {
"types": "./dist/on-error-resume-next.auto.d.mts",
"default": "./dist/on-error-resume-next.auto.mjs"
},
"require": {
"types": "./dist/on-error-resume-next.auto.d.ts",
"default": "./dist/on-error-resume-next.auto.js"
}
}
},
"main": "./dist/on-error-resume-next.js",
"typings": "./dist/on-error-resume-next.d.ts",
"scripts": {
"build": "tsup",
"bump": "npm run bump:prod && npm run bump:dev",
"bump:dev": "PACKAGES_TO_BUMP=$(cat package.json | jq -r '(.pinDependencies // {}) as $P | (.localPeerDependencies // {}) as $L | (.devDependencies // {}) | to_entries | map(select(.key as $K | $L | has($K) | not)) | map(.key + \"@\" + ($P[.key] // [\"latest\"])[0]) | join(\" \")') && [ ! -z \"$PACKAGES_TO_BUMP\" ] && npm install $PACKAGES_TO_BUMP || true",
"bump:prod": "PACKAGES_TO_BUMP=$(cat package.json | jq -r '(.pinDependencies // {}) as $P | (.localPeerDependencies // {}) as $L | (.dependencies // {}) | to_entries | map(select(.key as $K | $L | has($K) | not)) | map(.key + \"@\" + ($P[.key] // [\"latest\"])[0]) | join(\" \")') && [ ! -z \"$PACKAGES_TO_BUMP\" ] && npm install $PACKAGES_TO_BUMP || true",
"precommit": "npm run precommit:eslint && npm run precommit:publint && npm run precommit:typescript:production && npm run precommit:typescript:test",
"precommit:eslint": "ESLINT_USE_FLAT_CONFIG=false eslint ./src/",
"precommit:publint": "publint",
"precommit:typescript:production": "tsc --noEmit --project ./src/tsconfig.precommit.production.json",
"precommit:typescript:test": "tsc --noEmit --project ./src/tsconfig.precommit.test.json",
"prepack": "cp ../../CHANGELOG.md . && cp ../../LICENSE . && cp ../../README.md .",
"switch": "cat package.json | jq --arg SWITCH_NAME $SWITCH_NAME -r '(.[\"switch:\" + $SWITCH_NAME] // {}) as $TEMPLATE | .devDependencies += ($TEMPLATE.devDependencies // {}) | .dependencies += ($TEMPLATE.dependencies // {})' | tee ./package.json.tmp && mv ./package.json.tmp ./package.json",
"test": "jest"
},
"repository": {
"type": "git",
"url": "git+https://github.com/compulim/on-error-resume-next.git"
},
"keywords": [
"basic",
"error",
"on error",
"vb",
"visual basic"
],
"author": "William Wong (https://github.com/compulim)",
"license": "MIT",
"bugs": {
"url": "https://github.com/compulim/on-error-resume-next/issues"
},
"homepage": "https://github.com/compulim/on-error-resume-next#readme",
"pinDependencies": {},
"devDependencies": {
"@babel/preset-env": "^7.25.8",
"@babel/preset-typescript": "^7.25.7",
"@jest/globals": "^29.7.0",
"@tsconfig/recommended": "^1.0.7",
"@tsconfig/strictest": "^2.0.5",
"@types/jest": "^29.5.13",
"@types/node": "^22.7.5",
"esbuild": "^0.24.0",
"jest": "^29.7.0",
"prettier": "^3.3.3",
"publint": "^0.2.11",
"tsup": "^8.3.0",
"typescript": "^5.6.3"
},
"dependencies": {
"on-error-resume-next": "^2.0.2"
}
}