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.0.21 to 0.0.22

1

index.d.ts

@@ -37,2 +37,3 @@ import { StringMap } from "@ts-common/string-map";

export declare const getFileInfo: (info: Info) => FileInfo;
export declare const getPath: (info: Info) => ReadonlyArray<string | number>;
export {};

@@ -84,2 +84,16 @@ "use strict";

exports.getFileInfo = (info) => info.kind === "file" ? info : exports.getFileInfo(info.parent);
const getReversedPath = (info) => {
function* iterator() {
if (info.kind === "file") {
return;
}
let o = info;
while (o.parent.kind !== "file") {
yield o.property;
o = o.parent;
}
}
return _.iterable(iterator);
};
exports.getPath = (info) => _.reverse(getReversedPath(info));
//# sourceMappingURL=index.js.map

4

package.json
{
"name": "@ts-common/source-map",
"version": "0.0.21",
"version": "0.0.22",
"description": "Source Map",

@@ -44,3 +44,3 @@ "main": "index.js",

"dependencies": {
"@ts-common/iterator": "0.0.34",
"@ts-common/iterator": "0.0.35",
"@ts-common/json": "0.0.15",

@@ -47,0 +47,0 @@ "@ts-common/property-set": "0.0.7",

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