Socket
Socket
Sign inDemoInstall

@effection/core

Package Overview
Dependencies
Maintainers
1
Versions
83
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@effection/core - npm Package Compare versions

Comparing version 2.0.0-beta.16 to 2.0.0-beta.17

5

CHANGELOG.md
# @effection/core
## \[2.0.0-beta.17]
- Yielding to something which is not an operation no longer throws an internal error, but properly rejects the task.
- [a3ad19a](https://github.com/thefrontside/effection/commit/a3ad19a3177a731fee5cd2389ab898dee7b1788e) Fix yielding non operation bug on 2021-10-07
## \[2.0.0-beta.16]

@@ -4,0 +9,0 @@

5

dist-cjs/controller/controller.js

@@ -11,2 +11,3 @@ "use strict";

const resource_controller_1 = require("./resource-controller");
const future_1 = require("../future");
function createController(task, operation, options) {

@@ -31,5 +32,7 @@ if (typeof (operation) === 'function') {

}
throw new Error(`unkown type of operation: ${operation}`);
else {
return future_controller_1.createFutureController(task, future_1.Future.reject(new Error(`unkown type of operation: ${operation}`)));
}
}
exports.createController = createController;
//# sourceMappingURL=controller.js.map

@@ -8,2 +8,3 @@ import { isResource, isFuture, isPromise, isGenerator } from '../predicates';

import { createResourceController } from './resource-controller';
import { Future } from '../future';
export function createController(task, operation, options) {

@@ -28,4 +29,6 @@ if (typeof (operation) === 'function') {

}
throw new Error(`unkown type of operation: ${operation}`);
else {
return createFutureController(task, Future.reject(new Error(`unkown type of operation: ${operation}`)));
}
}
//# sourceMappingURL=controller.js.map

2

package.json
{
"name": "@effection/core",
"version": "2.0.0-beta.16",
"version": "2.0.0-beta.17",
"main": "dist-cjs/index.js",

@@ -5,0 +5,0 @@ "module": "dist-esm/index.js",

# @effection/core
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
[![Created by Frontside](https://img.shields.io/badge/created%20by-frontside-26abe8.svg)](https://frontside.com)
[![Chat on Discord](https://img.shields.io/discord/700803887132704931?Label=Discord)](https://discord.gg/Ug5nWH8)
[Effection
[Effection][] is the structured concurrency toolkit for JavaScript. You can
check out the [getting started guide](https://frontside.com/effection/docs/guides/introduction)
for an introduction.
[Effection]: https://frontside.com/effection

@@ -40,5 +40,5 @@ import type { Task } from '../task';

return createIteratorController(task, operation, options);
} else {
return createFutureController(task, Future.reject(new Error(`unkown type of operation: ${operation}`)));
}
throw new Error(`unkown type of operation: ${operation}`);
}

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