Skip to content

Commit

Permalink
Use @jridgewell/sourcemap-codec (#4785)
Browse files Browse the repository at this point in the history
  • Loading branch information
bluwy authored Jan 5, 2023
1 parent dce233b commit 6a29327
Show file tree
Hide file tree
Showing 7 changed files with 5 additions and 63 deletions.
29 changes: 0 additions & 29 deletions LICENSE.md
Original file line number Diff line number Diff line change
Expand Up @@ -628,35 +628,6 @@ Repository: https://github.com/tapjs/signal-exit.git
---------------------------------------

## sourcemap-codec
License: MIT
By: Rich Harris
Repository: https://github.com/Rich-Harris/sourcemap-codec

> The MIT License
>
> Copyright (c) 2015 Rich Harris
>
> Permission is hereby granted, free of charge, to any person obtaining a copy
> of this software and associated documentation files (the "Software"), to deal
> in the Software without restriction, including without limitation the rights
> to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
> copies of the Software, and to permit persons to whom the Software is
> furnished to do so, subject to the following conditions:
>
> The above copyright notice and this permission notice shall be included in
> all copies or substantial portions of the Software.
>
> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
> IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
> FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
> AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
> LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
> OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
> THE SOFTWARE.
---------------------------------------

## time-zone
License: MIT
By: Sindre Sorhus
Expand Down
29 changes: 0 additions & 29 deletions browser/LICENSE.md
Original file line number Diff line number Diff line change
Expand Up @@ -226,32 +226,3 @@ Repository: https://github.com/calvinmetcalf/minimalistic-assert.git
> LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
> OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
> PERFORMANCE OF THIS SOFTWARE.
---------------------------------------

## sourcemap-codec
License: MIT
By: Rich Harris
Repository: https://github.com/Rich-Harris/sourcemap-codec

> The MIT License
>
> Copyright (c) 2015 Rich Harris
>
> Permission is hereby granted, free of charge, to any person obtaining a copy
> of this software and associated documentation files (the "Software"), to deal
> in the Software without restriction, including without limitation the rights
> to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
> copies of the Software, and to permit persons to whom the Software is
> furnished to do so, subject to the following conditions:
>
> The above copyright notice and this permission notice shall be included in
> all copies or substantial portions of the Software.
>
> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
> IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
> FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
> AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
> LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
> OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
> THE SOFTWARE.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@
"fsevents": "~2.3.2"
},
"devDependencies": {
"@jridgewell/sourcemap-codec": "^1.4.14",
"@rollup/plugin-alias": "^4.0.2",
"@rollup/plugin-buble": "^1.0.1",
"@rollup/plugin-commonjs": "^24.0.0",
Expand Down Expand Up @@ -116,7 +117,6 @@
"signal-exit": "^3.0.7",
"source-map": "^0.7.4",
"source-map-support": "^0.5.21",
"sourcemap-codec": "^1.4.8",
"systemjs": "^6.13.0",
"terser": "^5.16.1",
"tslib": "^2.4.1",
Expand Down
2 changes: 1 addition & 1 deletion src/utils/decodedSourcemap.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { decode } from 'sourcemap-codec';
import { decode } from '@jridgewell/sourcemap-codec';
import type {
ExistingDecodedSourceMap,
ExistingRawSourceMap,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const path = require('node:path');
const { encode } = require('sourcemap-codec');
const { encode } = require('@jridgewell/sourcemap-codec');
const ID_MAIN = path.join(__dirname, 'main.js');

module.exports = {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const assert = require('node:assert');
const MagicString = require('magic-string');
const { SourceMapConsumer } = require('source-map');
const { encode } = require('sourcemap-codec');
const { encode } = require('@jridgewell/sourcemap-codec');
const getLocation = require('../../getLocation');

module.exports = {
Expand Down

0 comments on commit 6a29327

Please sign in to comment.