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

@superfaceai/one-sdk

Package Overview
Dependencies
Maintainers
3
Versions
135
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.12 to 3.0.0-alpha.13

7

cloudflare/index.js

@@ -187,8 +187,7 @@ import { WASI } from '@cloudflare/workers-wasi';

}
// TODO: update to use batch endpoint when new brain is released
await Promise.all(events.map(event => fetch(this.insightsUrl, {
await fetch(`${this.insightsUrl}/batch`, {
method: 'POST',
body: event,
body: '[' + events.join(',') + ']',
headers
})));
});
}

@@ -195,0 +194,0 @@ async persistDeveloperDump(events) {

@@ -129,22 +129,7 @@ import fs from 'node:fs/promises';

}
// TODO: update to use batch endpoint when new brain is released
// await fetch(
// `${this.insightsUrl}/batch`,
// {
// method: 'POST',
// body: '[' + events.join(',') + ']',
// headers
// }
// ).then(res => console.trace(res));
await Promise.all(events.map(event => fetch(this.insightsUrl, {
await fetch(`${this.insightsUrl}/batch`, {
method: 'POST',
body: event,
body: '[' + events.join(',') + ']',
headers
})
// .then(res => res.text().then(body => {
// const headers: [string, string][] = [];
// res.headers.forEach((value, key) => headers.push([key, value]));
// console.trace(res, headers, body);
// }))
));
});
}

@@ -151,0 +136,0 @@ async persistDeveloperDump(events) {

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

@@ -5,0 +5,0 @@ "type": "module",

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