New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@citeproc-rs/wasm

Package Overview
Dependencies
Maintainers
1
Versions
48
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@citeproc-rs/wasm - npm Package Compare versions

Comparing version 0.0.0-canary-63947fa to 0.0.0-canary-7bb4807

11

_cjs/citeproc_rs_wasm_bg.d.ts

@@ -7,4 +7,7 @@ /* tslint:disable */

export function driver_setStyle(a: number, b: number, c: number): number;
export function driver_setReferences(a: number, b: number, c: number): void;
export function driver_resetReferences(a: number, b: number, c: number): void;
export function driver_insertReferences(a: number, b: number, c: number): void;
export function driver_insertReference(a: number, b: number): void;
export function driver_removeReference(a: number, b: number, c: number): void;
export function driver_includeUncited(a: number, b: number): void;
export function driver_toFetch(a: number): number;

@@ -15,2 +18,3 @@ export function driver_insertCluster(a: number, b: number): void;

export function driver_builtCluster(a: number, b: number): number;
export function driver_previewCitationCluster(a: number, b: number, c: number, d: number, e: number, f: number, g: number): number;
export function driver_makeBibliography(a: number): number;

@@ -26,4 +30,5 @@ export function driver_bibliographyMeta(a: number): number;

export const __wbindgen_export_2: WebAssembly.Table;
export function _dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h18b461775fab0812(a: number, b: number, c: number): void;
export function _dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hf77188239a1f71cd(a: number, b: number, c: number): void;
export function __wbindgen_free(a: number, b: number): void;
export function __wbindgen_exn_store(a: number): void;
export function wasm_bindgen__convert__closures__invoke2_mut__h442d48e1eb0f8a8d(a: number, b: number, c: number, d: number): void;
export function wasm_bindgen__convert__closures__invoke2_mut__h19f62226ce422262(a: number, b: number, c: number, d: number): void;

@@ -34,3 +34,3 @@ /* tslint:disable */

suppression?: "InText" | "Rest" | null;
} & CiteLocator;
} & Partial<CiteLocator>;

@@ -89,5 +89,5 @@ export type ClusterNumber = {

type IncludeUncited = "None" | "All" | { Specific: string[] };
/**

@@ -118,13 +118,33 @@ */

/**
* Completely overwrites the references library.
* This **will** delete references that are not in the provided list.
* @param {any[]} refs
*/
resetReferences(refs: any[]): void;
/**
* Inserts or overwrites references as a batch operation.
* This **will not** delete references that are not in the provided list.
* @param {any[]} refs
*/
setReferences(refs: any[]): void;
insertReferences(refs: any[]): void;
/**
* Inserts or overwrites a reference.
*
* * `refr` is a Reference object.
* @param {Reference} refr
*/
insertReference(refr: Reference): void;
/**
* Removes a reference by id. If it is cited, any cites will be dangling. It will also
* disappear from the bibliography.
* @param {string} id
*/
removeReference(id: string): void;
/**
* Sets the references to be included in the bibliography despite not being directly cited.
*
* * `refr` is a
* @param {any} refr
* @param {IncludeUncited} uncited
*/
insertReference(refr: any): void;
includeUncited(uncited: IncludeUncited): void;
/**

@@ -164,4 +184,18 @@ * Gets a list of locales in use by the references currently loaded.

/**
* Previews a formatted citation cluster, in a particular position.
*
* - `cites`: The cites to go in the cluster
* - `positions`: An array of `ClusterPosition`s as in set_cluster_order, but with a single
* cluster's id set to zero. The cluster with id=0 is the position to preview the cite. It
* can replace another cluster, or be inserted before/after/between existing clusters, in
* any location you can think of.
* @param {any[]} cites
* @param {any[]} positions
* @param {string} format
* @returns {any}
*/
previewCitationCluster(cites: any[], positions: any[], format: string): any;
/**
* @returns {any}
*/
makeBibliography(): any;

@@ -219,5 +253,5 @@ /**

* May error without having set_cluster_ids, but with some set_cluster_note_number-s executed.
* @param {any[]} pieces
* @param {any[]} positions
*/
setClusterOrder(pieces: any[]): void;
setClusterOrder(positions: any[]): void;
/**

@@ -231,5 +265,5 @@ * Retrieve any clusters that have been touched since last time `batchedUpdates` was

* * returns an `UpdateSummary`
* @returns {any}
* @returns {UpdateSummary}
*/
batchedUpdates(): any;
batchedUpdates(): UpdateSummary;
/**

@@ -236,0 +270,0 @@ * Drains the `batchedUpdates` queue manually. Use it to avoid serializing an unneeded

@@ -107,3 +107,3 @@ let imports = {};

function __wbg_adapter_18(arg0, arg1, arg2) {
wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h18b461775fab0812(arg0, arg1, addHeapObject(arg2));
wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hf77188239a1f71cd(arg0, arg1, addHeapObject(arg2));
}

@@ -139,4 +139,4 @@

}
function __wbg_adapter_43(arg0, arg1, arg2, arg3) {
wasm.wasm_bindgen__convert__closures__invoke2_mut__h442d48e1eb0f8a8d(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
function __wbg_adapter_63(arg0, arg1, arg2, arg3) {
wasm.wasm_bindgen__convert__closures__invoke2_mut__h19f62226ce422262(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
}

@@ -194,9 +194,20 @@

/**
* Completely overwrites the references library.
* This **will** delete references that are not in the provided list.
* @param {any[]} refs
*/
resetReferences(refs) {
var ptr0 = passArrayJsValueToWasm0(refs, wasm.__wbindgen_malloc);
var len0 = WASM_VECTOR_LEN;
wasm.driver_resetReferences(this.ptr, ptr0, len0);
}
/**
* Inserts or overwrites references as a batch operation.
* This **will not** delete references that are not in the provided list.
* @param {any[]} refs
*/
setReferences(refs) {
insertReferences(refs) {
var ptr0 = passArrayJsValueToWasm0(refs, wasm.__wbindgen_malloc);
var len0 = WASM_VECTOR_LEN;
wasm.driver_setReferences(this.ptr, ptr0, len0);
wasm.driver_insertReferences(this.ptr, ptr0, len0);
}

@@ -206,4 +217,4 @@ /**

*
* * `refr` is a
* @param {any} refr
* * `refr` is a Reference object.
* @param {Reference} refr
*/

@@ -214,2 +225,21 @@ insertReference(refr) {

/**
* Removes a reference by id. If it is cited, any cites will be dangling. It will also
* disappear from the bibliography.
* @param {string} id
*/
removeReference(id) {
var ptr0 = passStringToWasm0(id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
var len0 = WASM_VECTOR_LEN;
wasm.driver_removeReference(this.ptr, ptr0, len0);
}
/**
* Sets the references to be included in the bibliography despite not being directly cited.
*
* * `refr` is a
* @param {IncludeUncited} uncited
*/
includeUncited(uncited) {
wasm.driver_includeUncited(this.ptr, addHeapObject(uncited));
}
/**
* Gets a list of locales in use by the references currently loaded.

@@ -262,4 +292,27 @@ *

/**
* Previews a formatted citation cluster, in a particular position.
*
* - `cites`: The cites to go in the cluster
* - `positions`: An array of `ClusterPosition`s as in set_cluster_order, but with a single
* cluster's id set to zero. The cluster with id=0 is the position to preview the cite. It
* can replace another cluster, or be inserted before/after/between existing clusters, in
* any location you can think of.
* @param {any[]} cites
* @param {any[]} positions
* @param {string} format
* @returns {any}
*/
previewCitationCluster(cites, positions, format) {
var ptr0 = passArrayJsValueToWasm0(cites, wasm.__wbindgen_malloc);
var len0 = WASM_VECTOR_LEN;
var ptr1 = passArrayJsValueToWasm0(positions, wasm.__wbindgen_malloc);
var len1 = WASM_VECTOR_LEN;
var ptr2 = passStringToWasm0(format, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
var len2 = WASM_VECTOR_LEN;
var ret = wasm.driver_previewCitationCluster(this.ptr, ptr0, len0, ptr1, len1, ptr2, len2);
return takeObject(ret);
}
/**
* @returns {any}
*/
makeBibliography() {

@@ -327,6 +380,6 @@ var ret = wasm.driver_makeBibliography(this.ptr);

* May error without having set_cluster_ids, but with some set_cluster_note_number-s executed.
* @param {any[]} pieces
* @param {any[]} positions
*/
setClusterOrder(pieces) {
var ptr0 = passArrayJsValueToWasm0(pieces, wasm.__wbindgen_malloc);
setClusterOrder(positions) {
var ptr0 = passArrayJsValueToWasm0(positions, wasm.__wbindgen_malloc);
var len0 = WASM_VECTOR_LEN;

@@ -343,3 +396,3 @@ wasm.driver_setClusterOrder(this.ptr, ptr0, len0);

* * returns an `UpdateSummary`
* @returns {any}
* @returns {UpdateSummary}
*/

@@ -373,6 +426,2 @@ batchedUpdates() {

module.exports.__wbg_error_e549f7fed6d655aa = function(arg0) {
console.error(takeObject(arg0));
};
module.exports.__wbindgen_json_serialize = function(arg0, arg1) {

@@ -397,2 +446,31 @@ const obj = getObject(arg1);

module.exports.__wbg_error_e549f7fed6d655aa = function(arg0) {
console.error(takeObject(arg0));
};
module.exports.__wbg_debug_4885c3f7d6f044a3 = function(arg0, arg1) {
console.debug(getStringFromWasm0(arg0, arg1));
};
module.exports.__wbg_log_bee3ea1a89f334d8 = function(arg0, arg1) {
console.log(getStringFromWasm0(arg0, arg1));
};
module.exports.__wbg_info_0547ff9513f2019b = function(arg0, arg1) {
console.info(getStringFromWasm0(arg0, arg1));
};
module.exports.__wbg_warn_a478dea6e6e05394 = function(arg0, arg1) {
console.warn(getStringFromWasm0(arg0, arg1));
};
module.exports.__wbg_error_72e88ba6901b6eee = function(arg0, arg1) {
console.error(getStringFromWasm0(arg0, arg1));
};
module.exports.__wbindgen_json_parse = function(arg0, arg1) {
var ret = JSON.parse(getStringFromWasm0(arg0, arg1));
return addHeapObject(ret);
};
module.exports.__wbindgen_cb_drop = function(arg0) {

@@ -408,7 +486,23 @@ const obj = takeObject(arg0).original;

module.exports.__wbindgen_json_parse = function(arg0, arg1) {
var ret = JSON.parse(getStringFromWasm0(arg0, arg1));
module.exports.__wbg_new_59cb74e423758ede = function() {
var ret = new Error();
return addHeapObject(ret);
};
module.exports.__wbg_stack_558ba5917b466edd = function(arg0, arg1) {
var ret = getObject(arg1).stack;
var ptr0 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
var len0 = WASM_VECTOR_LEN;
getInt32Memory0()[arg0 / 4 + 1] = len0;
getInt32Memory0()[arg0 / 4 + 0] = ptr0;
};
module.exports.__wbg_error_4bb6c2a97407129a = function(arg0, arg1) {
try {
console.error(getStringFromWasm0(arg0, arg1));
} finally {
wasm.__wbindgen_free(arg0, arg1);
}
};
module.exports.__wbg_new_4896ab6bba55e0d9 = function(arg0, arg1) {

@@ -431,3 +525,3 @@ var ret = new Error(getStringFromWasm0(arg0, arg1));

try {
return __wbg_adapter_43(a, state0.b, arg0, arg1);
return __wbg_adapter_63(a, state0.b, arg0, arg1);
} finally {

@@ -476,4 +570,4 @@ state0.a = a;

module.exports.__wbindgen_closure_wrapper847 = function(arg0, arg1, arg2) {
var ret = makeMutClosure(arg0, arg1, 88, __wbg_adapter_18);
module.exports.__wbindgen_closure_wrapper839 = function(arg0, arg1, arg2) {
var ret = makeMutClosure(arg0, arg1, 197, __wbg_adapter_18);
return addHeapObject(ret);

@@ -480,0 +574,0 @@ };

@@ -7,4 +7,7 @@ /* tslint:disable */

export function driver_setStyle(a: number, b: number, c: number): number;
export function driver_setReferences(a: number, b: number, c: number): void;
export function driver_resetReferences(a: number, b: number, c: number): void;
export function driver_insertReferences(a: number, b: number, c: number): void;
export function driver_insertReference(a: number, b: number): void;
export function driver_removeReference(a: number, b: number, c: number): void;
export function driver_includeUncited(a: number, b: number): void;
export function driver_toFetch(a: number): number;

@@ -15,2 +18,3 @@ export function driver_insertCluster(a: number, b: number): void;

export function driver_builtCluster(a: number, b: number): number;
export function driver_previewCitationCluster(a: number, b: number, c: number, d: number, e: number, f: number, g: number): number;
export function driver_makeBibliography(a: number): number;

@@ -26,4 +30,5 @@ export function driver_bibliographyMeta(a: number): number;

export const __wbindgen_export_2: WebAssembly.Table;
export function _dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h18b461775fab0812(a: number, b: number, c: number): void;
export function _dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hf77188239a1f71cd(a: number, b: number, c: number): void;
export function __wbindgen_free(a: number, b: number): void;
export function __wbindgen_exn_store(a: number): void;
export function wasm_bindgen__convert__closures__invoke2_mut__h442d48e1eb0f8a8d(a: number, b: number, c: number, d: number): void;
export function wasm_bindgen__convert__closures__invoke2_mut__h19f62226ce422262(a: number, b: number, c: number, d: number): void;

@@ -144,3 +144,3 @@ import * as wasm from './citeproc_rs_wasm_bg.wasm';

function __wbg_adapter_18(arg0, arg1, arg2) {
wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h18b461775fab0812(arg0, arg1, addHeapObject(arg2));
wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hf77188239a1f71cd(arg0, arg1, addHeapObject(arg2));
}

@@ -176,4 +176,4 @@

}
function __wbg_adapter_43(arg0, arg1, arg2, arg3) {
wasm.wasm_bindgen__convert__closures__invoke2_mut__h442d48e1eb0f8a8d(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
function __wbg_adapter_63(arg0, arg1, arg2, arg3) {
wasm.wasm_bindgen__convert__closures__invoke2_mut__h19f62226ce422262(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
}

@@ -231,9 +231,20 @@

/**
* Completely overwrites the references library.
* This **will** delete references that are not in the provided list.
* @param {any[]} refs
*/
resetReferences(refs) {
var ptr0 = passArrayJsValueToWasm0(refs, wasm.__wbindgen_malloc);
var len0 = WASM_VECTOR_LEN;
wasm.driver_resetReferences(this.ptr, ptr0, len0);
}
/**
* Inserts or overwrites references as a batch operation.
* This **will not** delete references that are not in the provided list.
* @param {any[]} refs
*/
setReferences(refs) {
insertReferences(refs) {
var ptr0 = passArrayJsValueToWasm0(refs, wasm.__wbindgen_malloc);
var len0 = WASM_VECTOR_LEN;
wasm.driver_setReferences(this.ptr, ptr0, len0);
wasm.driver_insertReferences(this.ptr, ptr0, len0);
}

@@ -243,4 +254,4 @@ /**

*
* * `refr` is a
* @param {any} refr
* * `refr` is a Reference object.
* @param {Reference} refr
*/

@@ -251,2 +262,21 @@ insertReference(refr) {

/**
* Removes a reference by id. If it is cited, any cites will be dangling. It will also
* disappear from the bibliography.
* @param {string} id
*/
removeReference(id) {
var ptr0 = passStringToWasm0(id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
var len0 = WASM_VECTOR_LEN;
wasm.driver_removeReference(this.ptr, ptr0, len0);
}
/**
* Sets the references to be included in the bibliography despite not being directly cited.
*
* * `refr` is a
* @param {IncludeUncited} uncited
*/
includeUncited(uncited) {
wasm.driver_includeUncited(this.ptr, addHeapObject(uncited));
}
/**
* Gets a list of locales in use by the references currently loaded.

@@ -299,4 +329,27 @@ *

/**
* Previews a formatted citation cluster, in a particular position.
*
* - `cites`: The cites to go in the cluster
* - `positions`: An array of `ClusterPosition`s as in set_cluster_order, but with a single
* cluster's id set to zero. The cluster with id=0 is the position to preview the cite. It
* can replace another cluster, or be inserted before/after/between existing clusters, in
* any location you can think of.
* @param {any[]} cites
* @param {any[]} positions
* @param {string} format
* @returns {any}
*/
previewCitationCluster(cites, positions, format) {
var ptr0 = passArrayJsValueToWasm0(cites, wasm.__wbindgen_malloc);
var len0 = WASM_VECTOR_LEN;
var ptr1 = passArrayJsValueToWasm0(positions, wasm.__wbindgen_malloc);
var len1 = WASM_VECTOR_LEN;
var ptr2 = passStringToWasm0(format, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
var len2 = WASM_VECTOR_LEN;
var ret = wasm.driver_previewCitationCluster(this.ptr, ptr0, len0, ptr1, len1, ptr2, len2);
return takeObject(ret);
}
/**
* @returns {any}
*/
makeBibliography() {

@@ -364,6 +417,6 @@ var ret = wasm.driver_makeBibliography(this.ptr);

* May error without having set_cluster_ids, but with some set_cluster_note_number-s executed.
* @param {any[]} pieces
* @param {any[]} positions
*/
setClusterOrder(pieces) {
var ptr0 = passArrayJsValueToWasm0(pieces, wasm.__wbindgen_malloc);
setClusterOrder(positions) {
var ptr0 = passArrayJsValueToWasm0(positions, wasm.__wbindgen_malloc);
var len0 = WASM_VECTOR_LEN;

@@ -380,3 +433,3 @@ wasm.driver_setClusterOrder(this.ptr, ptr0, len0);

* * returns an `UpdateSummary`
* @returns {any}
* @returns {UpdateSummary}
*/

@@ -409,6 +462,2 @@ batchedUpdates() {

export const __wbg_error_e549f7fed6d655aa = function(arg0) {
console.error(takeObject(arg0));
};
export const __wbindgen_json_serialize = function(arg0, arg1) {

@@ -433,2 +482,31 @@ const obj = getObject(arg1);

export const __wbg_error_e549f7fed6d655aa = function(arg0) {
console.error(takeObject(arg0));
};
export const __wbg_debug_4885c3f7d6f044a3 = function(arg0, arg1) {
console.debug(getStringFromWasm0(arg0, arg1));
};
export const __wbg_log_bee3ea1a89f334d8 = function(arg0, arg1) {
console.log(getStringFromWasm0(arg0, arg1));
};
export const __wbg_info_0547ff9513f2019b = function(arg0, arg1) {
console.info(getStringFromWasm0(arg0, arg1));
};
export const __wbg_warn_a478dea6e6e05394 = function(arg0, arg1) {
console.warn(getStringFromWasm0(arg0, arg1));
};
export const __wbg_error_72e88ba6901b6eee = function(arg0, arg1) {
console.error(getStringFromWasm0(arg0, arg1));
};
export const __wbindgen_json_parse = function(arg0, arg1) {
var ret = JSON.parse(getStringFromWasm0(arg0, arg1));
return addHeapObject(ret);
};
export const __wbindgen_cb_drop = function(arg0) {

@@ -444,7 +522,23 @@ const obj = takeObject(arg0).original;

export const __wbindgen_json_parse = function(arg0, arg1) {
var ret = JSON.parse(getStringFromWasm0(arg0, arg1));
export const __wbg_new_59cb74e423758ede = function() {
var ret = new Error();
return addHeapObject(ret);
};
export const __wbg_stack_558ba5917b466edd = function(arg0, arg1) {
var ret = getObject(arg1).stack;
var ptr0 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
var len0 = WASM_VECTOR_LEN;
getInt32Memory0()[arg0 / 4 + 1] = len0;
getInt32Memory0()[arg0 / 4 + 0] = ptr0;
};
export const __wbg_error_4bb6c2a97407129a = function(arg0, arg1) {
try {
console.error(getStringFromWasm0(arg0, arg1));
} finally {
wasm.__wbindgen_free(arg0, arg1);
}
};
export const __wbg_new_4896ab6bba55e0d9 = function(arg0, arg1) {

@@ -467,3 +561,3 @@ var ret = new Error(getStringFromWasm0(arg0, arg1));

try {
return __wbg_adapter_43(a, state0.b, arg0, arg1);
return __wbg_adapter_63(a, state0.b, arg0, arg1);
} finally {

@@ -512,6 +606,6 @@ state0.a = a;

export const __wbindgen_closure_wrapper847 = function(arg0, arg1, arg2) {
var ret = makeMutClosure(arg0, arg1, 88, __wbg_adapter_18);
export const __wbindgen_closure_wrapper839 = function(arg0, arg1, arg2) {
var ret = makeMutClosure(arg0, arg1, 197, __wbg_adapter_18);
return addHeapObject(ret);
};

@@ -34,3 +34,3 @@ /* tslint:disable */

suppression?: "InText" | "Rest" | null;
} & CiteLocator;
} & Partial<CiteLocator>;

@@ -89,5 +89,5 @@ export type ClusterNumber = {

type IncludeUncited = "None" | "All" | { Specific: string[] };
/**

@@ -118,13 +118,33 @@ */

/**
* Completely overwrites the references library.
* This **will** delete references that are not in the provided list.
* @param {any[]} refs
*/
resetReferences(refs: any[]): void;
/**
* Inserts or overwrites references as a batch operation.
* This **will not** delete references that are not in the provided list.
* @param {any[]} refs
*/
setReferences(refs: any[]): void;
insertReferences(refs: any[]): void;
/**
* Inserts or overwrites a reference.
*
* * `refr` is a Reference object.
* @param {Reference} refr
*/
insertReference(refr: Reference): void;
/**
* Removes a reference by id. If it is cited, any cites will be dangling. It will also
* disappear from the bibliography.
* @param {string} id
*/
removeReference(id: string): void;
/**
* Sets the references to be included in the bibliography despite not being directly cited.
*
* * `refr` is a
* @param {any} refr
* @param {IncludeUncited} uncited
*/
insertReference(refr: any): void;
includeUncited(uncited: IncludeUncited): void;
/**

@@ -164,4 +184,18 @@ * Gets a list of locales in use by the references currently loaded.

/**
* Previews a formatted citation cluster, in a particular position.
*
* - `cites`: The cites to go in the cluster
* - `positions`: An array of `ClusterPosition`s as in set_cluster_order, but with a single
* cluster's id set to zero. The cluster with id=0 is the position to preview the cite. It
* can replace another cluster, or be inserted before/after/between existing clusters, in
* any location you can think of.
* @param {any[]} cites
* @param {any[]} positions
* @param {string} format
* @returns {any}
*/
previewCitationCluster(cites: any[], positions: any[], format: string): any;
/**
* @returns {any}
*/
makeBibliography(): any;

@@ -219,5 +253,5 @@ /**

* May error without having set_cluster_ids, but with some set_cluster_note_number-s executed.
* @param {any[]} pieces
* @param {any[]} positions
*/
setClusterOrder(pieces: any[]): void;
setClusterOrder(positions: any[]): void;
/**

@@ -231,5 +265,5 @@ * Retrieve any clusters that have been touched since last time `batchedUpdates` was

* * returns an `UpdateSummary`
* @returns {any}
* @returns {UpdateSummary}
*/
batchedUpdates(): any;
batchedUpdates(): UpdateSummary;
/**

@@ -236,0 +270,0 @@ * Drains the `batchedUpdates` queue manually. Use it to avoid serializing an unneeded

@@ -7,4 +7,7 @@ /* tslint:disable */

export function driver_setStyle(a: number, b: number, c: number): number;
export function driver_setReferences(a: number, b: number, c: number): void;
export function driver_resetReferences(a: number, b: number, c: number): void;
export function driver_insertReferences(a: number, b: number, c: number): void;
export function driver_insertReference(a: number, b: number): void;
export function driver_removeReference(a: number, b: number, c: number): void;
export function driver_includeUncited(a: number, b: number): void;
export function driver_toFetch(a: number): number;

@@ -15,2 +18,3 @@ export function driver_insertCluster(a: number, b: number): void;

export function driver_builtCluster(a: number, b: number): number;
export function driver_previewCitationCluster(a: number, b: number, c: number, d: number, e: number, f: number, g: number): number;
export function driver_makeBibliography(a: number): number;

@@ -26,4 +30,5 @@ export function driver_bibliographyMeta(a: number): number;

export const __wbindgen_export_2: WebAssembly.Table;
export function _dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h18b461775fab0812(a: number, b: number, c: number): void;
export function _dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hf77188239a1f71cd(a: number, b: number, c: number): void;
export function __wbindgen_free(a: number, b: number): void;
export function __wbindgen_exn_store(a: number): void;
export function wasm_bindgen__convert__closures__invoke2_mut__h442d48e1eb0f8a8d(a: number, b: number, c: number, d: number): void;
export function wasm_bindgen__convert__closures__invoke2_mut__h19f62226ce422262(a: number, b: number, c: number, d: number): void;

@@ -34,3 +34,3 @@ /* tslint:disable */

suppression?: "InText" | "Rest" | null;
} & CiteLocator;
} & Partial<CiteLocator>;

@@ -89,5 +89,5 @@ export type ClusterNumber = {

type IncludeUncited = "None" | "All" | { Specific: string[] };
/**

@@ -118,13 +118,33 @@ */

/**
* Completely overwrites the references library.
* This **will** delete references that are not in the provided list.
* @param {any[]} refs
*/
resetReferences(refs: any[]): void;
/**
* Inserts or overwrites references as a batch operation.
* This **will not** delete references that are not in the provided list.
* @param {any[]} refs
*/
setReferences(refs: any[]): void;
insertReferences(refs: any[]): void;
/**
* Inserts or overwrites a reference.
*
* * `refr` is a Reference object.
* @param {Reference} refr
*/
insertReference(refr: Reference): void;
/**
* Removes a reference by id. If it is cited, any cites will be dangling. It will also
* disappear from the bibliography.
* @param {string} id
*/
removeReference(id: string): void;
/**
* Sets the references to be included in the bibliography despite not being directly cited.
*
* * `refr` is a
* @param {any} refr
* @param {IncludeUncited} uncited
*/
insertReference(refr: any): void;
includeUncited(uncited: IncludeUncited): void;
/**

@@ -164,4 +184,18 @@ * Gets a list of locales in use by the references currently loaded.

/**
* Previews a formatted citation cluster, in a particular position.
*
* - `cites`: The cites to go in the cluster
* - `positions`: An array of `ClusterPosition`s as in set_cluster_order, but with a single
* cluster's id set to zero. The cluster with id=0 is the position to preview the cite. It
* can replace another cluster, or be inserted before/after/between existing clusters, in
* any location you can think of.
* @param {any[]} cites
* @param {any[]} positions
* @param {string} format
* @returns {any}
*/
previewCitationCluster(cites: any[], positions: any[], format: string): any;
/**
* @returns {any}
*/
makeBibliography(): any;

@@ -219,5 +253,5 @@ /**

* May error without having set_cluster_ids, but with some set_cluster_note_number-s executed.
* @param {any[]} pieces
* @param {any[]} positions
*/
setClusterOrder(pieces: any[]): void;
setClusterOrder(positions: any[]): void;
/**

@@ -231,5 +265,5 @@ * Retrieve any clusters that have been touched since last time `batchedUpdates` was

* * returns an `UpdateSummary`
* @returns {any}
* @returns {UpdateSummary}
*/
batchedUpdates(): any;
batchedUpdates(): UpdateSummary;
/**

@@ -255,4 +289,7 @@ * Drains the `batchedUpdates` queue manually. Use it to avoid serializing an unneeded

readonly driver_setStyle: (a: number, b: number, c: number) => number;
readonly driver_setReferences: (a: number, b: number, c: number) => void;
readonly driver_resetReferences: (a: number, b: number, c: number) => void;
readonly driver_insertReferences: (a: number, b: number, c: number) => void;
readonly driver_insertReference: (a: number, b: number) => void;
readonly driver_removeReference: (a: number, b: number, c: number) => void;
readonly driver_includeUncited: (a: number, b: number) => void;
readonly driver_toFetch: (a: number) => number;

@@ -263,2 +300,3 @@ readonly driver_insertCluster: (a: number, b: number) => void;

readonly driver_builtCluster: (a: number, b: number) => number;
readonly driver_previewCitationCluster: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => number;
readonly driver_makeBibliography: (a: number) => number;

@@ -274,5 +312,6 @@ readonly driver_bibliographyMeta: (a: number) => number;

readonly __wbindgen_export_2: WebAssembly.Table;
readonly _dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h18b461775fab0812: (a: number, b: number, c: number) => void;
readonly _dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hf77188239a1f71cd: (a: number, b: number, c: number) => void;
readonly __wbindgen_free: (a: number, b: number) => void;
readonly __wbindgen_exn_store: (a: number) => void;
readonly wasm_bindgen__convert__closures__invoke2_mut__h442d48e1eb0f8a8d: (a: number, b: number, c: number, d: number) => void;
readonly wasm_bindgen__convert__closures__invoke2_mut__h19f62226ce422262: (a: number, b: number, c: number, d: number) => void;
}

@@ -279,0 +318,0 @@

@@ -141,3 +141,3 @@

function __wbg_adapter_18(arg0, arg1, arg2) {
wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h18b461775fab0812(arg0, arg1, addHeapObject(arg2));
wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hf77188239a1f71cd(arg0, arg1, addHeapObject(arg2));
}

@@ -173,4 +173,4 @@

}
function __wbg_adapter_43(arg0, arg1, arg2, arg3) {
wasm.wasm_bindgen__convert__closures__invoke2_mut__h442d48e1eb0f8a8d(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
function __wbg_adapter_63(arg0, arg1, arg2, arg3) {
wasm.wasm_bindgen__convert__closures__invoke2_mut__h19f62226ce422262(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
}

@@ -228,9 +228,20 @@

/**
* Completely overwrites the references library.
* This **will** delete references that are not in the provided list.
* @param {any[]} refs
*/
resetReferences(refs) {
var ptr0 = passArrayJsValueToWasm0(refs, wasm.__wbindgen_malloc);
var len0 = WASM_VECTOR_LEN;
wasm.driver_resetReferences(this.ptr, ptr0, len0);
}
/**
* Inserts or overwrites references as a batch operation.
* This **will not** delete references that are not in the provided list.
* @param {any[]} refs
*/
setReferences(refs) {
insertReferences(refs) {
var ptr0 = passArrayJsValueToWasm0(refs, wasm.__wbindgen_malloc);
var len0 = WASM_VECTOR_LEN;
wasm.driver_setReferences(this.ptr, ptr0, len0);
wasm.driver_insertReferences(this.ptr, ptr0, len0);
}

@@ -240,4 +251,4 @@ /**

*
* * `refr` is a
* @param {any} refr
* * `refr` is a Reference object.
* @param {Reference} refr
*/

@@ -248,2 +259,21 @@ insertReference(refr) {

/**
* Removes a reference by id. If it is cited, any cites will be dangling. It will also
* disappear from the bibliography.
* @param {string} id
*/
removeReference(id) {
var ptr0 = passStringToWasm0(id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
var len0 = WASM_VECTOR_LEN;
wasm.driver_removeReference(this.ptr, ptr0, len0);
}
/**
* Sets the references to be included in the bibliography despite not being directly cited.
*
* * `refr` is a
* @param {IncludeUncited} uncited
*/
includeUncited(uncited) {
wasm.driver_includeUncited(this.ptr, addHeapObject(uncited));
}
/**
* Gets a list of locales in use by the references currently loaded.

@@ -296,4 +326,27 @@ *

/**
* Previews a formatted citation cluster, in a particular position.
*
* - `cites`: The cites to go in the cluster
* - `positions`: An array of `ClusterPosition`s as in set_cluster_order, but with a single
* cluster's id set to zero. The cluster with id=0 is the position to preview the cite. It
* can replace another cluster, or be inserted before/after/between existing clusters, in
* any location you can think of.
* @param {any[]} cites
* @param {any[]} positions
* @param {string} format
* @returns {any}
*/
previewCitationCluster(cites, positions, format) {
var ptr0 = passArrayJsValueToWasm0(cites, wasm.__wbindgen_malloc);
var len0 = WASM_VECTOR_LEN;
var ptr1 = passArrayJsValueToWasm0(positions, wasm.__wbindgen_malloc);
var len1 = WASM_VECTOR_LEN;
var ptr2 = passStringToWasm0(format, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
var len2 = WASM_VECTOR_LEN;
var ret = wasm.driver_previewCitationCluster(this.ptr, ptr0, len0, ptr1, len1, ptr2, len2);
return takeObject(ret);
}
/**
* @returns {any}
*/
makeBibliography() {

@@ -361,6 +414,6 @@ var ret = wasm.driver_makeBibliography(this.ptr);

* May error without having set_cluster_ids, but with some set_cluster_note_number-s executed.
* @param {any[]} pieces
* @param {any[]} positions
*/
setClusterOrder(pieces) {
var ptr0 = passArrayJsValueToWasm0(pieces, wasm.__wbindgen_malloc);
setClusterOrder(positions) {
var ptr0 = passArrayJsValueToWasm0(positions, wasm.__wbindgen_malloc);
var len0 = WASM_VECTOR_LEN;

@@ -377,3 +430,3 @@ wasm.driver_setClusterOrder(this.ptr, ptr0, len0);

* * returns an `UpdateSummary`
* @returns {any}
* @returns {UpdateSummary}
*/

@@ -444,5 +497,2 @@ batchedUpdates() {

};
imports.wbg.__wbg_error_e549f7fed6d655aa = function(arg0) {
console.error(takeObject(arg0));
};
imports.wbg.__wbindgen_json_serialize = function(arg0, arg1) {

@@ -464,2 +514,24 @@ const obj = getObject(arg1);

};
imports.wbg.__wbg_error_e549f7fed6d655aa = function(arg0) {
console.error(takeObject(arg0));
};
imports.wbg.__wbg_debug_4885c3f7d6f044a3 = function(arg0, arg1) {
console.debug(getStringFromWasm0(arg0, arg1));
};
imports.wbg.__wbg_log_bee3ea1a89f334d8 = function(arg0, arg1) {
console.log(getStringFromWasm0(arg0, arg1));
};
imports.wbg.__wbg_info_0547ff9513f2019b = function(arg0, arg1) {
console.info(getStringFromWasm0(arg0, arg1));
};
imports.wbg.__wbg_warn_a478dea6e6e05394 = function(arg0, arg1) {
console.warn(getStringFromWasm0(arg0, arg1));
};
imports.wbg.__wbg_error_72e88ba6901b6eee = function(arg0, arg1) {
console.error(getStringFromWasm0(arg0, arg1));
};
imports.wbg.__wbindgen_json_parse = function(arg0, arg1) {
var ret = JSON.parse(getStringFromWasm0(arg0, arg1));
return addHeapObject(ret);
};
imports.wbg.__wbindgen_cb_drop = function(arg0) {

@@ -474,6 +546,20 @@ const obj = takeObject(arg0).original;

};
imports.wbg.__wbindgen_json_parse = function(arg0, arg1) {
var ret = JSON.parse(getStringFromWasm0(arg0, arg1));
imports.wbg.__wbg_new_59cb74e423758ede = function() {
var ret = new Error();
return addHeapObject(ret);
};
imports.wbg.__wbg_stack_558ba5917b466edd = function(arg0, arg1) {
var ret = getObject(arg1).stack;
var ptr0 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
var len0 = WASM_VECTOR_LEN;
getInt32Memory0()[arg0 / 4 + 1] = len0;
getInt32Memory0()[arg0 / 4 + 0] = ptr0;
};
imports.wbg.__wbg_error_4bb6c2a97407129a = function(arg0, arg1) {
try {
console.error(getStringFromWasm0(arg0, arg1));
} finally {
wasm.__wbindgen_free(arg0, arg1);
}
};
imports.wbg.__wbg_new_4896ab6bba55e0d9 = function(arg0, arg1) {

@@ -494,3 +580,3 @@ var ret = new Error(getStringFromWasm0(arg0, arg1));

try {
return __wbg_adapter_43(a, state0.b, arg0, arg1);
return __wbg_adapter_63(a, state0.b, arg0, arg1);
} finally {

@@ -532,4 +618,4 @@ state0.a = a;

};
imports.wbg.__wbindgen_closure_wrapper847 = function(arg0, arg1, arg2) {
var ret = makeMutClosure(arg0, arg1, 88, __wbg_adapter_18);
imports.wbg.__wbindgen_closure_wrapper839 = function(arg0, arg1, arg2) {
var ret = makeMutClosure(arg0, arg1, 197, __wbg_adapter_18);
return addHeapObject(ret);

@@ -536,0 +622,0 @@ };

@@ -7,3 +7,3 @@ {

"description": "citeproc-rs, compiled to WebAssembly",
"version": "0.0.0-canary-63947fa",
"version": "0.0.0-canary-7bb4807",
"license": "MPL-2.0",

@@ -10,0 +10,0 @@ "repository": {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc