error-stack2
Advanced tools
Comparing version 1.0.17 to 1.0.18
{ | ||
"name": "error-stack2", | ||
"version": "1.0.17", | ||
"version": "1.0.18", | ||
"description": "Parse and manipulate error.stack", | ||
@@ -25,8 +25,10 @@ "keywords": [ | ||
".": { | ||
"types": "./dist/index.d.ts", | ||
"import": "./dist/index.esm.mjs", | ||
"require": "./dist/index.cjs", | ||
"types": "./dist/index.d.ts" | ||
} | ||
"require": "./dist/index.cjs" | ||
}, | ||
"./package.json": "./package.json" | ||
}, | ||
"main": "dist/index.cjs", | ||
"unpkg": "dist/index.umd.js", | ||
"module": "dist/index.esm.mjs", | ||
@@ -43,8 +45,12 @@ "types": "dist/index.d.ts", | ||
"scripts": { | ||
"pretest": "echo pretest", | ||
"test": "tsdx test", | ||
"posttest": "echo posttest", | ||
"prebuild": "yarn run test", | ||
"build": "yarn run build:tsdx && yarn run build:dts", | ||
"build": "yarn run build:tsdx && yarn run build:dts:bundle", | ||
"build:dts": "ynpx dts-bundle-generator -o ./dist/index.d.ts ./src/index.ts --no-banner & echo build:dts", | ||
"build:dts:bundle": "ynpx dts-bundle-generator -o ./dist/index.d.ts ./src/index.ts --no-banner & echo build:dts", | ||
"build:tsdx": "tsdx build --target node --name index", | ||
"ci:install": "yarn install --frozen-lockfile && yarn add -W typescript@next jest ts-jest ts-node ynpx lerna yarn-tool", | ||
"ci:build": "echo ci:build", | ||
"npm:publish": "yarn run version:bump && npm publish", | ||
@@ -57,5 +63,9 @@ "npm:publish:bump": "yarn-tool version && npm publish", | ||
"prepublish": "echo prepublish", | ||
"prepare": "echo prepare", | ||
"prepublishOnly": "yarn run preversion", | ||
"prepublishOnly:check-bin": "ynpx --quiet @yarn-tool/check-pkg-bin", | ||
"prepublishOnly:update": "yarn run ncu && yarn run sort-package-json", | ||
"prepack": "echo prepack", | ||
"pack": "echo pack", | ||
"postpack": "echo postpack", | ||
"publish": "echo publish", | ||
@@ -73,15 +83,15 @@ "postpublish": "yarn run postpublish:changelog && yarn run postpublish:git:commit && yarn run postpublish:git:tag && yarn run postpublish:git:push", | ||
"dependencies": { | ||
"crlf-normalize": "^1.0.6", | ||
"crlf-normalize": "^1.0.7", | ||
"err-code": "^3.0.1", | ||
"string-split-keep": "^1.0.1", | ||
"ts-type": "^2.1.2", | ||
"string-split-keep2": "^1.0.2", | ||
"ts-type": "^2.1.4", | ||
"tslib": "^2.3.1" | ||
}, | ||
"devDependencies": { | ||
"@bluelovers/tsconfig": "^1.0.26", | ||
"@bluelovers/tsconfig": "^1.0.28", | ||
"@types/bluebird": "^3.5.36", | ||
"@types/jest": "^27.0.3", | ||
"@types/node": "^16.11.11" | ||
"@types/jest": "^27.4.0", | ||
"@types/node": "^17.0.13" | ||
}, | ||
"packageManager": "yarn@^1.22.11" | ||
} |
import { ITSPickExtra, ITSRequireAtLeastOne } from 'ts-type/lib/type/record'; | ||
import { lineSplit, R_CRLF } from 'crlf-normalize'; | ||
import { IEvalTrace, IParsed, IParsedWithoutTrace, ISource, ITrace, IRawLineTrace, ITraceValue } from './types'; | ||
// @ts-ignore | ||
import ssplit from 'string-split-keep'; | ||
import { stringSplitWithLimit } from 'string-split-keep2'; | ||
import { trim } from './util/trim'; | ||
@@ -80,3 +79,3 @@ import { isUnset } from './util/isUnset'; | ||
{ | ||
const [source, line, col] = ssplit(rawSource, ':', -3); | ||
const [source, line, col] = stringSplitWithLimit(rawSource, ':', -3); | ||
@@ -83,0 +82,0 @@ if (!col?.length || !line?.length) |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
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
98871
1252
+ Addedstring-split-keep2@^1.0.2
+ Addedstring-split-keep2@1.0.12(transitive)
- Removedstring-split-keep@^1.0.1
- Removedstring-split-keep@1.0.1(transitive)
Updatedcrlf-normalize@^1.0.7
Updatedts-type@^2.1.4