MCPcopy Create free account
hub / github.com/Rich-Harris/magic-string / constructor

Method constructor

src/SourceMap.ts:81–94  ·  view source on GitHub ↗
(properties: DecodedSourceMap)

Source from the content-addressed store, hash-verified

79 declare debugId: string | undefined
80
81 constructor(properties: DecodedSourceMap) {
82 this.version = 3
83 this.file = properties.file
84 this.sources = properties.sources
85 this.sourcesContent = properties.sourcesContent
86 this.names = properties.names
87 this.mappings = encode(properties.mappings)
88 if (typeof properties.x_google_ignoreList !== 'undefined') {
89 this.x_google_ignoreList = properties.x_google_ignoreList
90 }
91 if (typeof properties.debugId !== 'undefined') {
92 this.debugId = properties.debugId
93 }
94 }
95
96 /**
97 * Returns the equivalent of `JSON.stringify(map)`

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected