changed debian/source/format to native

This commit is contained in:
Lu zhiping 2022-07-16 11:47:25 +08:00
parent 57aca10dd6
commit 9d77d86b04
6 changed files with 1 additions and 74 deletions

View File

@ -1,40 +0,0 @@
Description: use older Nodejs module terser 4.x
This partly reverses upstream git commit 9f7cbad.
Author: Jonas Smedegaard <dr@jones.dk>
Last-Update: 2020-12-13
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/transform.js
+++ b/transform.js
@@ -2,7 +2,12 @@
const transform = (code, optionsString) => {
const options = eval(`(${optionsString})`);
- return minify(code, options).then(result => ({ result, nameCache: options.nameCache }));
+ const result = minify(code, options);
+ if (result.error) {
+ throw result.error;
+ } else {
+ return { result, nameCache: options.nameCache };
+ }
};
exports.transform = transform;
--- a/test/__snapshots__/test.js.snap
+++ b/test/__snapshots__/test.js.snap
@@ -9,6 +9,7 @@
"exports": Array [],
"fileName": "chunk-1.js",
"implicitlyLoadedBefore": Array [],
+ "importedBindings": Object {},
"imports": Array [],
"isDynamicEntry": false,
"isEntry": true,
@@ -25,6 +26,7 @@
"exports": Array [],
"fileName": "chunk-2.js",
"implicitlyLoadedBefore": Array [],
+ "importedBindings": Object {},
"imports": Array [],
"isDynamicEntry": false,
"isEntry": true,

View File

@ -1,14 +0,0 @@
Description: fix for jest-worker ≥ 27
Author: Yadd <yadd@debian.org>
Forwarded: not-needed
Last-Update: 2021-09-26
--- a/rollup-plugin-terser.js
+++ b/rollup-plugin-terser.js
@@ -1,5 +1,5 @@
const { codeFrameColumns } = require("@babel/code-frame");
-const Worker = require("jest-worker").default;
+const Worker = require("jest-worker").Worker;
const serialize = require("serialize-javascript");
function terser(userOptions = {}) {

View File

@ -1,13 +0,0 @@
Description: require nonlocal ascjs module in test
Author: Jonas Smedegaard <dr@jones.dk>
Last-Update: 2021-11-04
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/Xascjs/test.js
+++ b/Xascjs/test.js
@@ -1,4 +1,4 @@
-const ascjs = require('./index.js');
+const ascjs = require('ascjs');
const bold = text => `\x1B[1m${text}\x1B[0m`;

View File

@ -1,3 +0,0 @@
0xxx: Grabbed from upstream development.
1xxx: Possibly relevant for upstream adoption.
2xxx: Only relevant for official Debian release.

View File

@ -1,3 +0,0 @@
2001_use_older_terser.patch
2002_fix-for-jest-27.patch
2003_ascjs_test_nonlocal_module.patch

View File

@ -1 +1 @@
3.0 (quilt)
3.0 (native)