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

Method constructor

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected