{"_id":"@jridgewell/source-map","_rev":"286695","name":"@jridgewell/source-map","description":"Packages @jridgewell/trace-mapping and @jridgewell/gen-mapping into the familiar source-map API","dist-tags":{"latest":"0.3.5"},"maintainers":[{"name":"jridgewell","email":""}],"time":{"modified":"2023-09-20T21:59:29.000Z","created":"2022-05-01T20:28:41.420Z","0.3.5":"2023-07-03T19:07:28.181Z","0.3.4":"2023-06-29T17:25:48.012Z","0.3.3":"2023-04-07T02:43:04.304Z","0.3.2":"2022-05-01T21:04:04.833Z","0.3.1":"2022-05-01T20:50:09.164Z","0.3.0":"2022-05-01T20:28:41.420Z"},"users":{},"author":{"name":"Justin Ridgewell","email":"justin@ridgewell.name"},"repository":{"type":"git","url":"git+https://github.com/jridgewell/source-map.git"},"versions":{"0.3.5":{"name":"@jridgewell/source-map","version":"0.3.5","description":"Packages @jridgewell/trace-mapping and @jridgewell/gen-mapping into the familiar source-map API","keywords":["sourcemap","source","map"],"author":{"name":"Justin Ridgewell","email":"justin@ridgewell.name"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/jridgewell/source-map.git"},"main":"dist/source-map.umd.js","module":"dist/source-map.mjs","types":"dist/types/source-map.d.ts","exports":{".":[{"types":"./dist/types/source-map.d.ts","browser":"./dist/source-map.umd.js","require":"./dist/source-map.umd.js","import":"./dist/source-map.mjs"},"./dist/source-map.umd.js"],"./package.json":"./package.json"},"scripts":{"prebuild":"rm -rf dist","build":"run-s -n build:*","build:rollup":"rollup -c rollup.config.js","build:ts":"tsc --project tsconfig.build.json","lint":"run-s -n lint:*","lint:prettier":"npm run test:lint:prettier -- --write","lint:ts":"npm run test:lint:ts -- --fix","pretest":"run-s build:rollup","test":"run-s -n test:lint test:only","test:debug":"mocha --inspect-brk","test:lint":"run-s -n test:lint:*","test:lint:prettier":"prettier --check '{src,test}/**/*.ts'","test:lint:ts":"eslint '{src,test}/**/*.ts'","test:only":"mocha","test:coverage":"c8 mocha","test:watch":"mocha --watch","prepublishOnly":"npm run preversion","preversion":"run-s test build"},"devDependencies":{"@rollup/plugin-node-resolve":"13.2.1","@rollup/plugin-typescript":"8.3.0","@types/mocha":"9.1.1","@types/node":"17.0.30","@typescript-eslint/eslint-plugin":"5.10.0","@typescript-eslint/parser":"5.10.0","c8":"7.11.0","eslint":"8.7.0","eslint-config-prettier":"8.3.0","mocha":"9.2.0","npm-run-all":"4.1.5","prettier":"2.5.1","rollup":"2.66.0","typescript":"4.5.5"},"dependencies":{"@jridgewell/gen-mapping":"^0.3.0","@jridgewell/trace-mapping":"^0.3.9"},"gitHead":"cdd9e75485c511ef781ca8426333073728b80bfb","bugs":{"url":"https://github.com/jridgewell/source-map/issues"},"homepage":"https://github.com/jridgewell/source-map#readme","_id":"@jridgewell/source-map@0.3.5","_nodeVersion":"18.15.0","_npmVersion":"9.5.0","dist":{"shasum":"a3bb4d5c6825aab0d281268f47f6ad5853431e91","size":53826,"noattachment":false,"key":"/@jridgewell/source-map/-/@jridgewell/source-map-0.3.5.tgz","tarball":"http://name.csiicloud.com:7001/@jridgewell/source-map/download/@jridgewell/source-map-0.3.5.tgz"},"_npmUser":{"name":"jridgewell","email":"justin+npm@ridgewell.name"},"directories":{},"maintainers":[{"name":"jridgewell","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/source-map_0.3.5_1688411247980_0.3056247590554553"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-07-03T19:07:28.181Z","publish_time":1688411248181,"_source_registry_name":"default","_cnpm_publish_time":1688411248181},"0.3.4":{"name":"@jridgewell/source-map","version":"0.3.4","description":"Packages @jridgewell/trace-mapping and @jridgewell/gen-mapping into the familiar source-map API","keywords":["sourcemap","source","map"],"author":{"name":"Justin Ridgewell","email":"justin@ridgewell.name"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/jridgewell/source-map.git"},"main":"dist/source-map.umd.js","module":"dist/source-map.mjs","types":"dist/types/source-map.d.ts","exports":{".":[{"types":"./dist/types/source-map.d.ts","browser":"./dist/source-map.umd.js","require":"./dist/source-map.umd.js","import":"./dist/source-map.mjs"},"./dist/source-map.umd.js"],"./package.json":"./package.json"},"scripts":{"prebuild":"rm -rf dist","build":"run-s -n build:*","build:rollup":"rollup -c rollup.config.js","build:ts":"tsc --project tsconfig.build.json","lint":"run-s -n lint:*","lint:prettier":"npm run test:lint:prettier -- --write","lint:ts":"npm run test:lint:ts -- --fix","pretest":"run-s build:rollup","test":"run-s -n test:lint test:only","test:debug":"mocha --inspect-brk","test:lint":"run-s -n test:lint:*","test:lint:prettier":"prettier --check '{src,test}/**/*.ts'","test:lint:ts":"eslint '{src,test}/**/*.ts'","test:only":"mocha","test:coverage":"c8 mocha","test:watch":"mocha --watch","prepublishOnly":"npm run preversion","preversion":"run-s test build"},"devDependencies":{"@jridgewell/gen-mapping":"^0.3.0","@jridgewell/trace-mapping":"^0.3.9","@rollup/plugin-node-resolve":"13.2.1","@rollup/plugin-typescript":"8.3.0","@types/mocha":"9.1.1","@types/node":"17.0.30","@typescript-eslint/eslint-plugin":"5.10.0","@typescript-eslint/parser":"5.10.0","c8":"7.11.0","eslint":"8.7.0","eslint-config-prettier":"8.3.0","mocha":"9.2.0","npm-run-all":"4.1.5","prettier":"2.5.1","rollup":"2.66.0","typescript":"4.5.5"},"gitHead":"74c6e9d0ca771dbec1265a04e25db2a34628247b","bugs":{"url":"https://github.com/jridgewell/source-map/issues"},"homepage":"https://github.com/jridgewell/source-map#readme","_id":"@jridgewell/source-map@0.3.4","_nodeVersion":"18.15.0","_npmVersion":"9.5.0","dist":{"shasum":"856a142864530d4059dda415659b48d37db2d556","size":53820,"noattachment":false,"key":"/@jridgewell/source-map/-/@jridgewell/source-map-0.3.4.tgz","tarball":"http://name.csiicloud.com:7001/@jridgewell/source-map/download/@jridgewell/source-map-0.3.4.tgz"},"_npmUser":{"name":"jridgewell","email":"justin+npm@ridgewell.name"},"directories":{},"maintainers":[{"name":"jridgewell","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/source-map_0.3.4_1688059547774_0.07819354366403553"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-06-29T17:25:48.012Z","publish_time":1688059548012,"_source_registry_name":"default","deprecated":"the version has a bug with typescript type resolution","_cnpm_publish_time":1688059548012},"0.3.3":{"name":"@jridgewell/source-map","version":"0.3.3","description":"Packages @jridgewell/trace-mapping and @jridgewell/gen-mapping into the familiar source-map API","keywords":["sourcemap","source","map"],"author":{"name":"Justin Ridgewell","email":"justin@ridgewell.name"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/jridgewell/source-map.git"},"main":"dist/source-map.umd.js","module":"dist/source-map.mjs","types":"dist/types/source-map.d.ts","exports":{".":[{"types":"./dist/types/source-map.d.ts","browser":"./dist/source-map.umd.js","require":"./dist/source-map.umd.js","import":"./dist/source-map.mjs"},"./dist/source-map.umd.js"],"./package.json":"./package.json"},"scripts":{"prebuild":"rm -rf dist","build":"run-s -n build:*","build:rollup":"rollup -c rollup.config.js","build:ts":"tsc --project tsconfig.build.json","lint":"run-s -n lint:*","lint:prettier":"npm run test:lint:prettier -- --write","lint:ts":"npm run test:lint:ts -- --fix","pretest":"run-s build:rollup","test":"run-s -n test:lint test:only","test:debug":"mocha --inspect-brk","test:lint":"run-s -n test:lint:*","test:lint:prettier":"prettier --check '{src,test}/**/*.ts'","test:lint:ts":"eslint '{src,test}/**/*.ts'","test:only":"mocha","test:coverage":"c8 mocha","test:watch":"mocha --watch","prepublishOnly":"npm run preversion","preversion":"run-s test build"},"devDependencies":{"@rollup/plugin-node-resolve":"13.2.1","@rollup/plugin-typescript":"8.3.0","@types/mocha":"9.1.1","@types/node":"17.0.30","@typescript-eslint/eslint-plugin":"5.10.0","@typescript-eslint/parser":"5.10.0","c8":"7.11.0","eslint":"8.7.0","eslint-config-prettier":"8.3.0","mocha":"9.2.0","npm-run-all":"4.1.5","prettier":"2.5.1","rollup":"2.66.0","typescript":"4.5.5"},"dependencies":{"@jridgewell/gen-mapping":"^0.3.0","@jridgewell/trace-mapping":"^0.3.9"},"gitHead":"bd5f63bd90b6b0e3b2fa7e5ef258173f2dda6cc0","bugs":{"url":"https://github.com/jridgewell/source-map/issues"},"homepage":"https://github.com/jridgewell/source-map#readme","_id":"@jridgewell/source-map@0.3.3","_nodeVersion":"18.15.0","_npmVersion":"9.5.0","dist":{"shasum":"8108265659d4c33e72ffe14e33d6cc5eb59f2fda","size":53826,"noattachment":false,"key":"/@jridgewell/source-map/-/@jridgewell/source-map-0.3.3.tgz","tarball":"http://name.csiicloud.com:7001/@jridgewell/source-map/download/@jridgewell/source-map-0.3.3.tgz"},"_npmUser":{"name":"jridgewell","email":"justin+npm@ridgewell.name"},"directories":{},"maintainers":[{"name":"jridgewell","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/source-map_0.3.3_1680835384148_0.2720775997594247"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-04-07T02:43:04.304Z","publish_time":1680835384304,"_cnpm_publish_time":1680835384304},"0.3.2":{"name":"@jridgewell/source-map","version":"0.3.2","description":"Packages @jridgewell/trace-mapping and @jridgewell/gen-mapping into the familiar source-map API","keywords":["sourcemap","source","map"],"author":{"name":"Justin Ridgewell","email":"justin@ridgewell.name"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/jridgewell/source-map.git"},"main":"dist/source-map.umd.js","module":"dist/source-map.mjs","typings":"dist/types/source-map.d.ts","exports":{".":{"browser":"./dist/source-map.umd.js","require":"./dist/source-map.umd.js","import":"./dist/source-map.mjs"},"./package.json":"./package.json"},"scripts":{"prebuild":"rm -rf dist","build":"run-s -n build:*","build:rollup":"rollup -c rollup.config.js","build:ts":"tsc --project tsconfig.build.json","lint":"run-s -n lint:*","lint:prettier":"npm run test:lint:prettier -- --write","lint:ts":"npm run test:lint:ts -- --fix","pretest":"run-s build:rollup","test":"run-s -n test:lint test:only","test:debug":"mocha --inspect-brk","test:lint":"run-s -n test:lint:*","test:lint:prettier":"prettier --check '{src,test}/**/*.ts'","test:lint:ts":"eslint '{src,test}/**/*.ts'","test:only":"mocha","test:coverage":"c8 mocha","test:watch":"mocha --watch","prepublishOnly":"npm run preversion","preversion":"run-s test build"},"devDependencies":{"@rollup/plugin-node-resolve":"13.2.1","@rollup/plugin-typescript":"8.3.0","@types/mocha":"9.1.1","@types/node":"17.0.30","@typescript-eslint/eslint-plugin":"5.10.0","@typescript-eslint/parser":"5.10.0","c8":"7.11.0","eslint":"8.7.0","eslint-config-prettier":"8.3.0","mocha":"9.2.0","npm-run-all":"4.1.5","prettier":"2.5.1","rollup":"2.66.0","typescript":"4.5.5"},"dependencies":{"@jridgewell/gen-mapping":"^0.3.0","@jridgewell/trace-mapping":"^0.3.9"},"gitHead":"b7c3b0bd1745be2d093063128ad8391c05ccf7b7","bugs":{"url":"https://github.com/jridgewell/source-map/issues"},"homepage":"https://github.com/jridgewell/source-map#readme","_id":"@jridgewell/source-map@0.3.2","_nodeVersion":"14.19.0","_npmVersion":"6.14.16","dist":{"shasum":"f45351aaed4527a298512ec72f81040c998580fb","size":54317,"noattachment":false,"key":"/@jridgewell/source-map/-/@jridgewell/source-map-0.3.2.tgz","tarball":"http://name.csiicloud.com:7001/@jridgewell/source-map/download/@jridgewell/source-map-0.3.2.tgz"},"_npmUser":{"name":"jridgewell","email":"justin+npm@ridgewell.name"},"directories":{},"maintainers":[{"name":"jridgewell","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/source-map_0.3.2_1651439044699_0.903848179376515"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-05-01T21:04:09.351Z","publish_time":1651439044833,"_cnpm_publish_time":1651439044833},"0.3.1":{"name":"@jridgewell/source-map","version":"0.3.1","description":"Packages @jridgewell/trace-mapping and @jridgewell/gen-mapping into the familiar source-map API","keywords":["sourcemap","source","map"],"author":{"name":"Justin Ridgewell","email":"justin@ridgewell.name"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/jridgewell/source-map.git"},"main":"dist/source-map.umd.js","module":"dist/source-map.mjs","typings":"dist/types/source-map.d.ts","exports":{".":{"browser":"./dist/source-map.umd.js","require":"./dist/source-map.umd.js","import":"./dist/source-map.mjs"},"./package.json":"./package.json"},"scripts":{"prebuild":"rm -rf dist","build":"run-s -n build:*","build:rollup":"rollup -c rollup.config.js","build:ts":"tsc --project tsconfig.build.json","lint":"run-s -n lint:*","lint:prettier":"npm run test:lint:prettier -- --write","lint:ts":"npm run test:lint:ts -- --fix","pretest":"run-s build:rollup","test":"run-s -n test:lint test:only","test:debug":"mocha --inspect-brk","test:lint":"run-s -n test:lint:*","test:lint:prettier":"prettier --check '{src,test}/**/*.ts'","test:lint:ts":"eslint '{src,test}/**/*.ts'","test:only":"mocha","test:coverage":"c8 mocha","test:watch":"mocha --watch","prepublishOnly":"npm run preversion","preversion":"run-s test build"},"devDependencies":{"@rollup/plugin-node-resolve":"13.2.1","@rollup/plugin-typescript":"8.3.0","@types/mocha":"9.1.1","@types/node":"17.0.30","@typescript-eslint/eslint-plugin":"5.10.0","@typescript-eslint/parser":"5.10.0","c8":"7.11.0","eslint":"8.7.0","eslint-config-prettier":"8.3.0","mocha":"9.2.0","npm-run-all":"4.1.5","prettier":"2.5.1","rollup":"2.66.0","typescript":"4.5.5"},"dependencies":{"@jridgewell/gen-mapping":"^0.3.0","@jridgewell/trace-mapping":"^0.3.9"},"gitHead":"e1c966022a20f71ad6a1c64877b06d43999f664b","bugs":{"url":"https://github.com/jridgewell/source-map/issues"},"homepage":"https://github.com/jridgewell/source-map#readme","_id":"@jridgewell/source-map@0.3.1","_nodeVersion":"18.0.0","_npmVersion":"8.6.0","dist":{"shasum":"a7a54e1f9adc78ba3029d1500185fbcb1e213bd2","size":53749,"noattachment":false,"key":"/@jridgewell/source-map/-/@jridgewell/source-map-0.3.1.tgz","tarball":"http://name.csiicloud.com:7001/@jridgewell/source-map/download/@jridgewell/source-map-0.3.1.tgz"},"_npmUser":{"name":"jridgewell","email":"justin+npm@ridgewell.name"},"directories":{},"maintainers":[{"name":"jridgewell","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/source-map_0.3.1_1651438209039_0.44054804160862604"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-05-01T20:50:14.188Z","publish_time":1651438209164,"_cnpm_publish_time":1651438209164},"0.3.0":{"name":"@jridgewell/source-map","version":"0.3.0","description":"Packages @jridgewell/trace-mapping and @jridgewell/gen-mapping into the familiar source-map API","keywords":["sourcemap","source","map"],"author":{"name":"Justin Ridgewell","email":"justin@ridgewell.name"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/jridgewell/source-map.git"},"main":"dist/source-map.umd.js","module":"dist/source-map.mjs","typings":"dist/types/source-map.d.ts","exports":{".":{"browser":"./dist/source-map.umd.js","require":"./dist/source-map.umd.js","import":"./dist/source-map.mjs"},"./package.json":"./package.json"},"scripts":{"prebuild":"rm -rf dist","build":"run-s -n build:*","build:rollup":"rollup -c rollup.config.js","build:ts":"tsc --project tsconfig.build.json","lint":"run-s -n lint:*","lint:prettier":"npm run test:lint:prettier -- --write","lint:ts":"npm run test:lint:ts -- --fix","pretest":"run-s build:rollup","test":"run-s -n test:lint test:only","test:debug":"mocha --inspect-brk","test:lint":"run-s -n test:lint:*","test:lint:prettier":"prettier --check '{src,test}/**/*.ts'","test:lint:ts":"eslint '{src,test}/**/*.ts'","test:only":"mocha","test:coverage":"c8 mocha","test:watch":"mocha --watch","prepublishOnly":"npm run preversion","preversion":"run-s test build"},"devDependencies":{"@rollup/plugin-node-resolve":"13.2.1","@rollup/plugin-typescript":"8.3.0","@types/mocha":"9.1.1","@types/node":"17.0.30","@typescript-eslint/eslint-plugin":"5.10.0","@typescript-eslint/parser":"5.10.0","c8":"7.11.0","eslint":"8.7.0","eslint-config-prettier":"8.3.0","mocha":"9.2.0","npm-run-all":"4.1.5","prettier":"2.5.1","rollup":"2.66.0","typescript":"4.5.5"},"dependencies":{"@jridgewell/gen-mapping":"^0.3.0","@jridgewell/trace-mapping":"^0.3.9"},"gitHead":"ca4b57d16450589bdaf20956caccd318303ac953","bugs":{"url":"https://github.com/jridgewell/source-map/issues"},"homepage":"https://github.com/jridgewell/source-map#readme","_id":"@jridgewell/source-map@0.3.0","_nodeVersion":"18.0.0","_npmVersion":"8.6.0","dist":{"shasum":"3970ddc111bd9fcd91731df4fcdd35353b91a590","size":53335,"noattachment":false,"key":"/@jridgewell/source-map/-/@jridgewell/source-map-0.3.0.tgz","tarball":"http://name.csiicloud.com:7001/@jridgewell/source-map/download/@jridgewell/source-map-0.3.0.tgz"},"_npmUser":{"name":"jridgewell","email":"justin+npm@ridgewell.name"},"directories":{},"maintainers":[{"name":"jridgewell","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/source-map_0.3.0_1651436921213_0.5510738729734099"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-05-01T20:28:46.302Z","publish_time":1651436921420,"_cnpm_publish_time":1651436921420}},"readme":"# @jridgewell/source-map\n\n> Packages `@jridgewell/trace-mapping` and `@jridgewell/gen-mapping` into the familiar source-map API\n\nThis isn't the full API, but it's the core functionality. This wraps\n[@jridgewell/trace-mapping][trace-mapping] and [@jridgewell/gen-mapping][gen-mapping]\nimplementations.\n\n## Installation\n\n```sh\nnpm install @jridgewell/source-map\n```\n\n## Usage\n\nTODO\n\n### SourceMapConsumer\n\n```typescript\nimport { SourceMapConsumer } from '@jridgewell/source-map';\nconst smc = new SourceMapConsumer({\n  version: 3,\n  names: ['foo'],\n  sources: ['input.js'],\n  mappings: 'AAAAA',\n});\n```\n\n#### SourceMapConsumer.prototype.originalPositionFor(generatedPosition)\n\n```typescript\nconst smc = new SourceMapConsumer(map);\nsmc.originalPositionFor({ line: 1, column: 0 });\n```\n\n### SourceMapGenerator\n\n```typescript\nimport { SourceMapGenerator } from '@jridgewell/source-map';\nconst smg = new SourceMapGenerator({\n  file: 'output.js',\n  sourceRoot: 'https://example.com/',\n});\n```\n\n#### SourceMapGenerator.prototype.addMapping(mapping)\n\n```typescript\nconst smg = new SourceMapGenerator();\nsmg.addMapping({\n  generated: { line: 1, column: 0 },\n  source: 'input.js',\n  original: { line: 1, column: 0 },\n  name: 'foo',\n});\n```\n\n#### SourceMapGenerator.prototype.setSourceContent(sourceFile, sourceContent)\n\n```typescript\nconst smg = new SourceMapGenerator();\nsmg.setSourceContent('input.js', 'foobar');\n```\n\n#### SourceMapGenerator.prototype.toJSON()\n\n```typescript\nconst smg = new SourceMapGenerator();\nsmg.toJSON(); // { version: 3, names: [], sources: [], mappings: '' }\n```\n\n#### SourceMapGenerator.prototype.toDecodedMap()\n\n```typescript\nconst smg = new SourceMapGenerator();\nsmg.toDecodedMap(); // { version: 3, names: [], sources: [], mappings: [] }\n```\n\n[trace-mapping]: https://github.com/jridgewell/trace-mapping/\n[gen-mapping]: https://github.com/jridgewell/gen-mapping/\n","_attachments":{},"homepage":"https://github.com/jridgewell/source-map#readme","bugs":{"url":"https://github.com/jridgewell/source-map/issues"},"license":"MIT"}