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

@effection/events

Package Overview
Dependencies
Maintainers
1
Versions
158
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@effection/events - npm Package Compare versions

Comparing version 0.6.1 to 0.7.0-3763fbf

dist/events.cjs.development.js

31

CHANGELOG.md
# Changelog
## 0.7.0
### Minor Changes
- 70ac8e3: create the `@effection/subscription` package with the
`createSubscription` operation.
Refactor `on()` operation from `@effection/events` to use
createSubscription()
### Patch Changes
- 60ed704: ## Fix sourcemaps and types entrypoint
We saw strange errors while installing Effection from BigTest. One of the problems was that sourcemaps were not working. This was happening because sourcemaps referenced ts file which were not being included in the package.
https://github.com/thefrontside/effection/pull/119
## Distribute node packages without transpiling generators
We made a decision to ship generators in our distribution bundles because IE11 compatibility is not important to us. It's surprisingly difficult to get this to work. We tried using microbundle but that turned out to be even more complicated because their [modern and cjs formats have mutually conflicting configuration](https://github.com/developit/microbundle/issues/618).
https://github.com/thefrontside/effection/pull/120
- Updated dependencies [60ed704]
- effection@0.6.3
All notable changes to this project will be documented in this file.

@@ -14,3 +41,3 @@

* Event dispatch of `once` is asynchronous, to avoid problems with
- Event dispatch of `once` is asynchronous, to avoid problems with
misbehaving event emitters.

@@ -21,3 +48,3 @@ https://github.com/thefrontside/effection.js/pull/107

* EventSource type is exported.
- EventSource type is exported.
https://github.com/thefrontside/effection/pull/102

@@ -0,0 +0,0 @@ /// <reference types="node" />

2

dist/index.d.ts
export { once } from './once';
export { on, Subscription } from './on';
export { on } from './on';
export { throwOnErrorEvent } from './throw-on-error-event';
export { EventSource } from './event-source';

@@ -1,10 +0,8 @@

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var once_1 = require("./once");
exports.once = once_1.once;
var on_1 = require("./on");
exports.on = on_1.on;
exports.Subscription = on_1.Subscription;
var throw_on_error_event_1 = require("./throw-on-error-event");
exports.throwOnErrorEvent = throw_on_error_event_1.throwOnErrorEvent;
//# sourceMappingURL=index.js.map
'use strict'
if (process.env.NODE_ENV === 'production') {
module.exports = require('./events.cjs.production.min.js')
} else {
module.exports = require('./events.cjs.development.js')
}

@@ -1,11 +0,3 @@

import { Operation } from 'effection';
/// <reference types="effection" />
import { EventSource } from './event-source';
export declare class Subscription<T extends Array<unknown>> {
private source;
private eventName;
private events;
constructor(source: EventSource, eventName: string);
next(): Operation<T>;
subscribe(): Operation<void>;
}
export declare function on<T extends Array<unknown> = unknown[]>(source: EventSource, name: string): Operation<Subscription<T>>;
export declare function on<T extends Array<unknown> = unknown[]>(source: EventSource, name: string): import("effection").Operation<import("@effection/subscription").Subscription<T, void>>;

@@ -0,0 +0,0 @@ import { Operation } from 'effection';

import { EventSource } from './event-source';
import { Operation } from 'effection';
export declare function throwOnErrorEvent(source: EventSource): Operation<void>;
{
"name": "@effection/events",
"version": "0.6.1",
"version": "0.7.0-3763fbf",
"description": "Helpers for listening to events with effection",
"main": "dist/index.js",
"typings": "dist/index.d.js",
"types": "dist/index.d.ts",
"module": "dist/events.esm.js",
"repository": "https://github.com/thefrontside/bigtest.git",

@@ -12,2 +13,3 @@ "author": "Frontside Engineering <engineering@frontside.io>",

"dist/*",
"src",
"README.md"

@@ -18,6 +20,7 @@ ],

"test": "mocha -r ts-node/register test/**/*.test.ts",
"prepack": "tsc --outdir dist --project tsconfig.dist.json --declaration --sourcemap --module commonjs",
"prepack": "tsdx build --tsconfig tsconfig.dist.json",
"mocha": "mocha -r ts-node/register"
},
"devDependencies": {
"@frontside/tsconfig": "0.0.1",
"@types/node": "^12.7.11",

@@ -27,6 +30,7 @@ "expect": "^25.4.0",

"ts-node": "^8.9.0",
"tsdx": "0.13.2",
"typescript": "^3.7.0"
},
"peerDependencies": {
"effection": "^0.6.0"
"effection": "^0.6.3"
},

@@ -33,0 +37,0 @@ "volta": {

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