swipl-wasm 3.8.2 → 4.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/generateImage.js +1 -2
- package/dist/swipl/swipl-bundle-no-data.js +1 -1
- package/dist/swipl/swipl-bundle.js +1 -1
- package/dist/swipl/swipl-web.data +0 -0
- package/dist/swipl/swipl-web.js +1 -1
- package/dist/swipl/swipl-web.wasm +0 -0
- package/dist/swipl/swipl.js +1 -1
- package/package.json +11 -12
package/dist/generateImage.js
CHANGED
|
@@ -21,7 +21,6 @@ exports.generateImageFile = generateImageFile;
|
|
|
21
21
|
exports.generateLoadedImageFile = generateLoadedImageFile;
|
|
22
22
|
const swipl_bundle_1 = __importDefault(require("./swipl/swipl-bundle"));
|
|
23
23
|
const fs_1 = __importDefault(require("fs"));
|
|
24
|
-
const universal_fetch_1 = require("@inrupt/universal-fetch");
|
|
25
24
|
function Uint8ToString(u8a) {
|
|
26
25
|
const CHUNK_SZ = 0x8000;
|
|
27
26
|
const c = [];
|
|
@@ -62,7 +61,7 @@ function generateLoadedImageFileString(prolog) {
|
|
|
62
61
|
}
|
|
63
62
|
function dereference(prologPath) {
|
|
64
63
|
return (prologPath.startsWith('http://') || prologPath.startsWith('https://'))
|
|
65
|
-
?
|
|
64
|
+
? fetch(prologPath).then((res) => res.text())
|
|
66
65
|
: fs_1.default.readFileSync(prologPath);
|
|
67
66
|
}
|
|
68
67
|
function generateImageFile(prologPath, jsPath) {
|