🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

libhanzzok

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

libhanzzok - npm Package Compare versions

Comparing version
0.1.2
to
0.1.3
+138
-0
libhanzzok_bg.js

@@ -49,2 +49,9 @@ import * as wasm from './libhanzzok_bg.wasm';

}
/**
* @returns {Plugin}
*/
export function math_plugin() {
var ret = wasm.math_plugin();
return Plugin.__wrap(ret);
}

@@ -71,2 +78,50 @@ function _assertClass(instance, klass) {

/**
* @returns {Plugin}
*/
export function icon_plugin() {
var ret = wasm.icon_plugin();
return Plugin.__wrap(ret);
}
/**
* @returns {Plugin}
*/
export function heading_plugin() {
var ret = wasm.heading_plugin();
return Plugin.__wrap(ret);
}
/**
* @returns {Plugin}
*/
export function list_plugin() {
var ret = wasm.list_plugin();
return Plugin.__wrap(ret);
}
/**
* @returns {Plugin}
*/
export function youtube_plugin() {
var ret = wasm.youtube_plugin();
return Plugin.__wrap(ret);
}
/**
* @returns {Plugin}
*/
export function emphasize_plugin() {
var ret = wasm.emphasize_plugin();
return Plugin.__wrap(ret);
}
/**
* @returns {Plugin}
*/
export function quotation_plugin() {
var ret = wasm.quotation_plugin();
return Plugin.__wrap(ret);
}
let WASM_VECTOR_LEN = 0;

@@ -188,2 +243,18 @@

/**
* @returns {Plugin}
*/
export function input_guide_plugin() {
var ret = wasm.input_guide_plugin();
return Plugin.__wrap(ret);
}
/**
* @returns {Plugin}
*/
export function link_plugin() {
var ret = wasm.link_plugin();
return Plugin.__wrap(ret);
}
/**
* @param {string} source

@@ -200,3 +271,14 @@ * @returns {HanzzokTokenized}

/**
* @returns {Plugin}
*/
export function code_plugin() {
var ret = wasm.code_plugin();
return Plugin.__wrap(ret);
}
/**
*/
export const BlockConstructorForm = Object.freeze({ Basic:0,"0":"Basic",Shortened:1,"1":"Shortened",Bookend:2,"2":"Bookend",Leading:3,"3":"Leading", });
/**
*/
export class BlockConstructorNode {

@@ -220,2 +302,9 @@

static __wrap(ptr) {
const obj = Object.create(Compiler.prototype);
obj.ptr = ptr;
return obj;
}
__destroy_into_raw() {

@@ -232,2 +321,21 @@ const ptr = this.ptr;

}
/**
* @returns {Compiler}
*/
static new() {
var ret = wasm.compiler_new();
return Compiler.__wrap(ret);
}
/**
* @param {Plugin} plugin
* @returns {Compiler}
*/
with(plugin) {
const ptr = this.__destroy_into_raw();
_assertClass(plugin, Plugin);
var ptr0 = plugin.ptr;
plugin.ptr = 0;
var ret = wasm.compiler_with(ptr, ptr0);
return Compiler.__wrap(ret);
}
}

@@ -379,2 +487,32 @@ /**

*/
export class Plugin {
static __wrap(ptr) {
const obj = Object.create(Plugin.prototype);
obj.ptr = ptr;
return obj;
}
__destroy_into_raw() {
const ptr = this.ptr;
this.ptr = 0;
return ptr;
}
free() {
const ptr = this.__destroy_into_raw();
wasm.__wbg_plugin_free(ptr);
}
/**
* @returns {Plugin}
*/
static new() {
var ret = wasm.plugin_new();
return Plugin.__wrap(ret);
}
}
/**
*/
export class TextNode {

@@ -381,0 +519,0 @@

/* tslint:disable */
/* eslint-disable */
/**
* @returns {Plugin}
*/
export function math_plugin(): Plugin;
/**
* @param {HanzzokTokenized} tokens

@@ -10,2 +14,26 @@ * @param {Compiler} compiler

/**
* @returns {Plugin}
*/
export function icon_plugin(): Plugin;
/**
* @returns {Plugin}
*/
export function heading_plugin(): Plugin;
/**
* @returns {Plugin}
*/
export function list_plugin(): Plugin;
/**
* @returns {Plugin}
*/
export function youtube_plugin(): Plugin;
/**
* @returns {Plugin}
*/
export function emphasize_plugin(): Plugin;
/**
* @returns {Plugin}
*/
export function quotation_plugin(): Plugin;
/**
* @param {string} s

@@ -28,2 +56,10 @@ * @returns {string}

/**
* @returns {Plugin}
*/
export function input_guide_plugin(): Plugin;
/**
* @returns {Plugin}
*/
export function link_plugin(): Plugin;
/**
* @param {string} source

@@ -34,3 +70,15 @@ * @returns {HanzzokTokenized}

/**
* @returns {Plugin}
*/
export function code_plugin(): Plugin;
/**
*/
export enum BlockConstructorForm {
Basic,
Shortened,
Bookend,
Leading,
}
/**
*/
export class BlockConstructorNode {

@@ -43,2 +91,11 @@ free(): void;

free(): void;
/**
* @returns {Compiler}
*/
static new(): Compiler;
/**
* @param {Plugin} plugin
* @returns {Compiler}
*/
with(plugin: Plugin): Compiler;
}

@@ -85,2 +142,11 @@ /**

*/
export class Plugin {
free(): void;
/**
* @returns {Plugin}
*/
static new(): Plugin;
}
/**
*/
export class TextNode {

@@ -87,0 +153,0 @@ free(): void;

+1
-1

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

"description": "Hanzzok compiler library",
"version": "0.1.2",
"version": "0.1.3",
"license": "MIT",

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

Sorry, the diff of this file is not supported yet