Socket
Socket
Sign inDemoInstall

@jridgewell/trace-mapping

Package Overview
Dependencies
2
Maintainers
1
Versions
37
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.3.20 to 0.3.21

8

dist/trace-mapping.umd.js

@@ -7,6 +7,2 @@ (function (global, factory) {

function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
var resolveUri__default = /*#__PURE__*/_interopDefaultLegacy(resolveUri);
function resolve(input, base) {

@@ -18,3 +14,3 @@ // The base is always treated as a directory, if it's not empty.

base += '/';
return resolveUri__default["default"](input, base);
return resolveUri(input, base);
}

@@ -565,5 +561,3 @@

Object.defineProperty(exports, '__esModule', { value: true });
}));
//# sourceMappingURL=trace-mapping.umd.js.map

2

dist/types/any-map.d.ts
import { TraceMap } from './trace-mapping';
import type { SectionedSourceMapInput } from './types';
declare type AnyMap = {
type AnyMap = {
new (map: SectionedSourceMapInput, mapUrl?: string | null): TraceMap;

@@ -5,0 +5,0 @@ (map: SectionedSourceMapInput, mapUrl?: string | null): TraceMap;

import type { SourceMapSegment, ReverseSegment } from './sourcemap-segment';
export declare type MemoState = {
export type MemoState = {
lastKey: number;

@@ -4,0 +4,0 @@ lastNeedle: number;

import type { ReverseSegment, SourceMapSegment } from './sourcemap-segment';
import type { MemoState } from './binary-search';
export declare type Source = {
export type Source = {
__proto__: null;

@@ -5,0 +5,0 @@ [line: number]: Exclude<ReverseSegment, [number]>[];

@@ -1,9 +0,9 @@

declare type GeneratedColumn = number;
declare type SourcesIndex = number;
declare type SourceLine = number;
declare type SourceColumn = number;
declare type NamesIndex = number;
declare type GeneratedLine = number;
export declare type SourceMapSegment = [GeneratedColumn] | [GeneratedColumn, SourcesIndex, SourceLine, SourceColumn] | [GeneratedColumn, SourcesIndex, SourceLine, SourceColumn, NamesIndex];
export declare type ReverseSegment = [SourceColumn, GeneratedLine, GeneratedColumn];
type GeneratedColumn = number;
type SourcesIndex = number;
type SourceLine = number;
type SourceColumn = number;
type NamesIndex = number;
type GeneratedLine = number;
export type SourceMapSegment = [GeneratedColumn] | [GeneratedColumn, SourcesIndex, SourceLine, SourceColumn] | [GeneratedColumn, SourcesIndex, SourceLine, SourceColumn, NamesIndex];
export type ReverseSegment = [SourceColumn, GeneratedLine, GeneratedColumn];
export declare const COLUMN = 0;

@@ -10,0 +10,0 @@ export declare const SOURCES_INDEX = 1;

import type { SourceMapSegment } from './sourcemap-segment';
import type { SourceMapV3, DecodedSourceMap, EncodedSourceMap, InvalidOriginalMapping, OriginalMapping, InvalidGeneratedMapping, GeneratedMapping, SourceMapInput, Needle, SourceNeedle, SourceMap, EachMapping } from './types';
export type { SourceMapSegment } from './sourcemap-segment';
export type { SourceMapInput, SectionedSourceMapInput, DecodedSourceMap, EncodedSourceMap, SectionedSourceMap, InvalidOriginalMapping, OriginalMapping as Mapping, OriginalMapping, InvalidGeneratedMapping, GeneratedMapping, EachMapping, } from './types';
export type * from './types';
export declare const LEAST_UPPER_BOUND = -1;

@@ -6,0 +6,0 @@ export declare const GREATEST_LOWER_BOUND = 1;

@@ -29,3 +29,3 @@ import type { SourceMapSegment } from './sourcemap-segment';

}
export declare type OriginalMapping = {
export type OriginalMapping = {
source: string | null;

@@ -36,3 +36,3 @@ line: number;

};
export declare type InvalidOriginalMapping = {
export type InvalidOriginalMapping = {
source: null;

@@ -43,14 +43,14 @@ line: null;

};
export declare type GeneratedMapping = {
export type GeneratedMapping = {
line: number;
column: number;
};
export declare type InvalidGeneratedMapping = {
export type InvalidGeneratedMapping = {
line: null;
column: null;
};
export declare type Bias = typeof GREATEST_LOWER_BOUND | typeof LEAST_UPPER_BOUND;
export declare type SourceMapInput = string | Ro<EncodedSourceMap> | Ro<DecodedSourceMap> | TraceMap;
export declare type SectionedSourceMapInput = SourceMapInput | Ro<SectionedSourceMap>;
export declare type Needle = {
export type Bias = typeof GREATEST_LOWER_BOUND | typeof LEAST_UPPER_BOUND;
export type SourceMapInput = string | Ro<EncodedSourceMap> | Ro<DecodedSourceMap> | TraceMap;
export type SectionedSourceMapInput = SourceMapInput | Ro<SectionedSourceMap>;
export type Needle = {
line: number;

@@ -60,3 +60,3 @@ column: number;

};
export declare type SourceNeedle = {
export type SourceNeedle = {
source: string;

@@ -67,3 +67,3 @@ line: number;

};
export declare type EachMapping = {
export type EachMapping = {
generatedLine: number;

@@ -92,7 +92,7 @@ generatedColumn: number;

}
export declare type Ro<T> = T extends Array<infer V> ? V[] | Readonly<V[]> | RoArray<V> | Readonly<RoArray<V>> : T extends object ? T | Readonly<T> | RoObject<T> | Readonly<RoObject<T>> : T;
declare type RoArray<T> = Ro<T>[];
declare type RoObject<T> = {
export type Ro<T> = T extends Array<infer V> ? V[] | Readonly<V[]> | RoArray<V> | Readonly<RoArray<V>> : T extends object ? T | Readonly<T> | RoObject<T> | Readonly<RoObject<T>> : T;
type RoArray<T> = Ro<T>[];
type RoObject<T> = {
[K in keyof T]: T[K] | Ro<T[K]>;
};
export {};
{
"name": "@jridgewell/trace-mapping",
"version": "0.3.20",
"version": "0.3.21",
"description": "Trace the original position through a source map",

@@ -38,3 +38,3 @@ "keywords": [

"build": "run-s -n build:*",
"build:rollup": "rollup -c rollup.config.js",
"build:rollup": "rollup -c rollup.config.mjs",
"build:ts": "tsc --project tsconfig.build.json",

@@ -56,17 +56,17 @@ "lint": "run-s -n lint:*",

"devDependencies": {
"@rollup/plugin-typescript": "8.5.0",
"@typescript-eslint/eslint-plugin": "5.39.0",
"@typescript-eslint/parser": "5.39.0",
"ava": "4.3.3",
"@rollup/plugin-typescript": "11.1.6",
"@typescript-eslint/eslint-plugin": "6.18.1",
"@typescript-eslint/parser": "6.18.1",
"ava": "6.0.1",
"benchmark": "2.1.4",
"c8": "7.12.0",
"esbuild": "0.15.10",
"eslint": "8.25.0",
"eslint-config-prettier": "8.5.0",
"eslint-plugin-no-only-tests": "3.0.0",
"c8": "9.0.0",
"esbuild": "0.19.11",
"eslint": "8.56.0",
"eslint-config-prettier": "9.1.0",
"eslint-plugin-no-only-tests": "3.1.0",
"npm-run-all": "4.1.5",
"prettier": "2.7.1",
"rollup": "2.79.1",
"tsx": "3.10.1",
"typescript": "4.8.4"
"prettier": "3.1.1",
"rollup": "4.9.4",
"tsx": "4.7.0",
"typescript": "5.3.3"
},

@@ -73,0 +73,0 @@ "dependencies": {

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc