[Pkg-javascript-devel] Bug#1098308: bookworm-pu: package node-js-sdsl/4.1.4-2+deb12u1
Jérémy Lal
kapouer at melix.org
Tue Feb 18 22:19:58 GMT 2025
Package: release.debian.org
Severity: normal
Tags: bookworm
X-Debbugs-Cc: node-js-sdsl at packages.debian.org
Control: affects -1 + src:node-js-sdsl
User: release.debian.org at packages.debian.org
Usertags: pu
[ Reason ]
FTBFS: https://bugs.debian.org/1078889
[ Tests ]
Build.
[ Risks ]
None
[ Checklist ]
[x] *all* changes are documented in the d/changelog
[x] I reviewed all changes and I approve them
[x] attach debdiff against the package in (old)stable
[x] the issue is verified as fixed in unstable
[ Changes ]
Some unused code wasn't being compiled by tsc.
The trixie version's fix was to remove that part.
-------------- next part --------------
diff -Nru node-js-sdsl-4.1.4/debian/build_modules/ttypescript/lib/loadTypescript.js node-js-sdsl-4.1.4/debian/build_modules/ttypescript/lib/loadTypescript.js
--- node-js-sdsl-4.1.4/debian/build_modules/ttypescript/lib/loadTypescript.js 2022-11-22 13:00:37.000000000 +0100
+++ node-js-sdsl-4.1.4/debian/build_modules/ttypescript/lib/loadTypescript.js 2025-02-18 23:14:42.000000000 +0100
@@ -1,19 +1,4 @@
"use strict";
-var __extends = (this && this.__extends) || (function () {
- var extendStatics = function (d, b) {
- extendStatics = Object.setPrototypeOf ||
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
- return extendStatics(d, b);
- };
- return function (d, b) {
- if (typeof b !== "function" && b !== null)
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
- extendStatics(d, b);
- function __() { this.constructor = d; }
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
- };
-})();
Object.defineProperty(exports, "__esModule", { value: true });
exports.loadTypeScript = void 0;
var fs_1 = require("fs");
@@ -61,40 +46,3 @@
factory.call(newModule, newModule.exports, require, newModule, filename, (0, path_1.dirname)(filename));
return newModule;
}
-var TypeScriptModule = /** @class */ (function (_super) {
- __extends(TypeScriptModule, _super);
- function TypeScriptModule(filename) {
- var _this = _super.call(this, filename, module) || this;
- _this.filename = filename;
- _this.paths = module.paths.slice();
- _this.loaded = true;
- _this._exports = undefined;
- return _this;
- }
- Object.defineProperty(TypeScriptModule.prototype, "exports", {
- get: function () {
- return this._exports || this._init();
- },
- set: function (value) {
- this._exports = value;
- },
- enumerable: false,
- configurable: true
- });
- TypeScriptModule.prototype._init = function () {
- this._exports = {};
- var factory = typeScriptFactoryCache.get(this.filename);
- if (!factory) {
- var code = (0, fs_1.readFileSync)(this.filename, 'utf8');
- factory = (0, vm_1.runInThisContext)("(function (exports, require, module, __filename, __dirname) {".concat(code, "\n});"), {
- filename: this.filename,
- lineOffset: 0,
- displayErrors: true,
- });
- typeScriptFactoryCache.set(this.filename, factory);
- }
- factory.call(this._exports, this._exports, require, this, this.filename, (0, path_1.dirname)(this.filename));
- return this._exports;
- };
- return TypeScriptModule;
-}(Module));
diff -Nru node-js-sdsl-4.1.4/debian/changelog node-js-sdsl-4.1.4/debian/changelog
--- node-js-sdsl-4.1.4/debian/changelog 2022-11-22 13:00:37.000000000 +0100
+++ node-js-sdsl-4.1.4/debian/changelog 2025-02-18 23:15:44.000000000 +0100
@@ -1,3 +1,9 @@
+node-js-sdsl (4.1.4-2+deb12u1) bookworm; urgency=medium
+
+ * Backport fix for ttypescript. Closes: #1078889.
+
+ -- J?r?my Lal <kapouer at melix.org> Tue, 18 Feb 2025 23:15:44 +0100
+
node-js-sdsl (4.1.4-2) unstable; urgency=medium
[ Debian Janitor ]
More information about the Pkg-javascript-devel
mailing list