Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@ts-common/source-map

Package Overview
Dependencies
Maintainers
1
Versions
49
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ts-common/source-map - npm Package Compare versions

Comparing version 0.2.4 to 0.2.5

5

index.d.ts

@@ -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;

6

index.js

@@ -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"

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