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.24 to 0.3.25

10

dist/trace-mapping.umd.js

@@ -196,3 +196,3 @@ (function (global, factory) {

const AnyMap = function (map, mapUrl) {
const parsed = typeof map === 'string' ? JSON.parse(map) : map;
const parsed = parse(map);
if (!('sections' in parsed)) {

@@ -218,2 +218,5 @@ return new TraceMap(parsed, mapUrl);

};
function parse(map) {
return typeof map === 'string' ? JSON.parse(map) : map;
}
function recurse(input, mapUrl, mappings, sources, sourcesContent, names, ignoreList, lineOffset, columnOffset, stopLine, stopColumn) {

@@ -239,5 +242,6 @@ const { sections } = input;

function addSection(input, mapUrl, mappings, sources, sourcesContent, names, ignoreList, lineOffset, columnOffset, stopLine, stopColumn) {
if ('sections' in input)
const parsed = parse(input);
if ('sections' in parsed)
return recurse(...arguments);
const map = new TraceMap(input, mapUrl);
const map = new TraceMap(parsed, mapUrl);
const sourcesOffset = sources.length;

@@ -244,0 +248,0 @@ const namesOffset = names.length;

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 { SourceMap, DecodedSourceMap, EncodedSourceMap, Section, SectionedSourceMap, SourceMapV3, Bias, EachMapping, GeneratedMapping, InvalidGeneratedMapping, InvalidOriginalMapping, Needle, OriginalMapping, OriginalMapping as Mapping, SectionedSourceMapInput, SourceMapInput, SourceNeedle, } from './types';
export type { SourceMap, DecodedSourceMap, EncodedSourceMap, Section, SectionedSourceMap, SourceMapV3, Bias, EachMapping, GeneratedMapping, InvalidGeneratedMapping, InvalidOriginalMapping, Needle, OriginalMapping, OriginalMapping as Mapping, SectionedSourceMapInput, SourceMapInput, SourceNeedle, XInput, EncodedSourceMapXInput, DecodedSourceMapXInput, SectionedSourceMapXInput, SectionXInput, } from './types';
export declare const LEAST_UPPER_BOUND = -1;

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

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

export type SectionXInput = Omit<Section, 'map'> & {
map: EncodedSourceMapXInput | DecodedSourceMapXInput | SectionedSourceMapXInput;
map: SectionedSourceMapInput;
};
export type SourceMapInput = string | Ro<EncodedSourceMapXInput> | Ro<DecodedSourceMapXInput> | TraceMap;
export type SectionedSourceMapInput = SourceMapInput | Ro<SectionedSourceMapXInput>;
export type SourceMapInput = string | EncodedSourceMapXInput | DecodedSourceMapXInput | TraceMap;
export type SectionedSourceMapInput = SourceMapInput | SectionedSourceMapXInput;
export type Needle = {

@@ -101,7 +101,1 @@ line: number;

}
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.24",
"version": "0.3.25",
"description": "Trace the original position through a source map",

@@ -5,0 +5,0 @@ "keywords": [

@@ -25,2 +25,3 @@ # @jridgewell/trace-mapping

sourceContentFor,
isIgnored,
} from '@jridgewell/trace-mapping';

@@ -34,2 +35,3 @@

mappings: 'KAyCIA',
ignoreList: [],
});

@@ -58,2 +60,5 @@

});
const ignored = isIgnored(tracer, 'input.js');
assert.equal(ignored, false);
```

@@ -60,0 +65,0 @@

Sorry, the diff of this file is not supported yet

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