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

@rhcp/mimir_transforms_web

Package Overview
Dependencies
Maintainers
0
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@rhcp/mimir_transforms_web - npm Package Compare versions

Comparing version 0.6.0 to 0.6.1

87

mimir_transforms.d.ts

@@ -104,2 +104,77 @@ /* tslint:disable */

/**
* Replaces <span class="keycap"> elements with <kbd> tags
*
* Before:
*
* ```html
* <span class="keycap">
* <strong>Tab</strong>
* </span>
* ```
*
* After:
*
* ```html
* <kbd class="keycap">
* Tab
* </kbd>
* </rh-code-block>
* ```
* @param {string} input
* @returns {string}
*/
export function turnKeys(input: string): string;
/**
* "Replaces all <h*> tags with the next level down in the hierarchy for single-page Docs HTML files
*
* Before:
*
* ```html
* <h2 class="subtitle">
* Highlighted features in 11.2
* </h2>
* ```
*
* After:
*
* ```html
* <h3 class="subtitle">
* Highlighted features in 11.2
* </h3>
* ```
* @param {string} input
* @returns {string}
*/
export function bumpHeads(input: string): string;
/**
* Replaces <div.table> with <rh-table>.
* Applies a <caption> to the table if it has a <p.title>.
*
* Before:
*
* ```html
* <div class="table">
* <p class="title"><strong>Table&nbsp;1.1.&nbsp;Decision-authoring assets supported in Red Hat Decision Manager</strong></p>
* <table>
* <colgroup>
* </colgroup>
* </table>
* </div>
* ```
*
* After:
*
* ```html
* <rh-table>
* <table><caption>Table&nbsp;1.1.&nbsp;Decision-authoring assets supported in Red Hat Decision Manager</caption>
* <colgroup>
* </colgroup>
* </table>
* </rh-table>
* ```
* @param {string} input
* @returns {string}
*/
export function tableIt(input: string): string;
/**
* Handler for `console.log` invocations.

@@ -153,5 +228,2 @@ *

* harness.
*
* Eventually this will be used to support flags, but for now it's just
* used to support test filters.
* @param {any[]} args

@@ -186,2 +258,5 @@ */

readonly preclude: (a: number, b: number, c: number) => void;
readonly turnKeys: (a: number, b: number, c: number) => void;
readonly bumpHeads: (a: number, b: number, c: number) => void;
readonly tableIt: (a: number, b: number, c: number) => void;
readonly __wbg_wasmbindgentestcontext_free: (a: number) => void;

@@ -199,8 +274,8 @@ readonly wasmbindgentestcontext_new: () => number;

readonly __wbindgen_export_2: WebAssembly.Table;
readonly wasm_bindgen__convert__closures__invoke1_mut__hb9b6194a59dbdf0f: (a: number, b: number, c: number) => void;
readonly _dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h0b4369a9a51cd2bd: (a: number, b: number, c: number) => void;
readonly __wbindgen_add_to_stack_pointer: (a: number) => number;
readonly __wbindgen_free: (a: number, b: number, c: number) => void;
readonly wasm_bindgen__convert__closures__invoke3_mut__h0447a6171739fea3: (a: number, b: number, c: number, d: number, e: number) => void;
readonly wasm_bindgen__convert__closures__invoke3_mut__h004339084d1b98c8: (a: number, b: number, c: number, d: number, e: number) => void;
readonly __wbindgen_exn_store: (a: number) => void;
readonly wasm_bindgen__convert__closures__invoke2_mut__h093690349a7b7ab2: (a: number, b: number, c: number, d: number) => void;
readonly wasm_bindgen__convert__closures__invoke2_mut__h9ca762a85c665cbc: (a: number, b: number, c: number, d: number) => void;
}

@@ -207,0 +282,0 @@

280

mimir_transforms.js

@@ -81,2 +81,3 @@ let wasm;

offset += ret.written;
ptr = realloc(ptr, len, offset, 1) >>> 0;
}

@@ -119,2 +120,8 @@

const CLOSURE_DTORS = (typeof FinalizationRegistry === 'undefined')
? { register: () => {}, unregister: () => {} }
: new FinalizationRegistry(state => {
wasm.__wbindgen_export_2.get(state.dtor)(state.a, state.b)
});
function makeMutClosure(arg0, arg1, dtor, f) {

@@ -134,3 +141,3 @@ const state = { a: arg0, b: arg1, cnt: 1, dtor };

wasm.__wbindgen_export_2.get(state.dtor)(a, state.b);
CLOSURE_DTORS.unregister(state);
} else {

@@ -142,7 +149,7 @@ state.a = a;

real.original = state;
CLOSURE_DTORS.register(real, state, state);
return real;
}
function __wbg_adapter_18(arg0, arg1, arg2) {
wasm.wasm_bindgen__convert__closures__invoke1_mut__hb9b6194a59dbdf0f(arg0, arg1, addHeapObject(arg2));
function __wbg_adapter_20(arg0, arg1, arg2) {
wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h0b4369a9a51cd2bd(arg0, arg1, addHeapObject(arg2));
}

@@ -358,2 +365,131 @@

/**
* Replaces <span class="keycap"> elements with <kbd> tags
*
* Before:
*
* ```html
* <span class="keycap">
* <strong>Tab</strong>
* </span>
* ```
*
* After:
*
* ```html
* <kbd class="keycap">
* Tab
* </kbd>
* </rh-code-block>
* ```
* @param {string} input
* @returns {string}
*/
export function turnKeys(input) {
let deferred2_0;
let deferred2_1;
try {
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
const ptr0 = passStringToWasm0(input, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
const len0 = WASM_VECTOR_LEN;
wasm.turnKeys(retptr, ptr0, len0);
var r0 = getInt32Memory0()[retptr / 4 + 0];
var r1 = getInt32Memory0()[retptr / 4 + 1];
deferred2_0 = r0;
deferred2_1 = r1;
return getStringFromWasm0(r0, r1);
} finally {
wasm.__wbindgen_add_to_stack_pointer(16);
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
}
}
/**
* "Replaces all <h*> tags with the next level down in the hierarchy for single-page Docs HTML files
*
* Before:
*
* ```html
* <h2 class="subtitle">
* Highlighted features in 11.2
* </h2>
* ```
*
* After:
*
* ```html
* <h3 class="subtitle">
* Highlighted features in 11.2
* </h3>
* ```
* @param {string} input
* @returns {string}
*/
export function bumpHeads(input) {
let deferred2_0;
let deferred2_1;
try {
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
const ptr0 = passStringToWasm0(input, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
const len0 = WASM_VECTOR_LEN;
wasm.bumpHeads(retptr, ptr0, len0);
var r0 = getInt32Memory0()[retptr / 4 + 0];
var r1 = getInt32Memory0()[retptr / 4 + 1];
deferred2_0 = r0;
deferred2_1 = r1;
return getStringFromWasm0(r0, r1);
} finally {
wasm.__wbindgen_add_to_stack_pointer(16);
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
}
}
/**
* Replaces <div.table> with <rh-table>.
* Applies a <caption> to the table if it has a <p.title>.
*
* Before:
*
* ```html
* <div class="table">
* <p class="title"><strong>Table&nbsp;1.1.&nbsp;Decision-authoring assets supported in Red Hat Decision Manager</strong></p>
* <table>
* <colgroup>
* </colgroup>
* </table>
* </div>
* ```
*
* After:
*
* ```html
* <rh-table>
* <table><caption>Table&nbsp;1.1.&nbsp;Decision-authoring assets supported in Red Hat Decision Manager</caption>
* <colgroup>
* </colgroup>
* </table>
* </rh-table>
* ```
* @param {string} input
* @returns {string}
*/
export function tableIt(input) {
let deferred2_0;
let deferred2_1;
try {
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
const ptr0 = passStringToWasm0(input, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
const len0 = WASM_VECTOR_LEN;
wasm.tableIt(retptr, ptr0, len0);
var r0 = getInt32Memory0()[retptr / 4 + 0];
var r1 = getInt32Memory0()[retptr / 4 + 1];
deferred2_0 = r0;
deferred2_1 = r1;
return getStringFromWasm0(r0, r1);
} finally {
wasm.__wbindgen_add_to_stack_pointer(16);
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
}
}
let cachedUint32Memory0 = null;

@@ -450,4 +586,4 @@

function __wbg_adapter_65(arg0, arg1, arg2, arg3, arg4) {
wasm.wasm_bindgen__convert__closures__invoke3_mut__h0447a6171739fea3(arg0, arg1, addHeapObject(arg2), arg3, addHeapObject(arg4));
function __wbg_adapter_74(arg0, arg1, arg2, arg3, arg4) {
wasm.wasm_bindgen__convert__closures__invoke3_mut__h004339084d1b98c8(arg0, arg1, addHeapObject(arg2), arg3, addHeapObject(arg4));
}

@@ -462,6 +598,9 @@

}
function __wbg_adapter_78(arg0, arg1, arg2, arg3) {
wasm.wasm_bindgen__convert__closures__invoke2_mut__h093690349a7b7ab2(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
function __wbg_adapter_87(arg0, arg1, arg2, arg3) {
wasm.wasm_bindgen__convert__closures__invoke2_mut__h9ca762a85c665cbc(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
}
const WasmBindgenTestContextFinalization = (typeof FinalizationRegistry === 'undefined')
? { register: () => {}, unregister: () => {} }
: new FinalizationRegistry(ptr => wasm.__wbg_wasmbindgentestcontext_free(ptr >>> 0));
/**

@@ -475,14 +614,6 @@ * Runtime test harness support instantiated in JS.

static __wrap(ptr) {
ptr = ptr >>> 0;
const obj = Object.create(WasmBindgenTestContext.prototype);
obj.__wbg_ptr = ptr;
return obj;
}
__destroy_into_raw() {
const ptr = this.__wbg_ptr;
this.__wbg_ptr = 0;
WasmBindgenTestContextFinalization.unregister(this);
return ptr;

@@ -504,3 +635,4 @@ }

const ret = wasm.wasmbindgentestcontext_new();
return WasmBindgenTestContext.__wrap(ret);
this.__wbg_ptr = ret >>> 0;
return this;
}

@@ -510,5 +642,2 @@ /**

* harness.
*
* Eventually this will be used to support flags, but for now it's just
* used to support test filters.
* @param {any[]} args

@@ -579,6 +708,6 @@ */

};
imports.wbg.__wbg_log_aac03509bb2d7b55 = function(arg0, arg1) {
imports.wbg.__wbg_log_28eee4e6432efd24 = function(arg0, arg1) {
console.log(getStringFromWasm0(arg0, arg1));
};
imports.wbg.__wbg_String_c9f8fcfc09f70054 = function(arg0, arg1) {
imports.wbg.__wbg_String_55b8bdc4bc243677 = function(arg0, arg1) {
const ret = String(getObject(arg1));

@@ -590,7 +719,7 @@ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);

};
imports.wbg.__wbg_getElementById_a19340abadee780a = function(arg0, arg1, arg2) {
imports.wbg.__wbg_getElementById_8458f2a6c28467dc = function(arg0, arg1, arg2) {
const ret = getObject(arg0).getElementById(getStringFromWasm0(arg1, arg2));
return addHeapObject(ret);
};
imports.wbg.__wbg_settextcontent_040820499bb5fe46 = function(arg0, arg1, arg2) {
imports.wbg.__wbg_settextcontent_fc3ff485b96fcb1d = function(arg0, arg1, arg2) {
getObject(arg0).textContent = getStringFromWasm0(arg1, arg2);

@@ -610,8 +739,16 @@ };

};
imports.wbg.__wbg_static_accessor_document_a955a7208875489c = function() {
imports.wbg.__wbg_static_accessor_document_d4b6ae7f5578480f = function() {
const ret = document;
return addHeapObject(ret);
};
imports.wbg.__wbg_textcontent_2418b136fbd0e378 = function(arg0, arg1) {
const ret = getObject(arg1).textContent;
imports.wbg.__wbg_self_55106357ec10ecd4 = function(arg0) {
const ret = getObject(arg0).self;
return isLikeNone(ret) ? 0 : addHeapObject(ret);
};
imports.wbg.__wbg_constructor_fd0d22d60b7dfd72 = function(arg0) {
const ret = getObject(arg0).constructor;
return addHeapObject(ret);
};
imports.wbg.__wbg_name_7f439d24ff7ba1d3 = function(arg0, arg1) {
const ret = getObject(arg1).name;
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);

@@ -626,3 +763,17 @@ const len1 = WASM_VECTOR_LEN;

};
imports.wbg.__wbg_stack_486eebc2bccbc1f4 = function(arg0) {
imports.wbg.__wbg_stack_17c77e9f5bfe6714 = 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;
};
imports.wbg.__wbg_textcontent_67e4e811cbdf00fc = function(arg0, arg1) {
const ret = getObject(arg1).textContent;
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;
};
imports.wbg.__wbg_stack_44743fb7d71926a0 = function(arg0) {
const ret = getObject(arg0).stack;

@@ -635,31 +786,9 @@ return addHeapObject(ret);

};
imports.wbg.__wbg_wbgtestoutputwriteln_6829eddea6f46c60 = function(arg0) {
imports.wbg.__wbg_wbgtestoutputwriteln_4db3bd64914ec955 = function(arg0) {
__wbg_test_output_writeln(takeObject(arg0));
};
imports.wbg.__wbg_stack_7ffb21b96b519484 = function(arg0) {
imports.wbg.__wbg_stack_436273c21658169b = function(arg0) {
const ret = getObject(arg0).stack;
return addHeapObject(ret);
};
imports.wbg.__wbg_self_f12382a96c29176d = function(arg0) {
const ret = getObject(arg0).self;
return isLikeNone(ret) ? 0 : addHeapObject(ret);
};
imports.wbg.__wbg_constructor_85bd1a4c998482d2 = function(arg0) {
const ret = getObject(arg0).constructor;
return addHeapObject(ret);
};
imports.wbg.__wbg_name_737814bf19c6ced1 = function(arg0, arg1) {
const ret = getObject(arg1).name;
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;
};
imports.wbg.__wbg_stack_67a3c970c48fd391 = 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;
};
imports.wbg.__wbg_new_abda76e883ba8a5f = function() {

@@ -696,23 +825,34 @@ const ret = new Error();

};
imports.wbg.__wbg_newnoargs_581967eacc0e2604 = function(arg0, arg1) {
imports.wbg.__wbg_queueMicrotask_481971b0d87f3dd4 = function(arg0) {
queueMicrotask(getObject(arg0));
};
imports.wbg.__wbg_queueMicrotask_3cbae2ec6b6cd3d6 = function(arg0) {
const ret = getObject(arg0).queueMicrotask;
return addHeapObject(ret);
};
imports.wbg.__wbindgen_is_function = function(arg0) {
const ret = typeof(getObject(arg0)) === 'function';
return ret;
};
imports.wbg.__wbg_newnoargs_e258087cd0daa0ea = function(arg0, arg1) {
const ret = new Function(getStringFromWasm0(arg0, arg1));
return addHeapObject(ret);
};
imports.wbg.__wbg_call_cb65541d95d71282 = function() { return handleError(function (arg0, arg1) {
imports.wbg.__wbg_call_27c0f87801dedf93 = function() { return handleError(function (arg0, arg1) {
const ret = getObject(arg0).call(getObject(arg1));
return addHeapObject(ret);
}, arguments) };
imports.wbg.__wbg_self_1ff1d729e9aae938 = function() { return handleError(function () {
imports.wbg.__wbg_self_ce0dbfc45cf2f5be = function() { return handleError(function () {
const ret = self.self;
return addHeapObject(ret);
}, arguments) };
imports.wbg.__wbg_window_5f4faef6c12b79ec = function() { return handleError(function () {
imports.wbg.__wbg_window_c6fb939a7f436783 = function() { return handleError(function () {
const ret = window.window;
return addHeapObject(ret);
}, arguments) };
imports.wbg.__wbg_globalThis_1d39714405582d3c = function() { return handleError(function () {
imports.wbg.__wbg_globalThis_d1e6af4856ba331b = function() { return handleError(function () {
const ret = globalThis.globalThis;
return addHeapObject(ret);
}, arguments) };
imports.wbg.__wbg_global_651f05c6a0944d1c = function() { return handleError(function () {
imports.wbg.__wbg_global_207b558942527489 = function() { return handleError(function () {
const ret = global.global;

@@ -725,3 +865,3 @@ return addHeapObject(ret);

};
imports.wbg.__wbg_forEach_c4a9c2a1e9a630ba = function(arg0, arg1, arg2) {
imports.wbg.__wbg_forEach_2be8de7347d63332 = function(arg0, arg1, arg2) {
try {

@@ -733,3 +873,3 @@ var state0 = {a: arg1, b: arg2};

try {
return __wbg_adapter_65(a, state0.b, arg0, arg1, arg2);
return __wbg_adapter_74(a, state0.b, arg0, arg1, arg2);
} finally {

@@ -744,15 +884,15 @@ state0.a = a;

};
imports.wbg.__wbg_message_48bacc5ea57d74ee = function(arg0) {
imports.wbg.__wbg_message_5bf28016c2b49cfb = function(arg0) {
const ret = getObject(arg0).message;
return addHeapObject(ret);
};
imports.wbg.__wbg_name_8f734cbbd6194153 = function(arg0) {
imports.wbg.__wbg_name_e7429f0dda6079e2 = function(arg0) {
const ret = getObject(arg0).name;
return addHeapObject(ret);
};
imports.wbg.__wbg_call_01734de55d61e11d = function() { return handleError(function (arg0, arg1, arg2) {
imports.wbg.__wbg_call_b3ca7c6051f9bec1 = function() { return handleError(function (arg0, arg1, arg2) {
const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
return addHeapObject(ret);
}, arguments) };
imports.wbg.__wbg_new_43f1b47c28813cbd = function(arg0, arg1) {
imports.wbg.__wbg_new_81740750da40724f = function(arg0, arg1) {
try {

@@ -764,3 +904,3 @@ var state0 = {a: arg0, b: arg1};

try {
return __wbg_adapter_78(a, state0.b, arg0, arg1);
return __wbg_adapter_87(a, state0.b, arg0, arg1);
} finally {

@@ -776,7 +916,7 @@ state0.a = a;

};
imports.wbg.__wbg_resolve_53698b95aaf7fcf8 = function(arg0) {
imports.wbg.__wbg_resolve_b0083a7967828ec8 = function(arg0) {
const ret = Promise.resolve(getObject(arg0));
return addHeapObject(ret);
};
imports.wbg.__wbg_then_f7e06ee3c11698eb = function(arg0, arg1) {
imports.wbg.__wbg_then_0c86a60e8fcfe9f6 = function(arg0, arg1) {
const ret = getObject(arg0).then(getObject(arg1));

@@ -788,4 +928,4 @@ return addHeapObject(ret);

};
imports.wbg.__wbindgen_closure_wrapper174 = function(arg0, arg1, arg2) {
const ret = makeMutClosure(arg0, arg1, 57, __wbg_adapter_18);
imports.wbg.__wbindgen_closure_wrapper190 = function(arg0, arg1, arg2) {
const ret = makeMutClosure(arg0, arg1, 61, __wbg_adapter_20);
return addHeapObject(ret);

@@ -792,0 +932,0 @@ };

{
"name": "@rhcp/mimir_transforms_web",
"type": "module",
"collaborators": [

@@ -7,3 +8,3 @@ "Michael Clayton <mclayton@redhat.com>"

"description": "A WebAssembly build of Mimir transforms, suitable for use in Nodejs and browsers.",
"version": "0.6.0",
"version": "0.6.1",
"license": "MIT",

@@ -15,3 +16,3 @@ "files": [

],
"module": "mimir_transforms.js",
"main": "mimir_transforms.js",
"types": "mimir_transforms.d.ts",

@@ -18,0 +19,0 @@ "sideEffects": [

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