kmore-types
Advanced tools
Comparing version 2.0.1 to 2.0.2
@@ -6,2 +6,13 @@ # Change Log | ||
## [2.0.2](https://github.com/waitingsong/kmore/compare/v2.0.1...v2.0.2) (2021-01-24) | ||
### Bug Fixes | ||
* **kmore-types:** getStack() ([2f73158](https://github.com/waitingsong/kmore/commit/2f731587b4f300f5392d9a10728b537b4c3c35c0)) | ||
## [2.0.1](https://github.com/waitingsong/kmore/compare/v2.0.0...v2.0.1) (2020-07-16) | ||
@@ -8,0 +19,0 @@ |
@@ -5,3 +5,3 @@ /** | ||
* | ||
* @version 2.0.0 | ||
* @version 2.0.1 | ||
* @author waiting | ||
@@ -340,2 +340,3 @@ * @license MIT | ||
sourceMapSupport.install(); | ||
/** Allow empty Object */ | ||
@@ -409,14 +410,10 @@ function validateParamTables(tbs) { | ||
if (!origPrepareStackTrace) { | ||
sourceMapSupport.install(); | ||
if (!Error.prepareStackTrace) { | ||
throw new Error('Error.prepareStackTrace not defined'); | ||
} | ||
throw new Error('Error.prepareStackTrace not defined'); | ||
} | ||
// void else in debug hooked by source-map-support already | ||
const patchedPrepareStackTrace = Error.prepareStackTrace; | ||
// Override with function that just returns `stack` | ||
Error.prepareStackTrace = function (_err, stack) { | ||
const target = stack[depth + 1]; | ||
// @ts-expect-error | ||
return patchedPrepareStackTrace(_err, [target]); | ||
const ret = origPrepareStackTrace(_err, [target]); | ||
return ret; | ||
}; | ||
@@ -423,0 +420,0 @@ const limit = Error.stackTraceLimit; |
@@ -5,3 +5,3 @@ import { readFileLineRx, pathResolve, join, dirname, isDirExists } from '@waiting/shared-core'; | ||
import { walk } from 'rxwalker'; | ||
import * as sourceMapSupport from 'source-map-support'; | ||
import { install } from 'source-map-support'; | ||
import { genAliasColumns } from './alias-cols-util'; | ||
@@ -12,2 +12,3 @@ import { defaultPropDescriptor, reservedTbListKeys, initBuildSrcOpts, globalCallerFuncNameSet, defaultCreateScopedColumnName, } from './config'; | ||
import { pickInfoFromCallerTypeId } from './ts-util'; | ||
install(); | ||
/** Allow empty Object */ | ||
@@ -81,14 +82,10 @@ export function validateParamTables(tbs) { | ||
if (!origPrepareStackTrace) { | ||
sourceMapSupport.install(); | ||
if (!Error.prepareStackTrace) { | ||
throw new Error('Error.prepareStackTrace not defined'); | ||
} | ||
throw new Error('Error.prepareStackTrace not defined'); | ||
} | ||
// void else in debug hooked by source-map-support already | ||
const patchedPrepareStackTrace = Error.prepareStackTrace; | ||
// Override with function that just returns `stack` | ||
Error.prepareStackTrace = function (_err, stack) { | ||
const target = stack[depth + 1]; | ||
// @ts-expect-error | ||
return patchedPrepareStackTrace(_err, [target]); | ||
const ret = origPrepareStackTrace(_err, [target]); | ||
return ret; | ||
}; | ||
@@ -95,0 +92,0 @@ const limit = Error.stackTraceLimit; |
{ | ||
"name": "kmore-types", | ||
"author": "waiting", | ||
"version": "2.0.1", | ||
"version": "2.0.2", | ||
"description": "Retrieve types info from ts file", | ||
@@ -28,5 +28,5 @@ "keywords": [ | ||
"dependencies": { | ||
"@waiting/shared-core": "4", | ||
"@waiting/shared-types": "4", | ||
"rxjs": "^6.5.2", | ||
"@waiting/shared-core": "5", | ||
"@waiting/shared-types": "5", | ||
"rxjs": "6", | ||
"rxwalker": "^3.0.0", | ||
@@ -39,9 +39,9 @@ "source-map-support": "^0.5.13" | ||
"rxrunscript": "5", | ||
"typescript": "3" | ||
"typescript": "4" | ||
}, | ||
"peerDependencies": { | ||
"typescript": "^3.9" | ||
"typescript": "^4.1" | ||
}, | ||
"engines": { | ||
"node": ">=10.16.0" | ||
"node": ">=12.13.0" | ||
}, | ||
@@ -61,2 +61,3 @@ "files": [ | ||
"test:browser": "cd .config && npm run browser && cd ..", | ||
"test:local": "cross-env TS_NODE_PROJECT=test/tsconfig.json ../../node_modules/.bin/mocha --parallel=false", | ||
"tsc": "tsc -p tsconfig.json", | ||
@@ -85,9 +86,10 @@ "tsc:w": "tsc -p tsconfig.json -w" | ||
"reporter": [ | ||
"text-summary", | ||
"html", | ||
"json", | ||
"html" | ||
"text", | ||
"text-summary" | ||
], | ||
"all": true | ||
}, | ||
"gitHead": "7785c2195e3279e849a6b6ca36a3dae2dd4311b4" | ||
"gitHead": "c2a7a8f8d90fe341129a8362523202c590057b55" | ||
} |
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
166
250443
3755
0
+ Added@waiting/shared-core@5.9.1(transitive)
+ Added@waiting/shared-types@5.9.1(transitive)
+ Addedtypescript@4.9.5(transitive)
- Removed@waiting/shared-core@4.8.1(transitive)
- Removed@waiting/shared-types@4.8.1(transitive)
- Removedtypescript@3.9.10(transitive)
Updated@waiting/shared-core@5
Updated@waiting/shared-types@5
Updatedrxjs@6