Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

cuprum

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cuprum - npm Package Compare versions

Comparing version 0.1.13 to 0.1.14

2

dist/bundle.common.min.js
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});
/**!
@preserve cuprum 0.1.13
@preserve cuprum 0.1.14
@copyright 2020 Edwin Martin <edwin@bitstorm.org>

@@ -5,0 +5,0 @@ @license MIT

/**!
@preserve cuprum 0.1.13
@preserve cuprum 0.1.14
@copyright 2020 Edwin Martin <edwin@bitstorm.org>

@@ -4,0 +4,0 @@ @license MIT

/**!
@preserve cuprum 0.1.13
@preserve cuprum 0.1.14
@copyright 2020 Edwin Martin <edwin@bitstorm.org>

@@ -27,2 +27,4 @@ @license MIT

}
export declare function fromEvent<K extends keyof WindowEventMap>(element: Window, eventType: K, options?: boolean | AddEventListenerOptions): Cuprum<WindowEventMap[K]>;
export declare function fromEvent<K extends keyof DocumentEventMap>(element: Document, eventType: K, options?: boolean | AddEventListenerOptions): Cuprum<DocumentEventMap[K]>;
export declare function fromEvent<K extends keyof HTMLElementEventMap>(element: HTMLElement, eventType: K, options?: boolean | AddEventListenerOptions): Cuprum<HTMLElementEventMap[K]>;

@@ -29,0 +31,0 @@ export declare function combine<T>(obs1$: Observable<T>): Observable<[T]>;

{
"name": "cuprum",
"version": "0.1.13",
"description": "Tiny state management library",
"main": "dist/bundle.common.min.js",
"module": "dist/bundle.min.js",
"types": "dist/cuprum.d.ts",
"sideEffects": false,
"scripts": {
"start": "http-server -o demo/ --silent",
"build": "rollup --config --sourcemap",
"dev": "rollup --config --sourcemap --watch",
"release": "npm i --package-lock && npm test && npm run build && npm publish",
"test": "karma start",
"lint": "npx eslint . --ext .js,.ts"
},
"repository": {
"type": "git",
"url": "git+https://github.com/edwinm/cuprum.git"
},
"files": [
"src/cuprum.ts",
"dist/cuprum.d.ts",
"dist/bundle.min.js",
"dist/bundle.min.js.map",
"dist/bundle.common.min.js",
"dist/bundle.common.min.js.map"
],
"author": {
"name": "Edwin Martin",
"email": "edwin@bitstorm.org",
"url": "https://bitstorm.org/"
},
"license": "MIT",
"bugs": {
"url": "https://github.com/edwinm/cuprum/issues"
},
"homepage": "https://github.com/edwinm/cuprum#readme",
"dependencies": {},
"devDependencies": {
"@types/mocha": "^7.0.2",
"@types/node": "^14.0.4",
"@typescript-eslint/eslint-plugin": "^3.0.2",
"@typescript-eslint/parser": "^3.0.2",
"eslint": "^7.1.0",
"eslint-config-prettier": "^6.11.0",
"http-server": "^0.12.3",
"husky": "^4.2.5",
"karma": "^5.0.9",
"karma-chai": "^0.1.0",
"karma-chrome-launcher": "^3.1.0",
"karma-coverage": "^2.0.2",
"karma-mocha": "^2.0.1",
"karma-typescript": "^5.0.3",
"mocha": "^7.2.0",
"prettier": "^2.0.5",
"pretty-quick": "^2.0.1",
"rollup": "^2.10.2",
"rollup-plugin-terser": "^5.3.0",
"rollup-plugin-typescript2": "^0.27.1",
"tslib": "^2.0.0",
"typescript": "^3.9.2"
},
"husky": {
"hooks": {
"pre-commit": "pretty-quick --staged"
"name": "cuprum",
"version": "0.1.14",
"description": "Tiny state management library",
"main": "dist/bundle.common.min.js",
"module": "dist/bundle.min.js",
"types": "dist/cuprum.d.ts",
"sideEffects": false,
"scripts": {
"start": "http-server -o demo/ --silent",
"build": "rollup --config --sourcemap",
"dev": "rollup --config --sourcemap --watch",
"release": "npm i --package-lock && npm test && npm run build && npm publish",
"test": "karma start",
"lint": "npx eslint . --ext .js,.ts"
},
"repository": {
"type": "git",
"url": "git+https://github.com/edwinm/cuprum.git"
},
"files": [
"src/cuprum.ts",
"dist/cuprum.d.ts",
"dist/bundle.min.js",
"dist/bundle.min.js.map",
"dist/bundle.common.min.js",
"dist/bundle.common.min.js.map"
],
"author": {
"name": "Edwin Martin",
"email": "edwin@bitstorm.org",
"url": "https://bitstorm.org/"
},
"license": "MIT",
"bugs": {
"url": "https://github.com/edwinm/cuprum/issues"
},
"homepage": "https://github.com/edwinm/cuprum#readme",
"dependencies": {},
"devDependencies": {
"@types/mocha": "^7.0.2",
"@types/node": "^14.0.4",
"@typescript-eslint/eslint-plugin": "^3.0.2",
"@typescript-eslint/parser": "^3.0.2",
"eslint": "^7.1.0",
"eslint-config-prettier": "^6.11.0",
"http-server": "^0.12.3",
"husky": "^4.2.5",
"karma": "^5.0.9",
"karma-chai": "^0.1.0",
"karma-chrome-launcher": "^3.1.0",
"karma-coverage": "^2.0.2",
"karma-mocha": "^2.0.1",
"karma-typescript": "^5.0.3",
"mocha": "^7.2.0",
"prettier": "^2.0.5",
"pretty-quick": "^2.0.1",
"rollup": "^2.10.2",
"rollup-plugin-terser": "^5.3.0",
"rollup-plugin-typescript2": "^0.27.1",
"tslib": "^2.0.0",
"typescript": "^3.9.2"
},
"husky": {
"hooks": {
"pre-commit": "pretty-quick --staged"
}
}
}
}
/**!
@preserve cuprum 0.1.13
@preserve cuprum 0.1.14
@copyright 2020 Edwin Martin <edwin@bitstorm.org>

@@ -126,9 +126,33 @@ @license MIT

export function fromEvent<K extends keyof HTMLElementEventMap>(
export function fromEvent<
K extends keyof WindowEventMap
>(
element: Window,
eventType: K,
options?: boolean | AddEventListenerOptions
): Cuprum<WindowEventMap[K]>;
export function fromEvent<
K extends keyof DocumentEventMap
>(
element: Document,
eventType: K,
options?: boolean | AddEventListenerOptions
): Cuprum<DocumentEventMap[K]>;
export function fromEvent<
K extends keyof HTMLElementEventMap
>(
element: HTMLElement,
eventType: K,
options?: boolean | AddEventListenerOptions
): Cuprum<HTMLElementEventMap[K]> {
const obs$ = new Cuprum<HTMLElementEventMap[K]>();
const dispatch = (evt: HTMLElementEventMap[K]) => {
): Cuprum<HTMLElementEventMap[K]>;
export function fromEvent(
element: HTMLElement | Document | Window,
eventType: string,
options?: boolean | AddEventListenerOptions
) {
const obs$ = new Cuprum();
const dispatch = (evt: unknown) => {
obs$.dispatch(evt);

@@ -135,0 +159,0 @@ };

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