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

wonka

Package Overview
Dependencies
Maintainers
1
Versions
85
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

wonka - npm Package Compare versions

Comparing version

to
0.0.0-canary-20230327135055

9

CHANGELOG.md
# wonka
## 0.0.0-canary-20230326035503
## 0.0.0-canary-20230327135055
### Patch Changes
- Convert `Push<T>` and `Start<T>` signals to `{ tag, 0: value }` objects, which are sufficiently backwards compatible and result in slightly faster execution in v8
Submitted by [@kitten](https://github.com/kitten) (See [#155](https://github.com/0no-co/wonka/pull/155))
## 6.2.6
### Patch Changes
- ⚠️ Fix missing source contents in Wonka sourcemaps

@@ -8,0 +15,0 @@ Submitted by [@kitten](https://github.com/kitten) (See [`56d9708`](https://github.com/0no-co/wonka/commit/56d970861424fddd403262bf85d7e1e3572b15e2))

14

dist/wonka.js

@@ -10,11 +10,13 @@ Object.defineProperty(exports, "__esModule", {

function start(e) {
var r = [ e ];
r.tag = 0;
return r;
return {
tag: 0,
0: e
};
}
function push(e) {
var r = [ e ];
r.tag = 1;
return r;
return {
tag: 1,
0: e
};
}

@@ -21,0 +23,0 @@

{
"name": "wonka",
"description": "A tiny but capable push & pull stream library for TypeScript and Flow",
"version": "0.0.0-canary-20230326035503",
"version": "0.0.0-canary-20230327135055",
"author": "0no.co <hi@0no.co>",

@@ -6,0 +6,0 @@ "source": "./src/index.ts",

@@ -27,5 +27,6 @@ import { TalkbackFn, TeardownFn, Start, Push, SignalKind } from './types';

export function start<T>(talkback: TalkbackFn): Start<T> {
const box: any = [talkback];
box.tag = SignalKind.Start;
return box;
return {
tag: SignalKind.Start,
0: talkback,
} as Start<T>;
}

@@ -37,5 +38,6 @@

export function push<T>(value: T): Push<T> {
const box: any = [value];
box.tag = SignalKind.Push;
return box;
return {
tag: SignalKind.Push,
0: value,
} as Push<T>;
}

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