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

@fastly/js-compute

Package Overview
Dependencies
Maintainers
5
Versions
130
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@fastly/js-compute - npm Package Compare versions

Comparing version 1.0.1 to 1.1.0

js-compute-runtime-component.wasm

14

CHANGELOG.md
# Changelog
## [1.1.0](https://github.com/fastly/js-compute-runtime/compare/v1.0.1...v1.1.0) (2023-01-06)
### Features
* add crypto.randomUUID function ([2c32b42](https://github.com/fastly/js-compute-runtime/commit/2c32b42d29a1cd2de961a0cef175b96eaab4ae7d))
### Bug Fixes
* check that setTimeout/setInterval handler is an object before casting to an object ([62476f5](https://github.com/fastly/js-compute-runtime/commit/62476f5324425c4f4a12ebf4f8ceddb093b753de))
* ensure retrieving the property definitions of ObjectStoreEntry.prototype.body and ObjectStoreEntry.bodyUsed do not cause panics by ensuring we have a valid entry in their Slots ([311b84c](https://github.com/fastly/js-compute-runtime/commit/311b84c80cbc99cf534ed43f4499a291716068fd))
* error message is latin1, we need to use JS_ReportErrorLatin1 to convert the message from latin1 to UTF8CharsZ, otherwise a panic occurs ([f1a22a4](https://github.com/fastly/js-compute-runtime/commit/f1a22a42c75aea99f47f5f6b44920275735c91e1))
## [1.0.1](https://github.com/fastly/js-compute-runtime/compare/v1.0.0...v1.0.1) (2022-12-16)

@@ -4,0 +18,0 @@

6

js-compute-runtime-cli.js

@@ -7,3 +7,3 @@ #!/usr/bin/env node

const {wasmEngine, input, output, version, help} = await parseInputs(process.argv.slice(2))
const {wasmEngine, input, component, output, version, help} = await parseInputs(process.argv.slice(2))

@@ -23,2 +23,6 @@ if (version) {

await compileApplicationToWasm(input, output, wasmEngine);
if (component) {
const {compileComponent} = await import('./src/component.js');
await compileComponent(output);
}
}

14

package.json
{
"name": "@fastly/js-compute",
"version": "1.0.1",
"version": "1.1.0",
"engines": {

@@ -22,3 +22,4 @@ "node": "16 - 18",

"js-compute-runtime-cli.js",
"js-compute-runtime.wasm",
"*.wasm",
"xqd.wit",
"src",

@@ -34,5 +35,3 @@ "index.d.ts",

"test:types": "tsd",
"docs": "patch-package && npm run docs:typedoc",
"docs:typedoc": "typedoc",
"build": "make -j8 -C ./c-dependencies/js-compute-runtime && cp ./c-dependencies/js-compute-runtime/js-compute-runtime.wasm ."
"build": "make -j8 -C c-dependencies/js-compute-runtime && cp c-dependencies/js-compute-runtime/*.wasm c-dependencies/js-compute-runtime/xqd.wit ."
},

@@ -44,7 +43,3 @@ "devDependencies": {

"get-bin-path": "^7.2.1",
"patch-package": "^6.5.0",
"tsd": "^0.25.0",
"typedoc": "^0.23",
"typedoc-plugin-mdn-links": "^2.0.0",
"typedoc-plugin-versions": "^0.2.2",
"typescript": "^4.9"

@@ -55,2 +50,3 @@ },

"esbuild": "^0.15.16",
"js-component-tools": "^0.2.2",
"tree-sitter": "^0.20.1",

@@ -57,0 +53,0 @@ "tree-sitter-javascript": "^0.19.0"

@@ -9,2 +9,3 @@ import { fileURLToPath } from "node:url";

let component = false;
let customEngineSet = false;

@@ -31,2 +32,7 @@ let wasmEngine = join(__dirname, "../js-compute-runtime.wasm");

}
case "--component": {
component = true;
wasmEngine = join(__dirname, "../js-compute-runtime-component.wasm");
break;
}
case "--engine-wasm": {

@@ -87,3 +93,3 @@ if (customEngineSet) {

}
return { wasmEngine, input, output };
return { wasmEngine, component, input, output };
}

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