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

@superfaceai/one-sdk

Package Overview
Dependencies
Maintainers
3
Versions
138
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@superfaceai/one-sdk - npm Package Compare versions

Comparing version 3.0.0-alpha.8 to 3.0.0-alpha.9

11

common/app.js

@@ -133,6 +133,6 @@ import { Asyncify } from './asyncify.js';

asyncify,
setupFn: this.wrapExport(asyncify.wrapExport(instance.exports['superface_core_setup'])),
teardownFn: this.wrapExport(asyncify.wrapExport(instance.exports['superface_core_teardown'])),
performFn: this.wrapExport(asyncify.wrapExport(instance.exports['superface_core_perform'])),
sendMetricsFn: this.wrapExport(asyncify.wrapExport(instance.exports['superface_core_send_metrics']))
setupFn: this.wrapExport(asyncify.wrapExport(instance.exports['oneclient_core_setup'])),
teardownFn: this.wrapExport(asyncify.wrapExport(instance.exports['oneclient_core_teardown'])),
performFn: this.wrapExport(asyncify.wrapExport(instance.exports['oneclient_core_perform'])),
sendMetricsFn: this.wrapExport(asyncify.wrapExport(instance.exports['oneclient_core_send_metrics']))
});

@@ -281,2 +281,5 @@ return this.core.withLock(core => core.setupFn());

// TODO: get metrics from core
// call tearndown which will detect that a panic has happened and attempt to dump developer log
// TODO: should this be under teardown or should we introduce a new function?
await this.core.unsafeValue.teardownFn().catch(_ => undefined);
// unsetting core, we can't ensure memory integrity

@@ -283,0 +286,0 @@ this.core = undefined;

@@ -20,3 +20,3 @@ export class BaseError extends Error {

constructor() {
super('Uninitialized', "SuperfaceClient isn't initialized.");
super('Uninitialized', "OneClient isn't initialized.");
}

@@ -23,0 +23,0 @@ }

{
"name": "@superfaceai/one-sdk",
"version": "3.0.0-alpha.8",
"version": "3.0.0-alpha.9",
"main": "node/index.js",

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

"build": "yarn clean && tsc -p tsconfig.json",
"test": "CORE_PATH=./assets/core-async.wasm SF_LOG=trace node --no-warnings --experimental-wasi-unstable-preview1 --experimental-vm-modules node_modules/.bin/jest"
"test": "CORE_PATH=./assets/core-async.wasm ONESDK_LOG=trace node --no-warnings --experimental-wasi-unstable-preview1 --experimental-vm-modules node_modules/.bin/jest"
},

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

@@ -133,3 +133,3 @@ [Website](https://superface.ai) | [Get Started](https://superface.ai/docs/getting-started) | [Documentation](https://superface.ai/docs) | [Discord](https://sfc.is/discord) | [Twitter](https://twitter.com/superfaceai) | [Support](https://superface.ai/support)

env: {
SF_LOG: 'info' // use `debug` or `trace` for development debugging
ONESDK_LOG: 'info' // use `debug` or `trace` for development debugging
},

@@ -136,0 +136,0 @@ // preopens describes the virtual filesystem whith the OneClient file convention mapped to assets

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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