{"_id":"@jridgewell/gen-mapping","_rev":"278512","name":"@jridgewell/gen-mapping","description":"Generate source maps","dist-tags":{"latest":"0.3.3"},"maintainers":[{"name":"jridgewell","email":""}],"time":{"modified":"2023-09-20T17:53:01.000Z","created":"2022-04-27T01:01:12.843Z","0.3.3":"2023-04-07T02:42:47.543Z","0.3.2":"2022-06-26T15:49:53.823Z","0.3.1":"2022-05-05T21:59:31.553Z","0.3.0":"2022-04-30T04:26:27.301Z","0.2.0":"2022-04-27T18:53:55.146Z","0.1.1":"2022-04-27T14:35:08.800Z","0.1.0":"2022-04-27T01:01:12.843Z"},"users":{},"author":{"name":"Justin Ridgewell","email":"justin@ridgewell.name"},"repository":{"type":"git","url":"git+https://github.com/jridgewell/gen-mapping.git"},"versions":{"0.3.3":{"name":"@jridgewell/gen-mapping","version":"0.3.3","description":"Generate source maps","keywords":["source","map"],"author":{"name":"Justin Ridgewell","email":"justin@ridgewell.name"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/jridgewell/gen-mapping.git"},"main":"dist/gen-mapping.umd.js","module":"dist/gen-mapping.mjs","types":"dist/types/gen-mapping.d.ts","exports":{".":[{"types":"./dist/types/gen-mapping.d.ts","browser":"./dist/gen-mapping.umd.js","require":"./dist/gen-mapping.umd.js","import":"./dist/gen-mapping.mjs"},"./dist/gen-mapping.umd.js"],"./package.json":"./package.json"},"engines":{"node":">=6.0.0"},"scripts":{"benchmark":"run-s build:rollup benchmark:*","benchmark:install":"cd benchmark && npm install","benchmark:only":"node benchmark/index.mjs","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:coverage","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":"run-p 'build:rollup -- --watch' 'test:only -- --watch'","prepublishOnly":"npm run preversion","preversion":"run-s test build"},"devDependencies":{"@rollup/plugin-typescript":"8.3.2","@types/mocha":"9.1.1","@types/node":"17.0.29","@typescript-eslint/eslint-plugin":"5.21.0","@typescript-eslint/parser":"5.21.0","benchmark":"2.1.4","c8":"7.11.2","eslint":"8.14.0","eslint-config-prettier":"8.5.0","mocha":"9.2.2","npm-run-all":"4.1.5","prettier":"2.6.2","rollup":"2.70.2","typescript":"4.6.3"},"dependencies":{"@jridgewell/set-array":"^1.0.1","@jridgewell/sourcemap-codec":"^1.4.10","@jridgewell/trace-mapping":"^0.3.9"},"gitHead":"7626d310002df682012dc29bdfa4d674027f1538","bugs":{"url":"https://github.com/jridgewell/gen-mapping/issues"},"homepage":"https://github.com/jridgewell/gen-mapping#readme","_id":"@jridgewell/gen-mapping@0.3.3","_nodeVersion":"18.15.0","_npmVersion":"9.5.0","dist":{"shasum":"7e02e6eb5df901aaedb08514203b096614024098","size":12781,"noattachment":false,"key":"/@jridgewell/gen-mapping/-/@jridgewell/gen-mapping-0.3.3.tgz","tarball":"http://name.csiicloud.com:7001/@jridgewell/gen-mapping/download/@jridgewell/gen-mapping-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/gen-mapping_0.3.3_1680835367395_0.5518499539233093"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-04-07T02:42:47.543Z","publish_time":1680835367543,"_cnpm_publish_time":1680835367543},"0.3.2":{"name":"@jridgewell/gen-mapping","version":"0.3.2","description":"Generate source maps","keywords":["source","map"],"author":{"name":"Justin Ridgewell","email":"justin@ridgewell.name"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/jridgewell/gen-mapping.git"},"main":"dist/gen-mapping.umd.js","module":"dist/gen-mapping.mjs","typings":"dist/types/gen-mapping.d.ts","exports":{".":[{"types":"./dist/types/gen-mapping.d.ts","browser":"./dist/gen-mapping.umd.js","require":"./dist/gen-mapping.umd.js","import":"./dist/gen-mapping.mjs"},"./dist/gen-mapping.umd.js"],"./package.json":"./package.json"},"engines":{"node":">=6.0.0"},"scripts":{"benchmark":"run-s build:rollup benchmark:*","benchmark:install":"cd benchmark && npm install","benchmark:only":"node benchmark/index.mjs","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:coverage","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":"run-p 'build:rollup -- --watch' 'test:only -- --watch'","prepublishOnly":"npm run preversion","preversion":"run-s test build"},"devDependencies":{"@rollup/plugin-typescript":"8.3.2","@types/mocha":"9.1.1","@types/node":"17.0.29","@typescript-eslint/eslint-plugin":"5.21.0","@typescript-eslint/parser":"5.21.0","benchmark":"2.1.4","c8":"7.11.2","eslint":"8.14.0","eslint-config-prettier":"8.5.0","mocha":"9.2.2","npm-run-all":"4.1.5","prettier":"2.6.2","rollup":"2.70.2","typescript":"4.6.3"},"dependencies":{"@jridgewell/set-array":"^1.0.1","@jridgewell/sourcemap-codec":"^1.4.10","@jridgewell/trace-mapping":"^0.3.9"},"gitHead":"a44a71dd0aa2c4eac4a8577f3e150dbc3aafdb80","bugs":{"url":"https://github.com/jridgewell/gen-mapping/issues"},"homepage":"https://github.com/jridgewell/gen-mapping#readme","_id":"@jridgewell/gen-mapping@0.3.2","_nodeVersion":"17.6.0","_npmVersion":"8.5.1","dist":{"shasum":"c1aedc61e853f2bb9f5dfe6d4442d3b565b253b9","size":14300,"noattachment":false,"key":"/@jridgewell/gen-mapping/-/@jridgewell/gen-mapping-0.3.2.tgz","tarball":"http://name.csiicloud.com:7001/@jridgewell/gen-mapping/download/@jridgewell/gen-mapping-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/gen-mapping_0.3.2_1656258593635_0.1210398085343849"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-06-26T15:50:09.026Z","publish_time":1656258593823,"_cnpm_publish_time":1656258593823},"0.3.1":{"name":"@jridgewell/gen-mapping","version":"0.3.1","description":"Generate source maps","keywords":["source","map"],"author":{"name":"Justin Ridgewell","email":"justin@ridgewell.name"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/jridgewell/gen-mapping.git"},"main":"dist/gen-mapping.umd.js","module":"dist/gen-mapping.mjs","typings":"dist/types/gen-mapping.d.ts","exports":{".":{"types":"./dist/types/gen-mapping.d.ts","browser":"./dist/gen-mapping.umd.js","require":"./dist/gen-mapping.umd.js","import":"./dist/gen-mapping.mjs"},"./package.json":"./package.json"},"engines":{"node":">=6.0.0"},"scripts":{"benchmark":"run-s build:rollup benchmark:*","benchmark:install":"cd benchmark && npm install","benchmark:only":"node benchmark/index.mjs","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:coverage","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":"run-p 'build:rollup -- --watch' 'test:only -- --watch'","prepublishOnly":"npm run preversion","preversion":"run-s test build"},"devDependencies":{"@rollup/plugin-typescript":"8.3.2","@types/mocha":"9.1.1","@types/node":"17.0.29","@typescript-eslint/eslint-plugin":"5.21.0","@typescript-eslint/parser":"5.21.0","benchmark":"2.1.4","c8":"7.11.2","eslint":"8.14.0","eslint-config-prettier":"8.5.0","mocha":"9.2.2","npm-run-all":"4.1.5","prettier":"2.6.2","rollup":"2.70.2","typescript":"4.6.3"},"dependencies":{"@jridgewell/set-array":"^1.0.0","@jridgewell/sourcemap-codec":"^1.4.10","@jridgewell/trace-mapping":"^0.3.9"},"gitHead":"b6aa06065065960be0465bcc6d2a586a7251c519","bugs":{"url":"https://github.com/jridgewell/gen-mapping/issues"},"homepage":"https://github.com/jridgewell/gen-mapping#readme","_id":"@jridgewell/gen-mapping@0.3.1","_nodeVersion":"17.6.0","_npmVersion":"8.5.1","dist":{"shasum":"cf92a983c83466b8c0ce9124fadeaf09f7c66ea9","size":12780,"noattachment":false,"key":"/@jridgewell/gen-mapping/-/@jridgewell/gen-mapping-0.3.1.tgz","tarball":"http://name.csiicloud.com:7001/@jridgewell/gen-mapping/download/@jridgewell/gen-mapping-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/gen-mapping_0.3.1_1651787971397_0.35654190154543586"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-05-05T22:05:23.617Z","publish_time":1651787971553,"_cnpm_publish_time":1651787971553},"0.3.0":{"name":"@jridgewell/gen-mapping","version":"0.3.0","description":"Generate source maps","keywords":["source","map"],"author":{"name":"Justin Ridgewell","email":"justin@ridgewell.name"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/jridgewell/gen-mapping.git"},"main":"dist/gen-mapping.umd.js","module":"dist/gen-mapping.mjs","typings":"dist/types/gen-mapping.d.ts","exports":{".":{"browser":"./dist/gen-mapping.umd.js","require":"./dist/gen-mapping.umd.js","import":"./dist/gen-mapping.mjs"},"./package.json":"./package.json"},"engines":{"node":">=6.0.0"},"scripts":{"benchmark":"run-s build:rollup benchmark:*","benchmark:install":"cd benchmark && npm install","benchmark:only":"node benchmark/index.mjs","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:coverage","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":"run-p 'build:rollup -- --watch' 'test:only -- --watch'","prepublishOnly":"npm run preversion","preversion":"run-s test build"},"devDependencies":{"@rollup/plugin-typescript":"8.3.2","@types/mocha":"9.1.1","@types/node":"17.0.29","@typescript-eslint/eslint-plugin":"5.21.0","@typescript-eslint/parser":"5.21.0","benchmark":"2.1.4","c8":"7.11.2","eslint":"8.14.0","eslint-config-prettier":"8.5.0","mocha":"9.2.2","npm-run-all":"4.1.5","prettier":"2.6.2","rollup":"2.70.2","typescript":"4.6.3"},"dependencies":{"@jridgewell/set-array":"^1.0.0","@jridgewell/sourcemap-codec":"^1.4.10","@jridgewell/trace-mapping":"^0.3.9"},"gitHead":"55e0a5877c310746ec94172ff6cb26dd408c1bcf","bugs":{"url":"https://github.com/jridgewell/gen-mapping/issues"},"homepage":"https://github.com/jridgewell/gen-mapping#readme","_id":"@jridgewell/gen-mapping@0.3.0","_nodeVersion":"18.0.0","_npmVersion":"8.6.0","dist":{"shasum":"62d7a390ad9f98be6af7daddb327174a3f295acc","size":12387,"noattachment":false,"key":"/@jridgewell/gen-mapping/-/@jridgewell/gen-mapping-0.3.0.tgz","tarball":"http://name.csiicloud.com:7001/@jridgewell/gen-mapping/download/@jridgewell/gen-mapping-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/gen-mapping_0.3.0_1651292787138_0.8645226309239749"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-04-30T04:26:37.368Z","publish_time":1651292787301,"_cnpm_publish_time":1651292787301},"0.2.0":{"name":"@jridgewell/gen-mapping","version":"0.2.0","description":"Generate source maps","keywords":["source","map"],"author":{"name":"Justin Ridgewell","email":"justin@ridgewell.name"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/jridgewell/gen-mapping.git"},"main":"dist/gen-mapping.umd.js","module":"dist/gen-mapping.mjs","typings":"dist/types/gen-mapping.d.ts","exports":{".":{"browser":"./dist/gen-mapping.umd.js","require":"./dist/gen-mapping.umd.js","import":"./dist/gen-mapping.mjs"},"./package.json":"./package.json"},"engines":{"node":">=6.0.0"},"scripts":{"benchmark":"run-s build:rollup benchmark:*","benchmark:install":"cd benchmark && npm install","benchmark:only":"node benchmark/index.mjs","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:coverage","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":"run-p 'build:rollup -- --watch' 'test:only -- --watch'","prepublishOnly":"npm run preversion","preversion":"run-s test build"},"devDependencies":{"@rollup/plugin-typescript":"8.3.2","@types/mocha":"9.1.1","@types/node":"17.0.29","@typescript-eslint/eslint-plugin":"5.21.0","@typescript-eslint/parser":"5.21.0","benchmark":"2.1.4","c8":"7.11.2","eslint":"8.14.0","eslint-config-prettier":"8.5.0","mocha":"9.2.2","npm-run-all":"4.1.5","prettier":"2.6.2","rollup":"2.70.2","typescript":"4.6.3"},"dependencies":{"@jridgewell/set-array":"^1.0.0","@jridgewell/sourcemap-codec":"^1.4.10","@jridgewell/trace-mapping":"^0.3.9"},"gitHead":"89f096a56f878be21ddd83d5a2fdae17c6e7c09d","bugs":{"url":"https://github.com/jridgewell/gen-mapping/issues"},"homepage":"https://github.com/jridgewell/gen-mapping#readme","_id":"@jridgewell/gen-mapping@0.2.0","_nodeVersion":"18.0.0","_npmVersion":"8.6.0","dist":{"shasum":"8b4d9da3c3a75e06187d1e926f8f8b7a4fab12d0","size":9967,"noattachment":false,"key":"/@jridgewell/gen-mapping/-/@jridgewell/gen-mapping-0.2.0.tgz","tarball":"http://name.csiicloud.com:7001/@jridgewell/gen-mapping/download/@jridgewell/gen-mapping-0.2.0.tgz"},"_npmUser":{"name":"jridgewell","email":"justin+npm@ridgewell.name"},"directories":{},"maintainers":[{"name":"jridgewell","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/gen-mapping_0.2.0_1651085634968_0.5773922306947608"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-04-27T21:04:44.896Z","publish_time":1651085635146,"_cnpm_publish_time":1651085635146},"0.1.1":{"name":"@jridgewell/gen-mapping","version":"0.1.1","description":"Generate source maps","keywords":["source","map"],"author":{"name":"Justin Ridgewell","email":"justin@ridgewell.name"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/jridgewell/gen-mapping.git"},"main":"dist/gen-mapping.umd.js","module":"dist/gen-mapping.mjs","typings":"dist/types/gen-mapping.d.ts","exports":{".":{"browser":"./dist/gen-mapping.umd.js","require":"./dist/gen-mapping.umd.js","import":"./dist/gen-mapping.mjs"},"./package.json":"./package.json"},"engines":{"node":">=6.0.0"},"scripts":{"benchmark":"run-s build:rollup benchmark:*","benchmark:install":"cd benchmark && npm install","benchmark:only":"node benchmark/index.mjs","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:coverage","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":"run-p 'build:rollup -- --watch' 'test:only -- --watch'","prepublishOnly":"npm run preversion","preversion":"run-s test build"},"devDependencies":{"@rollup/plugin-typescript":"8.3.2","@types/mocha":"9.1.1","@types/node":"17.0.29","@typescript-eslint/eslint-plugin":"5.21.0","@typescript-eslint/parser":"5.21.0","benchmark":"2.1.4","c8":"7.11.2","eslint":"8.14.0","eslint-config-prettier":"8.5.0","mocha":"9.2.2","npm-run-all":"4.1.5","prettier":"2.6.2","rollup":"2.70.2","typescript":"4.6.3"},"dependencies":{"@jridgewell/set-array":"^1.0.0","@jridgewell/sourcemap-codec":"^1.4.10"},"gitHead":"2464c6cbd4b98bbbd6d97bbf1889edd1a647adcc","bugs":{"url":"https://github.com/jridgewell/gen-mapping/issues"},"homepage":"https://github.com/jridgewell/gen-mapping#readme","_id":"@jridgewell/gen-mapping@0.1.1","_nodeVersion":"17.6.0","_npmVersion":"8.5.1","dist":{"shasum":"e5d2e450306a9491e3bd77e323e38d7aff315996","size":9320,"noattachment":false,"key":"/@jridgewell/gen-mapping/-/@jridgewell/gen-mapping-0.1.1.tgz","tarball":"http://name.csiicloud.com:7001/@jridgewell/gen-mapping/download/@jridgewell/gen-mapping-0.1.1.tgz"},"_npmUser":{"name":"jridgewell","email":"justin+npm@ridgewell.name"},"directories":{},"maintainers":[{"name":"jridgewell","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/gen-mapping_0.1.1_1651070108663_0.687055510323439"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-04-27T15:50:24.381Z","publish_time":1651070108800,"_cnpm_publish_time":1651070108800},"0.1.0":{"name":"@jridgewell/gen-mapping","version":"0.1.0","description":"Generate source maps","keywords":["source","map"],"author":{"name":"Justin Ridgewell","email":"justin@ridgewell.name"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/jridgewell/gen-mapping.git"},"main":"dist/gen-mapping.umd.js","module":"dist/gen-mapping.mjs","typings":"dist/types/gen-mapping.d.ts","exports":{".":{"browser":"./dist/gen-mapping.umd.js","require":"./dist/gen-mapping.umd.js","import":"./dist/gen-mapping.mjs"},"./package.json":"./package.json"},"engines":{"node":">=6.0.0"},"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:coverage","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":"run-p 'build:rollup -- --watch' 'test:only -- --watch'","prepublishOnly":"npm run preversion","preversion":"run-s test build"},"devDependencies":{"@rollup/plugin-typescript":"8.3.0","@types/mocha":"9.1.1","@types/node":"17.0.28","@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/set-array":"1.0.0","@jridgewell/sourcemap-codec":"^1.4.10"},"gitHead":"22ef3ca68112cbf8780ae9f5b73a65061d6da26c","bugs":{"url":"https://github.com/jridgewell/gen-mapping/issues"},"homepage":"https://github.com/jridgewell/gen-mapping#readme","_id":"@jridgewell/gen-mapping@0.1.0","_nodeVersion":"17.6.0","_npmVersion":"8.5.1","dist":{"shasum":"b30fd66b5426bb7f44bb6043ab127b20ee404063","size":8041,"noattachment":false,"key":"/@jridgewell/gen-mapping/-/@jridgewell/gen-mapping-0.1.0.tgz","tarball":"http://name.csiicloud.com:7001/@jridgewell/gen-mapping/download/@jridgewell/gen-mapping-0.1.0.tgz"},"_npmUser":{"name":"jridgewell","email":"justin+npm@ridgewell.name"},"directories":{},"maintainers":[{"name":"jridgewell","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/gen-mapping_0.1.0_1651021272687_0.49895110307354074"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-04-27T01:01:18.776Z","publish_time":1651021272843,"_cnpm_publish_time":1651021272843}},"readme":"# @jridgewell/gen-mapping\n\n> Generate source maps\n\n`gen-mapping` allows you to generate a source map during transpilation or minification.\nWith a source map, you're able to trace the original location in the source file, either in Chrome's\nDevTools or using a library like [`@jridgewell/trace-mapping`][trace-mapping].\n\nYou may already be familiar with the [`source-map`][source-map] package's `SourceMapGenerator`. This\nprovides the same `addMapping` and `setSourceContent` API.\n\n## Installation\n\n```sh\nnpm install @jridgewell/gen-mapping\n```\n\n## Usage\n\n```typescript\nimport { GenMapping, addMapping, setSourceContent, toEncodedMap, toDecodedMap } from '@jridgewell/gen-mapping';\n\nconst map = new GenMapping({\n  file: 'output.js',\n  sourceRoot: 'https://example.com/',\n});\n\nsetSourceContent(map, 'input.js', `function foo() {}`);\n\naddMapping(map, {\n  // Lines start at line 1, columns at column 0.\n  generated: { line: 1, column: 0 },\n  source: 'input.js',\n  original: { line: 1, column: 0 },\n});\n\naddMapping(map, {\n  generated: { line: 1, column: 9 },\n  source: 'input.js',\n  original: { line: 1, column: 9 },\n  name: 'foo',\n});\n\nassert.deepEqual(toDecodedMap(map), {\n  version: 3,\n  file: 'output.js',\n  names: ['foo'],\n  sourceRoot: 'https://example.com/',\n  sources: ['input.js'],\n  sourcesContent: ['function foo() {}'],\n  mappings: [\n    [ [0, 0, 0, 0], [9, 0, 0, 9, 0] ]\n  ],\n});\n\nassert.deepEqual(toEncodedMap(map), {\n  version: 3,\n  file: 'output.js',\n  names: ['foo'],\n  sourceRoot: 'https://example.com/',\n  sources: ['input.js'],\n  sourcesContent: ['function foo() {}'],\n  mappings: 'AAAA,SAASA',\n});\n```\n\n### Smaller Sourcemaps\n\nNot everything needs to be added to a sourcemap, and needless markings can cause signficantly\nlarger file sizes. `gen-mapping` exposes `maybeAddSegment`/`maybeAddMapping` APIs that will\nintelligently determine if this marking adds useful information. If not, the marking will be\nskipped.\n\n```typescript\nimport { maybeAddMapping } from '@jridgewell/gen-mapping';\n\nconst map = new GenMapping();\n\n// Adding a sourceless marking at the beginning of a line isn't useful.\nmaybeAddMapping(map, {\n  generated: { line: 1, column: 0 },\n});\n\n// Adding a new source marking is useful.\nmaybeAddMapping(map, {\n  generated: { line: 1, column: 0 },\n  source: 'input.js',\n  original: { line: 1, column: 0 },\n});\n\n// But adding another marking pointing to the exact same original location isn't, even if the\n// generated column changed.\nmaybeAddMapping(map, {\n  generated: { line: 1, column: 9 },\n  source: 'input.js',\n  original: { line: 1, column: 0 },\n});\n\nassert.deepEqual(toEncodedMap(map), {\n  version: 3,\n  names: [],\n  sources: ['input.js'],\n  sourcesContent: [null],\n  mappings: 'AAAA',\n});\n```\n\n## Benchmarks\n\n```\nnode v18.0.0\n\namp.js.map\nMemory Usage:\ngen-mapping: addSegment      5852872 bytes\ngen-mapping: addMapping      7716042 bytes\nsource-map-js                6143250 bytes\nsource-map-0.6.1             6124102 bytes\nsource-map-0.8.0             6121173 bytes\nSmallest memory usage is gen-mapping: addSegment\n\nAdding speed:\ngen-mapping:      addSegment x 441 ops/sec ±2.07% (90 runs sampled)\ngen-mapping:      addMapping x 350 ops/sec ±2.40% (86 runs sampled)\nsource-map-js:    addMapping x 169 ops/sec ±2.42% (80 runs sampled)\nsource-map-0.6.1: addMapping x 167 ops/sec ±2.56% (80 runs sampled)\nsource-map-0.8.0: addMapping x 168 ops/sec ±2.52% (80 runs sampled)\nFastest is gen-mapping:      addSegment\n\nGenerate speed:\ngen-mapping:      decoded output x 150,824,370 ops/sec ±0.07% (102 runs sampled)\ngen-mapping:      encoded output x 663 ops/sec ±0.22% (98 runs sampled)\nsource-map-js:    encoded output x 197 ops/sec ±0.45% (84 runs sampled)\nsource-map-0.6.1: encoded output x 198 ops/sec ±0.33% (85 runs sampled)\nsource-map-0.8.0: encoded output x 197 ops/sec ±0.06% (93 runs sampled)\nFastest is gen-mapping:      decoded output\n\n\n***\n\n\nbabel.min.js.map\nMemory Usage:\ngen-mapping: addSegment     37578063 bytes\ngen-mapping: addMapping     37212897 bytes\nsource-map-js               47638527 bytes\nsource-map-0.6.1            47690503 bytes\nsource-map-0.8.0            47470188 bytes\nSmallest memory usage is gen-mapping: addMapping\n\nAdding speed:\ngen-mapping:      addSegment x 31.05 ops/sec ±8.31% (43 runs sampled)\ngen-mapping:      addMapping x 29.83 ops/sec ±7.36% (51 runs sampled)\nsource-map-js:    addMapping x 20.73 ops/sec ±6.22% (38 runs sampled)\nsource-map-0.6.1: addMapping x 20.03 ops/sec ±10.51% (38 runs sampled)\nsource-map-0.8.0: addMapping x 19.30 ops/sec ±8.27% (37 runs sampled)\nFastest is gen-mapping:      addSegment\n\nGenerate speed:\ngen-mapping:      decoded output x 381,379,234 ops/sec ±0.29% (96 runs sampled)\ngen-mapping:      encoded output x 95.15 ops/sec ±2.98% (72 runs sampled)\nsource-map-js:    encoded output x 15.20 ops/sec ±7.41% (33 runs sampled)\nsource-map-0.6.1: encoded output x 16.36 ops/sec ±10.46% (31 runs sampled)\nsource-map-0.8.0: encoded output x 16.06 ops/sec ±6.45% (31 runs sampled)\nFastest is gen-mapping:      decoded output\n\n\n***\n\n\npreact.js.map\nMemory Usage:\ngen-mapping: addSegment       416247 bytes\ngen-mapping: addMapping       419824 bytes\nsource-map-js                1024619 bytes\nsource-map-0.6.1             1146004 bytes\nsource-map-0.8.0             1113250 bytes\nSmallest memory usage is gen-mapping: addSegment\n\nAdding speed:\ngen-mapping:      addSegment x 13,755 ops/sec ±0.15% (98 runs sampled)\ngen-mapping:      addMapping x 13,013 ops/sec ±0.11% (101 runs sampled)\nsource-map-js:    addMapping x 4,564 ops/sec ±0.21% (98 runs sampled)\nsource-map-0.6.1: addMapping x 4,562 ops/sec ±0.11% (99 runs sampled)\nsource-map-0.8.0: addMapping x 4,593 ops/sec ±0.11% (100 runs sampled)\nFastest is gen-mapping:      addSegment\n\nGenerate speed:\ngen-mapping:      decoded output x 379,864,020 ops/sec ±0.23% (93 runs sampled)\ngen-mapping:      encoded output x 14,368 ops/sec ±4.07% (82 runs sampled)\nsource-map-js:    encoded output x 5,261 ops/sec ±0.21% (99 runs sampled)\nsource-map-0.6.1: encoded output x 5,124 ops/sec ±0.58% (99 runs sampled)\nsource-map-0.8.0: encoded output x 5,434 ops/sec ±0.33% (96 runs sampled)\nFastest is gen-mapping:      decoded output\n\n\n***\n\n\nreact.js.map\nMemory Usage:\ngen-mapping: addSegment       975096 bytes\ngen-mapping: addMapping      1102981 bytes\nsource-map-js                2918836 bytes\nsource-map-0.6.1             2885435 bytes\nsource-map-0.8.0             2874336 bytes\nSmallest memory usage is gen-mapping: addSegment\n\nAdding speed:\ngen-mapping:      addSegment x 4,772 ops/sec ±0.15% (100 runs sampled)\ngen-mapping:      addMapping x 4,456 ops/sec ±0.13% (97 runs sampled)\nsource-map-js:    addMapping x 1,618 ops/sec ±0.24% (97 runs sampled)\nsource-map-0.6.1: addMapping x 1,622 ops/sec ±0.12% (99 runs sampled)\nsource-map-0.8.0: addMapping x 1,631 ops/sec ±0.12% (100 runs sampled)\nFastest is gen-mapping:      addSegment\n\nGenerate speed:\ngen-mapping:      decoded output x 379,107,695 ops/sec ±0.07% (99 runs sampled)\ngen-mapping:      encoded output x 5,421 ops/sec ±1.60% (89 runs sampled)\nsource-map-js:    encoded output x 2,113 ops/sec ±1.81% (98 runs sampled)\nsource-map-0.6.1: encoded output x 2,126 ops/sec ±0.10% (100 runs sampled)\nsource-map-0.8.0: encoded output x 2,176 ops/sec ±0.39% (98 runs sampled)\nFastest is gen-mapping:      decoded output\n```\n\n[source-map]: https://www.npmjs.com/package/source-map\n[trace-mapping]: https://github.com/jridgewell/trace-mapping\n","_attachments":{},"homepage":"https://github.com/jridgewell/gen-mapping#readme","bugs":{"url":"https://github.com/jridgewell/gen-mapping/issues"},"license":"MIT"}