@ts-common/source-map
Advanced tools
Comparing version 0.2.4 to 0.2.5
@@ -11,2 +11,3 @@ import { StringMap } from "@ts-common/string-map"; | ||
readonly position: FilePosition; | ||
readonly primitiveProperties: StringMap<FilePosition>; | ||
} | ||
@@ -17,3 +18,3 @@ export interface RootObjectInfo extends BaseObjectInfo { | ||
} | ||
export declare const createRootObjectInfo: (position: FilePosition, url: string) => RootObjectInfo; | ||
export declare const createRootObjectInfo: (position: FilePosition, url: string, primitiveProperties: StringMap<FilePosition>) => RootObjectInfo; | ||
export interface ChildObjectInfo extends BaseObjectInfo { | ||
@@ -24,3 +25,3 @@ readonly isChild: true; | ||
} | ||
export declare const createChildObjectInfo: (position: FilePosition, parent: TrackedBase, property: string | number) => ChildObjectInfo; | ||
export declare const createChildObjectInfo: (position: FilePosition, parent: TrackedBase, property: string | number, primitiveProperties: StringMap<FilePosition>) => ChildObjectInfo; | ||
export declare type ObjectInfo = ChildObjectInfo | RootObjectInfo; | ||
@@ -27,0 +28,0 @@ export declare const objectInfoSymbol: unique symbol; |
@@ -7,8 +7,9 @@ "use strict"; | ||
const propertySet = tslib_1.__importStar(require("@ts-common/property-set")); | ||
exports.createRootObjectInfo = (position, url) => ({ | ||
exports.createRootObjectInfo = (position, url, primitiveProperties) => ({ | ||
isChild: false, | ||
position, | ||
url, | ||
primitiveProperties | ||
}); | ||
exports.createChildObjectInfo = (position, parent, property) => ({ | ||
exports.createChildObjectInfo = (position, parent, property, primitiveProperties) => ({ | ||
isChild: true, | ||
@@ -18,2 +19,3 @@ position, | ||
property, | ||
primitiveProperties | ||
}); | ||
@@ -20,0 +22,0 @@ exports.objectInfoSymbol = Symbol.for("@ts-common/source-map/object-info"); |
{ | ||
"name": "@ts-common/source-map", | ||
"version": "0.2.4", | ||
"version": "0.2.5", | ||
"description": "Source Map", | ||
@@ -39,3 +39,3 @@ "main": "index.js", | ||
"mocha": "^5.2.0", | ||
"nyc": "^12.0.2", | ||
"nyc": "^13.0.1", | ||
"tslib": "^1.9.3", | ||
@@ -42,0 +42,0 @@ "typescript": "^3.0.1" |
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
20427
178