@prospective.co/procss 0.1.10 → 0.1.11
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/package.json
CHANGED
|
@@ -28,7 +28,7 @@ fn parse_url(input: &str) -> nom::IResult<&str, &str> {
|
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
fn into_data_uri<'a>(path: &Path) -> Cow<'a, str> {
|
|
31
|
-
let contents = fs::
|
|
31
|
+
let contents = fs::read(path).expect("Error reading file");
|
|
32
32
|
let encoded = base64::encode(contents);
|
|
33
33
|
let fff = path.extension().unwrap_or_default().to_string_lossy();
|
|
34
34
|
let fmt = match fff.as_ref() {
|
package/src/utils.rs
CHANGED
package/target/cjs/procss.js
CHANGED
|
@@ -210,6 +210,11 @@ module.exports.__wbg_new_0b9bfdd97583284e = function() {
|
|
|
210
210
|
return addHeapObject(ret);
|
|
211
211
|
};
|
|
212
212
|
|
|
213
|
+
module.exports.__wbindgen_error_new = function(arg0, arg1) {
|
|
214
|
+
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
215
|
+
return addHeapObject(ret);
|
|
216
|
+
};
|
|
217
|
+
|
|
213
218
|
module.exports.__wbg_String_91fba7ded13ba54c = function(arg0, arg1) {
|
|
214
219
|
const ret = String(getObject(arg1));
|
|
215
220
|
const ptr0 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
@@ -218,11 +223,6 @@ module.exports.__wbg_String_91fba7ded13ba54c = function(arg0, arg1) {
|
|
|
218
223
|
getInt32Memory0()[arg0 / 4 + 0] = ptr0;
|
|
219
224
|
};
|
|
220
225
|
|
|
221
|
-
module.exports.__wbindgen_error_new = function(arg0, arg1) {
|
|
222
|
-
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
223
|
-
return addHeapObject(ret);
|
|
224
|
-
};
|
|
225
|
-
|
|
226
226
|
module.exports.__wbg_set_20cbc34131e76824 = function(arg0, arg1, arg2) {
|
|
227
227
|
getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
|
|
228
228
|
};
|
|
Binary file
|
package/target/esm/procss.js
CHANGED
|
@@ -234,6 +234,10 @@ function getImports() {
|
|
|
234
234
|
const ret = new Object();
|
|
235
235
|
return addHeapObject(ret);
|
|
236
236
|
};
|
|
237
|
+
imports.wbg.__wbindgen_error_new = function(arg0, arg1) {
|
|
238
|
+
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
239
|
+
return addHeapObject(ret);
|
|
240
|
+
};
|
|
237
241
|
imports.wbg.__wbg_String_91fba7ded13ba54c = function(arg0, arg1) {
|
|
238
242
|
const ret = String(getObject(arg1));
|
|
239
243
|
const ptr0 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
@@ -241,10 +245,6 @@ function getImports() {
|
|
|
241
245
|
getInt32Memory0()[arg0 / 4 + 1] = len0;
|
|
242
246
|
getInt32Memory0()[arg0 / 4 + 0] = ptr0;
|
|
243
247
|
};
|
|
244
|
-
imports.wbg.__wbindgen_error_new = function(arg0, arg1) {
|
|
245
|
-
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
246
|
-
return addHeapObject(ret);
|
|
247
|
-
};
|
|
248
248
|
imports.wbg.__wbg_set_20cbc34131e76824 = function(arg0, arg1, arg2) {
|
|
249
249
|
getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
|
|
250
250
|
};
|
|
Binary file
|