...
 
Commits (7)
# sourcemap-codec changelog # sourcemap-codec changelog
## 1.4.5
* Handle overflow cases ([#78](https://github.com/Rich-Harris/sourcemap-codec/pull/78))
## 1.4.4 ## 1.4.4
* Use Uint32Array, yikes ([#77](https://github.com/Rich-Harris/sourcemap-codec/pull/77)) * Use Uint32Array, yikes ([#77](https://github.com/Rich-Harris/sourcemap-codec/pull/77))
......
node-sourcemap-codec (1.4.5-1) unstable; urgency=medium
* New upstream release.
* Mark the package Multi-Arch: foreign following hinter.
* Drop the use of node-es6-module-transpiler : obsolete!
* Bump std-ver to 4.4.0.
-- Julien Puydt <jpuydt@debian.org> Tue, 09 Jul 2019 19:23:57 +0200
node-sourcemap-codec (1.4.4-1) unstable; urgency=medium node-sourcemap-codec (1.4.4-1) unstable; urgency=medium
* Unbreak Vcs-* fields. * Unbreak Vcs-* fields.
......
...@@ -3,14 +3,15 @@ Section: javascript ...@@ -3,14 +3,15 @@ Section: javascript
Priority: optional Priority: optional
Maintainer: Debian Javascript Maintainers <pkg-javascript-devel@lists.alioth.debian.org> Maintainer: Debian Javascript Maintainers <pkg-javascript-devel@lists.alioth.debian.org>
Uploaders: Julien Puydt <jpuydt@debian.org> Uploaders: Julien Puydt <jpuydt@debian.org>
Build-Depends: debhelper (>= 11), nodejs, node-es6-module-transpiler, node-typescript, node-vlq Build-Depends: debhelper (>= 11), nodejs, node-typescript, node-vlq
Standards-Version: 4.2.1 Standards-Version: 4.4.0
Homepage: https://github.com/Rich-Harris/sourcemap-codec Homepage: https://github.com/Rich-Harris/sourcemap-codec
Vcs-Git: https://salsa.debian.org/js-team/node-sourcemap-codec.git Vcs-Git: https://salsa.debian.org/js-team/node-sourcemap-codec.git
Vcs-Browser: https://salsa.debian.org/js-team/node-sourcemap-codec Vcs-Browser: https://salsa.debian.org/js-team/node-sourcemap-codec
Package: node-sourcemap-codec Package: node-sourcemap-codec
Architecture: all Architecture: all
Multi-Arch: foreign
Depends: ${misc:Depends}, nodejs, node-vlq Depends: ${misc:Depends}, nodejs, node-vlq
Description: Encode/decode sourcemap mappings Description: Encode/decode sourcemap mappings
This package makes generating sourcemap mappings easier, This package makes generating sourcemap mappings easier,
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
override_dh_auto_build: override_dh_auto_build:
tsc src/sourcemap-codec.ts --baseUrl /usr/lib/nodejs/vlq/ tsc src/sourcemap-codec.ts --baseUrl /usr/lib/nodejs/vlq/
compile-modules convert -f commonjs -I/usr/lib/nodejs/vlq src/sourcemap-codec.js > index.js mv src/sourcemap-codec.js index.js
override_dh_auto_clean: override_dh_auto_clean:
rm -f src/sourcemap-codec.js index.js rm -f index.js
{ {
"name": "sourcemap-codec", "name": "sourcemap-codec",
"version": "1.4.4", "version": "1.4.5",
"description": "Encode/decode sourcemap mappings", "description": "Encode/decode sourcemap mappings",
"main": "dist/sourcemap-codec.umd.js", "main": "dist/sourcemap-codec.umd.js",
"module": "dist/sourcemap-codec.es.js", "module": "dist/sourcemap-codec.es.js",
...@@ -34,15 +34,15 @@ ...@@ -34,15 +34,15 @@
"devDependencies": { "devDependencies": {
"codecov.io": "^0.1.6", "codecov.io": "^0.1.6",
"console-group": "^0.3.3", "console-group": "^0.3.3",
"eslint": "^5.6.0", "eslint": "^6.0.1",
"eslint-plugin-import": "^2.14.0", "eslint-plugin-import": "^2.18.0",
"istanbul": "^0.4.5", "istanbul": "^0.4.5",
"mocha": "^5.2.0", "mocha": "^6.1.4",
"remap-istanbul": "^0.12.0", "remap-istanbul": "^0.13.0",
"rollup": "^0.66.0", "rollup": "^1.16.4",
"rollup-plugin-node-resolve": "^3.4.0", "rollup-plugin-node-resolve": "^5.2.0",
"rollup-plugin-typescript": "^1.0.0", "rollup-plugin-typescript": "^1.0.1",
"typescript": "^3.0.3" "typescript": "^3.5.2"
}, },
"files": [ "files": [
"dist/*.js", "dist/*.js",
......
...@@ -157,7 +157,10 @@ describe('sourcemap-codec', () => { ...@@ -157,7 +157,10 @@ describe('sourcemap-codec', () => {
describe('decode()', () => { describe('decode()', () => {
tests.forEach((test, i) => { tests.forEach((test, i) => {
it('decodes sample ' + i, () => { it('decodes sample ' + i, () => {
assert.deepEqual(decode(test.encoded), test.decoded); const expected = test.decoded.map(line => {
return line.map(segment => new Int32Array(segment));
});
assert.deepEqual(decode(test.encoded), expected);
}); });
}); });
}); });
......