Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@thi.ng/wasm-api

Package Overview
Dependencies
Maintainers
1
Versions
132
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@thi.ng/wasm-api - npm Package Compare versions

Comparing version 0.17.0 to 0.17.1

10

CHANGELOG.md
# Change Log
- **Last updated**: 2022-10-29T20:34:04Z
- **Last updated**: 2022-10-30T12:26:06Z
- **Generator**: [thi.ng/monopub](https://thi.ng/monopub)

@@ -12,2 +12,10 @@

### [0.17.1](https://github.com/thi-ng/umbrella/tree/@thi.ng/wasm-api@0.17.1) (2022-10-30)
#### ♻️ Refactoring
- update zig codegen to ignore uppercase enum config ([3258f91](https://github.com/thi-ng/umbrella/commit/3258f91))
- idiomatic zig enums are lowercase
- update config docs
## [0.17.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/wasm-api@0.17.0) (2022-10-29)

@@ -14,0 +22,0 @@

6

codegen/zig.js
import { isNumber } from "@thi.ng/checks";
import { isString } from "@thi.ng/checks/is-string";
import { unsupported } from "@thi.ng/errors/unsupported";
import { defaultValue, ensureLines, enumName, isPadding, isStringSlice, isWasmString, prefixLines, withIndentation, } from "./utils.js";
import { defaultValue, ensureLines, isPadding, isStringSlice, isWasmString, prefixLines, withIndentation, } from "./utils.js";
/**

@@ -31,3 +31,3 @@ * Zig code generator. Call with options and then pass to {@link generateTypes}

v.doc && gen.doc(v.doc, lines, opts);
line = enumName(opts, v.name);
line = v.name;
if (v.value != null)

@@ -37,3 +37,3 @@ line += ` = ${v.value}`;

else {
line = enumName(opts, v);
line = v;
}

@@ -40,0 +40,0 @@ lines.push(line + ",");

{
"name": "@thi.ng/wasm-api",
"version": "0.17.0",
"version": "0.17.1",
"description": "Generic, modular, extensible API bridge, polyglot glue code and bindings code generators for hybrid JS & WebAssembly projects",

@@ -144,3 +144,3 @@ "type": "module",

},
"gitHead": "0402675247b1c312e4dd3d9bc6c01af5cc837c5d\n"
"gitHead": "78682fcd936495fefa1345db5a8dfd709eace2c8\n"
}
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