{"_id":"@types/source-list-map","_rev":"3183844","name":"@types/source-list-map","description":"TypeScript definitions for source-list-map","dist-tags":{"latest":"0.1.6","ts2.0":"0.1.2","ts2.1":"0.1.2","ts2.2":"0.1.2","ts2.3":"0.1.2","ts2.4":"0.1.2","ts2.5":"0.1.2","ts2.6":"0.1.2","ts2.7":"0.1.2","ts2.8":"0.1.2","ts2.9":"0.1.2","ts3.0":"0.1.2","ts3.1":"0.1.2","ts3.2":"0.1.2","ts3.3":"0.1.2","ts3.4":"0.1.2","ts3.5":"0.1.2","ts3.6":"0.1.2","ts3.7":"0.1.2","ts3.8":"0.1.2","ts3.9":"0.1.2","ts4.0":"0.1.2","ts4.1":"0.1.2","ts4.2":"0.1.2","ts4.3":"0.1.2","ts4.4":"0.1.2","ts4.5":"0.1.6","ts4.6":"0.1.6","ts4.7":"0.1.6","ts4.8":"0.1.6","ts4.9":"0.1.6","ts5.0":"0.1.6","ts5.1":"0.1.6","ts5.2":"0.1.6","ts5.3":"0.1.6","ts5.4":"0.1.6"},"maintainers":[{"name":"types","email":""}],"time":{"modified":"2023-12-06T08:48:35.000Z","created":"2016-11-03T17:43:32.949Z","0.1.6":"2023-11-21T01:07:04.856Z","0.1.5":"2023-11-07T16:52:44.535Z","0.1.4":"2023-10-18T15:20:59.537Z","0.1.3":"2023-09-25T14:52:44.821Z","0.1.2":"2017-08-21T22:04:34.663Z","0.1.1":"2016-12-01T01:18:53.579Z","0.1.0":"2016-11-03T17:43:32.949Z"},"users":{},"repository":{"type":"git","url":"https://github.com/DefinitelyTyped/DefinitelyTyped.git","directory":"types/source-list-map"},"versions":{"0.1.6":{"name":"@types/source-list-map","version":"0.1.6","description":"TypeScript definitions for source-list-map","homepage":"https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/source-list-map","license":"MIT","contributors":[{"name":"e-cloud","githubUsername":"e-cloud","url":"https://github.com/e-cloud"}],"main":"","types":"index.d.ts","repository":{"type":"git","url":"https://github.com/DefinitelyTyped/DefinitelyTyped.git","directory":"types/source-list-map"},"scripts":{},"dependencies":{},"typesPublisherContentHash":"07d3ed18f56b2577ea692c7caa363a48937da1181a8af2b18a95e2447c75c614","typeScriptVersion":"4.5","_id":"@types/source-list-map@0.1.6","dist":{"shasum":"164e169dd061795b50b83c19e4d3be09f8d3a454","size":1996,"noattachment":false,"key":"/@types/source-list-map/-/@types/source-list-map-0.1.6.tgz","tarball":"http://registry.cnpm.dingdandao.com/@types/source-list-map/download/@types/source-list-map-0.1.6.tgz"},"_npmUser":{"name":"types","email":"ts-npm-types@microsoft.com"},"directories":{},"maintainers":[{"name":"types","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/source-list-map_0.1.6_1700528824685_0.05016577692335211"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-11-21T01:07:04.856Z","publish_time":1700528824856,"_source_registry_name":"default","_cnpm_publish_time":1700528824856},"0.1.5":{"name":"@types/source-list-map","version":"0.1.5","description":"TypeScript definitions for source-list-map","homepage":"https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/source-list-map","license":"MIT","contributors":[{"name":"e-cloud","githubUsername":"e-cloud","url":"https://github.com/e-cloud"}],"main":"","types":"index.d.ts","repository":{"type":"git","url":"https://github.com/DefinitelyTyped/DefinitelyTyped.git","directory":"types/source-list-map"},"scripts":{},"dependencies":{},"typesPublisherContentHash":"5b1c6e8a8fccc15aec531ae688ab38d1d25041f82c2710bc2f5fd43d923fd36a","typeScriptVersion":"4.5","_id":"@types/source-list-map@0.1.5","dist":{"shasum":"1ec07192b889558a410833b237e595a906e5e349","size":1993,"noattachment":false,"key":"/@types/source-list-map/-/@types/source-list-map-0.1.5.tgz","tarball":"http://registry.cnpm.dingdandao.com/@types/source-list-map/download/@types/source-list-map-0.1.5.tgz"},"_npmUser":{"name":"types","email":"ts-npm-types@microsoft.com"},"directories":{},"maintainers":[{"name":"types","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/source-list-map_0.1.5_1699375964316_0.38125257935039825"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-11-07T16:52:44.535Z","publish_time":1699375964535,"_source_registry_name":"default","_cnpm_publish_time":1699375964535},"0.1.4":{"name":"@types/source-list-map","version":"0.1.4","description":"TypeScript definitions for source-list-map","homepage":"https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/source-list-map","license":"MIT","contributors":[{"name":"e-cloud","githubUsername":"e-cloud","url":"https://github.com/e-cloud"}],"main":"","types":"index.d.ts","repository":{"type":"git","url":"https://github.com/DefinitelyTyped/DefinitelyTyped.git","directory":"types/source-list-map"},"scripts":{},"dependencies":{},"typesPublisherContentHash":"7873c2daf19d6543674d2ff8c6aeeed8393822d47a46916bcb6408ef056dea0f","typeScriptVersion":"4.5","_id":"@types/source-list-map@0.1.4","dist":{"shasum":"a3d4e4791606f40a833ab1caf41f77463c8d72ff","size":1994,"noattachment":false,"key":"/@types/source-list-map/-/@types/source-list-map-0.1.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/@types/source-list-map/download/@types/source-list-map-0.1.4.tgz"},"_npmUser":{"name":"types","email":"ts-npm-types@microsoft.com"},"directories":{},"maintainers":[{"name":"types","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/source-list-map_0.1.4_1697642459180_0.8265208608919605"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-10-18T15:20:59.537Z","publish_time":1697642459537,"_source_registry_name":"default","_cnpm_publish_time":1697642459537},"0.1.3":{"name":"@types/source-list-map","version":"0.1.3","description":"TypeScript definitions for source-list-map","homepage":"https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/source-list-map","license":"MIT","contributors":[{"name":"e-cloud","url":"https://github.com/e-cloud","githubUsername":"e-cloud"}],"main":"","types":"index.d.ts","repository":{"type":"git","url":"https://github.com/DefinitelyTyped/DefinitelyTyped.git","directory":"types/source-list-map"},"scripts":{},"dependencies":{},"typesPublisherContentHash":"2279af68df542a2955f093216eafed7895de181664cb7662a7724ba2a7b4efdd","typeScriptVersion":"4.5","_id":"@types/source-list-map@0.1.3","dist":{"shasum":"077e15c87fe06520e30396a533bd9848e735ce9b","size":2047,"noattachment":false,"key":"/@types/source-list-map/-/@types/source-list-map-0.1.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/@types/source-list-map/download/@types/source-list-map-0.1.3.tgz"},"_npmUser":{"name":"types","email":"ts-npm-types@microsoft.com"},"directories":{},"maintainers":[{"name":"types","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/source-list-map_0.1.3_1695653564634_0.8896248931068811"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-09-25T14:52:44.821Z","publish_time":1695653564821,"_source_registry_name":"default","_cnpm_publish_time":1695653564821},"0.1.2":{"name":"@types/source-list-map","version":"0.1.2","description":"TypeScript definitions for source-list-map","license":"MIT","contributors":[{"name":"e-cloud","url":"https://github.com/e-cloud"}],"main":"","repository":{"type":"git","url":"https://www.github.com/DefinitelyTyped/DefinitelyTyped.git"},"scripts":{},"dependencies":{},"typesPublisherContentHash":"5f6375ac4dc8a29e535bfbe3201cb00cbe1ab108d86918f8fd8aeea32f7ae45f","typeScriptVersion":"2.0","_id":"@types/source-list-map@0.1.2","dist":{"shasum":"0078836063ffaf17412349bba364087e0ac02ec9","size":1912,"noattachment":false,"key":"/@types/source-list-map/-/@types/source-list-map-0.1.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/@types/source-list-map/download/@types/source-list-map-0.1.2.tgz"},"maintainers":[{"name":"types","email":""}],"_npmUser":{"name":"types","email":"ts-npm-types@microsoft.com"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/source-list-map-0.1.2.tgz_1503353074549_0.789078256348148"},"directories":{},"publish_time":1503353074663,"_hasShrinkwrap":false,"_cnpm_publish_time":1503353074663},"0.1.1":{"name":"@types/source-list-map","version":"0.1.1","description":"TypeScript definitions for source-list-map","license":"MIT","author":"e-cloud <http://github.com/e-cloud>","main":"","repository":{"type":"git","url":"https://www.github.com/DefinitelyTyped/DefinitelyTyped.git"},"scripts":{},"dependencies":{},"peerDependencies":{},"typesPublisherContentHash":"efae30381890cdcc88b0b33ca87f346067cf85af552a59023f3996d11f91c006","_id":"@types/source-list-map@0.1.1","dist":{"shasum":"481a91fbe0f1858b6e4293abd8a817ec32908d85","size":1402,"noattachment":false,"key":"/@types/source-list-map/-/@types/source-list-map-0.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/@types/source-list-map/download/@types/source-list-map-0.1.1.tgz"},"maintainers":[{"name":"types","email":""}],"_npmUser":{"name":"types","email":"ts-npm-types@microsoft.com"},"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/source-list-map-0.1.1.tgz_1480555131688_0.5335045165847987"},"directories":{},"publish_time":1480555133579,"_cnpm_publish_time":1480555133579,"_hasShrinkwrap":false},"0.1.0":{"name":"@types/source-list-map","version":"0.1.0","description":"TypeScript definitions for source-list-map v0.1.6","license":"MIT","author":"e-cloud <http://github.com/e-cloud>","main":"","repository":{"type":"git","url":"https://www.github.com/DefinitelyTyped/DefinitelyTyped.git"},"scripts":{},"dependencies":{},"peerDependencies":{},"typings":"index.d.ts","typesPublisherContentHash":"ef83d677bdfe132f0569fbce7bfddd7f3769a2561a67612eaf492eac12b32df2","_id":"@types/source-list-map@0.1.0","dist":{"shasum":"3d7ea3277c35279e18187da381708a5309327d5f","size":1419,"noattachment":false,"key":"/@types/source-list-map/-/@types/source-list-map-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@types/source-list-map/download/@types/source-list-map-0.1.0.tgz"},"maintainers":[{"name":"types","email":""}],"_npmUser":{"name":"types","email":"ts-npm-types@microsoft.com"},"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/source-list-map-0.1.0.tgz_1478195011384_0.05328640015795827"},"directories":{},"publish_time":1478195012949,"_cnpm_publish_time":1478195012949,"_hasShrinkwrap":false}},"readme":"# Installation\r\n> `npm install --save @types/source-list-map`\r\n\r\n# Summary\r\nThis package contains type definitions for source-list-map (https://github.com/webpack/source-list-map.git).\r\n\r\n# Details\r\nFiles were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/source-list-map.\r\n## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/source-list-map/index.d.ts)\r\n````ts\r\nexport class CodeNode {\n    generatedCode: string;\n\n    constructor(generatedCode: string);\n\n    clone(): CodeNode;\n\n    getGeneratedCode(): string;\n\n    getMappings(mappingsContext?: MappingsContext): string;\n\n    addGeneratedCode(generatedCode: string): void;\n\n    mapGeneratedCode(fn: (code: string) => string): void;\n}\n\nexport class MappingsContext {\n    sources: string[];\n    sourcesContent: string[];\n    hasSourceContent: boolean;\n    currentOriginalLine: number;\n    currentSource: number;\n\n    constructor();\n\n    ensureSource(source: string, originalSource: string): number;\n}\n\nexport class SourceNode {\n    generatedCode: string;\n    source: string;\n    originalSource: string;\n    startingLine: number;\n\n    constructor(generatedCode: string, source: string, originalSource: string, startingLine?: number);\n\n    clone(): SourceNode;\n\n    getGeneratedCode(): string;\n\n    getMappings(mappingsContext: MappingsContext): string;\n\n    mapGeneratedCode(fn: (code: string) => string): void;\n}\n\nexport class SourceListMap {\n    children: Array<SourceNode | CodeNode>;\n\n    constructor(generatedCode: Array<SourceNode | CodeNode>);\n    constructor(\n        generatedCode?: string | SourceNode | CodeNode | SourceListMap,\n        source?: string,\n        originalSource?: string,\n    );\n\n    add(\n        generatedCode: string | CodeNode | SourceNode | SourceListMap,\n        source?: string,\n        originalSource?: string,\n    ): void;\n\n    prepend(generatedCode: SourceListMap | SourceNode | CodeNode, source?: string, originalSource?: string): void;\n\n    mapGeneratedCode(fn: (code: string) => string): void;\n\n    toString(): string;\n\n    toStringWithSourceMap(options: { file: any }): {\n        source: string;\n        map: {\n            version: number;\n            file: any;\n            sources: string[];\n            sourcesContent: string[];\n            mappings: string;\n        };\n    };\n}\n\nexport function fromStringWithSourceMap(\n    code: string,\n    map: {\n        sources: Array<string | SourceNode | CodeNode>;\n        sourcesContent: string[];\n        mappings: string;\n    },\n): SourceListMap;\n\r\n````\r\n\r\n### Additional Details\r\n * Last updated: Mon, 20 Nov 2023 23:36:24 GMT\r\n * Dependencies: none\r\n\r\n# Credits\r\nThese definitions were written by [e-cloud](https://github.com/e-cloud).\r\n","_attachments":{},"homepage":"https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/source-list-map","license":"MIT"}