Skip to content

Commit

Permalink
Update import_map
Browse files Browse the repository at this point in the history
  • Loading branch information
dsherret committed Mar 8, 2024
1 parent 5ed5c9a commit 32380a1
Show file tree
Hide file tree
Showing 5 changed files with 59 additions and 40 deletions.
4 changes: 2 additions & 2 deletions Cargo.lock

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

89 changes: 54 additions & 35 deletions lib/pkg/dnt_wasm.generated.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// @ts-nocheck: generated
// deno-lint-ignore-file
// deno-fmt-ignore-file
// source-hash: 06863161a3ee5ee9c3cd49086ae94f4108649bbb
// source-hash: 2fc110fd2bf4e6e5a42770af3f07af2537ff636b
let wasm;

import { fetch_specifier } from "./snippets/dnt-wasm-a15ef721fa5290c5/helpers.js";
Expand Down Expand Up @@ -232,7 +232,7 @@ function makeMutClosure(arg0, arg1, dtor, f) {
return real;
}
function __wbg_adapter_38(arg0, arg1, arg2) {
wasm.wasm_bindgen__convert__closures__invoke1_mut__h5ed013030774d99a(
wasm.wasm_bindgen__convert__closures__invoke1_mut__h9fb2784535909a21(
arg0,
arg1,
addHeapObject(arg2),
Expand All @@ -255,8 +255,8 @@ function handleError(f, args) {
wasm.__wbindgen_exn_store(addHeapObject(e));
}
}
function __wbg_adapter_84(arg0, arg1, arg2, arg3) {
wasm.wasm_bindgen__convert__closures__invoke2_mut__h537f8faf29c265b4(
function __wbg_adapter_94(arg0, arg1, arg2, arg3) {
wasm.wasm_bindgen__convert__closures__invoke2_mut__h17536eb976b7c6fe(
arg0,
arg1,
addHeapObject(arg2),
Expand Down Expand Up @@ -316,13 +316,24 @@ const imports = {
const ret = getStringFromWasm0(arg0, arg1);
return addHeapObject(ret);
},
__wbg_fetchspecifier_a6bda29173284144: function (arg0, arg1, arg2) {
__wbg_fetchspecifier_a6bda29173284144: function (
arg0,
arg1,
arg2,
arg3,
arg4,
) {
let deferred0_0;
let deferred0_1;
try {
deferred0_0 = arg0;
deferred0_1 = arg1;
const ret = fetch_specifier(getStringFromWasm0(arg0, arg1), arg2);
let v1;
if (arg3 !== 0) {
v1 = getStringFromWasm0(arg3, arg4).slice();
wasm.__wbindgen_free(arg3, arg4 * 1, 1);
}
const ret = fetch_specifier(getStringFromWasm0(arg0, arg1), arg2, v1);
return addHeapObject(ret);
} finally {
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
Expand Down Expand Up @@ -378,6 +389,32 @@ const imports = {
__wbg_queueMicrotask_f61ee94ee663068b: function (arg0) {
queueMicrotask(getObject(arg0));
},
__wbg_new_abda76e883ba8a5f: function () {
const ret = new Error();
return addHeapObject(ret);
},
__wbg_stack_658279fe44541cf6: function (arg0, arg1) {
const ret = getObject(arg1).stack;
const ptr1 = passStringToWasm0(
ret,
wasm.__wbindgen_malloc,
wasm.__wbindgen_realloc,
);
const len1 = WASM_VECTOR_LEN;
getInt32Memory0()[arg0 / 4 + 1] = len1;
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
},
__wbg_error_f851667af71bcfc6: function (arg0, arg1) {
let deferred0_0;
let deferred0_1;
try {
deferred0_0 = arg0;
deferred0_1 = arg1;
console.error(getStringFromWasm0(arg0, arg1));
} finally {
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
}
},
__wbg_self_05040bd9523805b9: function () {
return handleError(function () {
const ret = self.self;
Expand Down Expand Up @@ -437,6 +474,10 @@ const imports = {
__wbg_set_79c308ecd9a1d091: function (arg0, arg1, arg2) {
getObject(arg0)[arg1 >>> 0] = takeObject(arg2);
},
__wbg_isArray_e783c41d0dd19b44: function (arg0) {
const ret = Array.isArray(getObject(arg0));
return ret;
},
__wbg_instanceof_ArrayBuffer_9221fa854ffb71b5: function (arg0) {
let result;
try {
Expand Down Expand Up @@ -469,6 +510,10 @@ const imports = {
const ret = getObject(arg0).done;
return ret;
},
__wbg_isSafeInteger_a23a66ee7c41b273: function (arg0) {
const ret = Number.isSafeInteger(getObject(arg0));
return ret;
},
__wbg_entries_488960b196cfb6a5: function (arg0) {
const ret = Object.entries(getObject(arg0));
return addHeapObject(ret);
Expand All @@ -490,7 +535,7 @@ const imports = {
const a = state0.a;
state0.a = 0;
try {
return __wbg_adapter_84(a, state0.b, arg0, arg1);
return __wbg_adapter_94(a, state0.b, arg0, arg1);
} finally {
state0.a = a;
}
Expand Down Expand Up @@ -534,32 +579,6 @@ const imports = {
__wbg_set_7d988c98e6ced92d: function (arg0, arg1, arg2) {
getObject(arg0).set(getObject(arg1), arg2 >>> 0);
},
__wbg_new_abda76e883ba8a5f: function () {
const ret = new Error();
return addHeapObject(ret);
},
__wbg_stack_658279fe44541cf6: function (arg0, arg1) {
const ret = getObject(arg1).stack;
const ptr1 = passStringToWasm0(
ret,
wasm.__wbindgen_malloc,
wasm.__wbindgen_realloc,
);
const len1 = WASM_VECTOR_LEN;
getInt32Memory0()[arg0 / 4 + 1] = len1;
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
},
__wbg_error_f851667af71bcfc6: function (arg0, arg1) {
let deferred0_0;
let deferred0_1;
try {
deferred0_0 = arg0;
deferred0_1 = arg1;
console.error(getStringFromWasm0(arg0, arg1));
} finally {
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
}
},
__wbindgen_debug_string: function (arg0, arg1) {
const ret = debugString(getObject(arg1));
const ptr1 = passStringToWasm0(
Expand All @@ -578,8 +597,8 @@ const imports = {
const ret = wasm.memory;
return addHeapObject(ret);
},
__wbindgen_closure_wrapper910: function (arg0, arg1, arg2) {
const ret = makeMutClosure(arg0, arg1, 131, __wbg_adapter_38);
__wbindgen_closure_wrapper918: function (arg0, arg1, arg2) {
const ret = makeMutClosure(arg0, arg1, 135, __wbg_adapter_38);
return addHeapObject(ret);
},
},
Expand Down
Binary file modified lib/pkg/dnt_wasm_bg.wasm
Binary file not shown.
4 changes: 2 additions & 2 deletions lib/pkg/snippets/dnt-wasm-a15ef721fa5290c5/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import { createCache } from "@deno/cache-dir";

const fileFetcher = createCache();

export function fetch_specifier(specifier, cacheSettingVal) {
return fileFetcher.load(new URL(specifier), getCacheSetting(cacheSettingVal));
export function fetch_specifier(specifier, cacheSettingVal, checksum) {
return fileFetcher.load(new URL(specifier), getCacheSetting(cacheSettingVal), checksum);
}

function getCacheSetting(val) {
Expand Down
2 changes: 1 addition & 1 deletion rs-lib/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ base64 = "0.13.1"
deno_ast = { version = "0.34.2", features = ["transforms", "view", "visit", "utils"] }
deno_graph = { version = "0.69.7", features = [] }
futures = "0.3.25"
import_map = { version = "0.19.0", features = ["ext"] }
import_map = { version = "0.19.1", features = ["ext"] }
jsonc-parser = { version = "0.23.0", features = ["serde"] }
once_cell = "1.17.1"
pathdiff = "0.2.1"
Expand Down

0 comments on commit 32380a1

Please sign in to comment.