Socket
Socket
Sign inDemoInstall

error-stack2

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

error-stack2 - npm Package Compare versions

Comparing version 1.0.17 to 1.0.18

32

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc