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

alan-js-runtime

Package Overview
Dependencies
Maintainers
3
Versions
43
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

alan-js-runtime - npm Package Compare versions

Comparing version 0.1.43 to 0.1.44

47

index.js

@@ -1054,2 +1054,49 @@ require('cross-fetch/polyfill')

},
dsrrun: async (nskey, func) => {
const val = ds[`${nskey[0]}:${nskey[1]}`];
return [true, await func(val)];
},
dsmrun: async (nskey, func) => {
let val = ds[`${nskey[0]}:${nskey[1]}`];
const [out, newval] = await func(val);
ds[`${nskey[0]}:${nskey[1]}`] = newval;
return [true, out];
},
dsrwith: async (wth, func) => {
const nskey = wth[0];
const a = wth[1];
const b = ds[`${nskey[0]}:${nskey[1]}`];
return [true, await func(b, a)];
},
dsmwith: async (wth, func) => {
const nskey = wth[0];
const a = wth[1];
let b = ds[`${nskey[0]}:${nskey[1]}`];
// Get out, newb!
const [out, newb] = await func(b, a);
ds[`${nskey[0]}:${nskey[1]}`] = newb;
return [true, out];
},
dsmonly: async (nskey, func) => {
let val = ds[`${nskey[0]}:${nskey[1]}`];
const newval = await func(val);
ds[`${nskey[0]}:${nskey[1]}`] = newval;
},
dswonly: async (wth, func) => {
const nskey = wth[0];
const a = wth[1];
const b = ds[`${nskey[0]}:${nskey[1]}`];
const newb = await func(b, a);
ds[`${nskey[0]}:${nskey[1]}`] = newb;
},
dsrclos: async (nskey, func) => {
const val = ds[`${nskey[0]}:${nskey[1]}`];
return [true, await func(val)];
},
dsmclos: async (nskey, func) => {
let val = ds[`${nskey[0]}:${nskey[1]}`];
const [out, newval] = await func(val);
ds[`${nskey[0]}:${nskey[1]}`] = newval;
return [true, out];
},
getcs: () => [false],

@@ -1056,0 +1103,0 @@ newseq: (limit) => [0n, limit],

2

package.json
{
"name": "alan-js-runtime",
"version": "0.1.43",
"version": "0.1.44",
"description": "The runtime component for alan-js. Separately licensed from the compiler.",

@@ -5,0 +5,0 @@ "main": "index.js",

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