@effection/events
Advanced tools
Comparing version 0.6.1-a8ad962 to 0.6.1-cf895b8
@@ -0,0 +0,0 @@ /// <reference types="node" /> |
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-a8ad962", | ||
"version": "0.6.1-cf895b8", | ||
"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,2 +30,3 @@ "expect": "^25.4.0", | ||
"ts-node": "^8.9.0", | ||
"tsdx": "0.13.2", | ||
"typescript": "^3.7.0" | ||
@@ -29,0 +33,0 @@ }, |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
22238
20
225
7
3
2
1