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

@yume-chan/async-operation-manager

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@yume-chan/async-operation-manager - npm Package Compare versions

Comparing version 2.1.0 to 2.1.1

cjs/index.js

4

CHANGELOG.md

@@ -0,1 +1,5 @@

# 2.1.1
* Add ESModule output.
# 2.1.0

@@ -2,0 +6,0 @@

47

package.json
{
"name": "@yume-chan/async-operation-manager",
"version": "2.1.0",
"version": "2.1.1",
"description": "Utilities to manage RPC operations.",
"keywords": [
"RPC"
],
"license": "MIT",
"author": {
"name": "Simon Chan",
"email": "cnsimonchan@live.com",
"url": "https://chensi.moe/blog"
},
"homepage": "https://github.com/yume-chan/typescript-package-scaffold#readme",
"repository": {
"type": "git",
"url": "git+https://github.com/yume-chan/typescript-package-scaffold.git"
},
"bugs": {
"url": "https://github.com/yume-chan/typescript-package-scaffold/issues"
},
"main": "lib/index.js",
"types": "lib/index.d.ts",
"directories": {
"test": "test"
},
"module": "esm/index.js",
"types": "dts/index.d.ts",
"scripts": {
"build": "tsc",
"build": "node scripts/build",
"test": "jest",

@@ -16,21 +31,11 @@ "coverage": "jest --coverage",

},
"repository": {
"type": "git",
"url": "git+https://github.com/yume-chan/async-operation-manager.git"
"dependencies": {
"tslib": "2.0.3"
},
"keywords": [
"async"
],
"author": "Simon Chan",
"license": "MIT",
"bugs": {
"url": "https://github.com/yume-chan/async-operation-manager/issues"
},
"homepage": "https://github.com/yume-chan/async-operation-manager#readme",
"devDependencies": {
"@types/jest": "26.0.7",
"jest": "26.1.0",
"@types/jest": "26.0.14",
"jest": "26.6.0",
"ts-jest": "26.1.4",
"typescript": "4.0.2"
"typescript": "4.0.3"
}
}

@@ -0,0 +0,0 @@ # Async Operation Manager

@@ -1,31 +0,3 @@

export type PromiseResolverState = 'running' | 'resolved' | 'rejected';
import { PromiseResolver } from './promise-resolver';
export class PromiseResolver<T>{
private _promise: Promise<T>;
public get promise(): Promise<T> { return this._promise; }
private _resolve!: (value: T | PromiseLike<T>) => void;
private _reject!: (reason?: any) => void;
private _state: PromiseResolverState = 'running';
public get state(): PromiseResolverState { return this._state; }
public constructor() {
this._promise = new Promise<T>((resolve, reject) => {
this._resolve = resolve;
this._reject = reject;
});
}
public resolve(value: T | PromiseLike<T>): void {
this._resolve(value);
this._state = 'resolved';
}
public reject(reason?: any): void {
this._reject(reason);
this._state = 'rejected';
}
}
export default class AsyncOperationManager {

@@ -75,1 +47,3 @@ private operationId: number;

}
export * from './promise-resolver';

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