Skip to content

Commit 6a29327

Browse files
authored
Use @jridgewell/sourcemap-codec (#4785)
1 parent dce233b commit 6a29327

7 files changed

Lines changed: 5 additions & 63 deletions

File tree

LICENSE.md

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -628,35 +628,6 @@ Repository: https://github.com/tapjs/signal-exit.git
628628
629629
---------------------------------------
630630

631-
## sourcemap-codec
632-
License: MIT
633-
By: Rich Harris
634-
Repository: https://github.com/Rich-Harris/sourcemap-codec
635-
636-
> The MIT License
637-
>
638-
> Copyright (c) 2015 Rich Harris
639-
>
640-
> Permission is hereby granted, free of charge, to any person obtaining a copy
641-
> of this software and associated documentation files (the "Software"), to deal
642-
> in the Software without restriction, including without limitation the rights
643-
> to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
644-
> copies of the Software, and to permit persons to whom the Software is
645-
> furnished to do so, subject to the following conditions:
646-
>
647-
> The above copyright notice and this permission notice shall be included in
648-
> all copies or substantial portions of the Software.
649-
>
650-
> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
651-
> IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
652-
> FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
653-
> AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
654-
> LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
655-
> OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
656-
> THE SOFTWARE.
657-
658-
---------------------------------------
659-
660631
## time-zone
661632
License: MIT
662633
By: Sindre Sorhus

browser/LICENSE.md

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -226,32 +226,3 @@ Repository: https://github.com/calvinmetcalf/minimalistic-assert.git
226226
> LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
227227
> OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
228228
> PERFORMANCE OF THIS SOFTWARE.
229-
230-
---------------------------------------
231-
232-
## sourcemap-codec
233-
License: MIT
234-
By: Rich Harris
235-
Repository: https://github.com/Rich-Harris/sourcemap-codec
236-
237-
> The MIT License
238-
>
239-
> Copyright (c) 2015 Rich Harris
240-
>
241-
> Permission is hereby granted, free of charge, to any person obtaining a copy
242-
> of this software and associated documentation files (the "Software"), to deal
243-
> in the Software without restriction, including without limitation the rights
244-
> to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
245-
> copies of the Software, and to permit persons to whom the Software is
246-
> furnished to do so, subject to the following conditions:
247-
>
248-
> The above copyright notice and this permission notice shall be included in
249-
> all copies or substantial portions of the Software.
250-
>
251-
> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
252-
> IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
253-
> FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
254-
> AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
255-
> LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
256-
> OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
257-
> THE SOFTWARE.

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@
5858
"fsevents": "~2.3.2"
5959
},
6060
"devDependencies": {
61+
"@jridgewell/sourcemap-codec": "^1.4.14",
6162
"@rollup/plugin-alias": "^4.0.2",
6263
"@rollup/plugin-buble": "^1.0.1",
6364
"@rollup/plugin-commonjs": "^24.0.0",
@@ -116,7 +117,6 @@
116117
"signal-exit": "^3.0.7",
117118
"source-map": "^0.7.4",
118119
"source-map-support": "^0.5.21",
119-
"sourcemap-codec": "^1.4.8",
120120
"systemjs": "^6.13.0",
121121
"terser": "^5.16.1",
122122
"tslib": "^2.4.1",

src/utils/decodedSourcemap.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { decode } from 'sourcemap-codec';
1+
import { decode } from '@jridgewell/sourcemap-codec';
22
import type {
33
ExistingDecodedSourceMap,
44
ExistingRawSourceMap,

test/function/samples/warning-low-resolution-location/_config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
const path = require('node:path');
2-
const { encode } = require('sourcemap-codec');
2+
const { encode } = require('@jridgewell/sourcemap-codec');
33
const ID_MAIN = path.join(__dirname, 'main.js');
44

55
module.exports = {

test/sourcemaps/samples/transform-low-resolution/_config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
const assert = require('node:assert');
22
const MagicString = require('magic-string');
33
const { SourceMapConsumer } = require('source-map');
4-
const { encode } = require('sourcemap-codec');
4+
const { encode } = require('@jridgewell/sourcemap-codec');
55
const getLocation = require('../../getLocation');
66

77
module.exports = {

0 commit comments

Comments
 (0)