metro-source-map 0.76.1 → 0.76.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "metro-source-map",
3
- "version": "0.76.1",
3
+ "version": "0.76.2",
4
4
  "description": "🚇 Source map generator for Metro.",
5
5
  "main": "src/source-map.js",
6
6
  "repository": {
@@ -15,9 +15,9 @@
15
15
  "@babel/traverse": "^7.20.0",
16
16
  "@babel/types": "^7.20.0",
17
17
  "invariant": "^2.2.4",
18
- "metro-symbolicate": "0.76.1",
18
+ "metro-symbolicate": "0.76.2",
19
19
  "nullthrows": "^1.1.1",
20
- "ob1": "0.76.1",
20
+ "ob1": "0.76.2",
21
21
  "source-map": "^0.5.6",
22
22
  "vlq": "^1.0.0"
23
23
  },
package/types/index.d.ts DELETED
@@ -1,61 +0,0 @@
1
- /**
2
- * Copyright (c) Meta Platforms, Inc. and affiliates.
3
- *
4
- * This source code is licensed under the MIT license found in the
5
- * LICENSE file in the root directory of this source tree.
6
- *
7
- * @format
8
- * @oncall react_native
9
- */
10
-
11
- export type GeneratedCodeMapping = [number, number];
12
- export type SourceMapping = [number, number, number, number];
13
- export type SourceMappingWithName = [number, number, number, number, string];
14
-
15
- export type MetroSourceMapSegmentTuple =
16
- | SourceMappingWithName
17
- | SourceMapping
18
- | GeneratedCodeMapping;
19
-
20
- export interface HermesFunctionOffsets {
21
- [id: number]: ReadonlyArray<number>;
22
- }
23
-
24
- export type FBSourcesArray = ReadonlyArray<FBSourceMetadata | null>;
25
- export type FBSourceMetadata = [FBSourceFunctionMap | null];
26
- export interface FBSourceFunctionMap {
27
- readonly names: ReadonlyArray<string>;
28
- readonly mappings: string;
29
- }
30
-
31
- export interface FBSegmentMap {
32
- [id: string]: MixedSourceMap;
33
- }
34
-
35
- export interface BasicSourceMap {
36
- readonly file?: string;
37
- readonly mappings: string;
38
- readonly names: string[];
39
- readonly sourceRoot?: string;
40
- readonly sources: string[];
41
- readonly sourcesContent?: Array<string | undefined>;
42
- readonly version: number;
43
- }
44
-
45
- export interface IndexMapSection {
46
- map: IndexMap | BasicSourceMap;
47
- offset: {
48
- line: number;
49
- column: number;
50
- };
51
- }
52
-
53
- export interface IndexMap {
54
- readonly file?: string;
55
- readonly mappings?: unknown;
56
- readonly sourcesContent?: unknown;
57
- readonly sections: IndexMapSection[];
58
- readonly version: number;
59
- }
60
-
61
- export type MixedSourceMap = IndexMap | BasicSourceMap;
File without changes