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
3
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.3.1 to 0.4.0

27

mimir_transforms.d.ts

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

* Body text
* </div>"#
* </div>
* ```

@@ -81,2 +81,26 @@ *

/**
* Update an HTML string to use the `<rh-code-block>` component instead of `<pre>`.
*
* Before:
*
* ```html
* <pre>
* #define PI 3.14
* </pre>
* ```
*
* After:
*
* ```html
* <rh-code-block>
* <script type=text/plain>
* #define PI 3.14
* </script>
* </rh-code-block>
* ```
* @param {string} input
* @returns {string}
*/
export function codeTransform(input: string): string;
/**
* Handler for `console.log` invocations.

@@ -161,2 +185,3 @@ *

readonly admonish: (a: number, b: number, c: number) => void;
readonly codeTransform: (a: number, b: number, c: number) => void;
readonly __wbg_wasmbindgentestcontext_free: (a: number) => void;

@@ -163,0 +188,0 @@ readonly wasmbindgentestcontext_new: () => number;

@@ -279,3 +279,3 @@ let wasm;

* Body text
* </div>"#
* </div>
* ```

@@ -313,2 +313,44 @@ *

/**
* Update an HTML string to use the `<rh-code-block>` component instead of `<pre>`.
*
* Before:
*
* ```html
* <pre>
* #define PI 3.14
* </pre>
* ```
*
* After:
*
* ```html
* <rh-code-block>
* <script type=text/plain>
* #define PI 3.14
* </script>
* </rh-code-block>
* ```
* @param {string} input
* @returns {string}
*/
export function codeTransform(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.codeTransform(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;

@@ -405,3 +447,3 @@

function __wbg_adapter_64(arg0, arg1, arg2, arg3, arg4) {
function __wbg_adapter_65(arg0, arg1, arg2, arg3, arg4) {
wasm.wasm_bindgen__convert__closures__invoke3_mut__h380a4c81d201a2cb(arg0, arg1, addHeapObject(arg2), arg3, addHeapObject(arg4));

@@ -417,3 +459,3 @@ }

}
function __wbg_adapter_77(arg0, arg1, arg2, arg3) {
function __wbg_adapter_78(arg0, arg1, arg2, arg3) {
wasm.wasm_bindgen__convert__closures__invoke2_mut__hb8d99a65e6a8ce07(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));

@@ -678,3 +720,3 @@ }

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

@@ -708,3 +750,3 @@ state0.a = a;

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

@@ -731,3 +773,3 @@ state0.a = a;

};
imports.wbg.__wbindgen_closure_wrapper175 = function(arg0, arg1, arg2) {
imports.wbg.__wbindgen_closure_wrapper177 = function(arg0, arg1, arg2) {
const ret = makeMutClosure(arg0, arg1, 63, __wbg_adapter_18);

@@ -734,0 +776,0 @@ return addHeapObject(ret);

2

package.json

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

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

@@ -10,0 +10,0 @@ "files": [

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