zen-observable-ts
Advanced tools
Comparing version 0.4.0 to 0.4.2
@@ -1,3 +0,1 @@ | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
//# sourceMappingURL=types.js.map |
@@ -1,3 +0,1 @@ | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
function cleanupSubscription(subscription) { | ||
@@ -75,3 +73,3 @@ var cleanup = subscription._cleanup; | ||
}()); | ||
exports.Subscription = Subscription; | ||
export { Subscription }; | ||
var SubscriptionObserver = (function () { | ||
@@ -147,3 +145,3 @@ function SubscriptionObserver(subscription) { | ||
}()); | ||
exports.SubscriptionObserver = SubscriptionObserver; | ||
export { SubscriptionObserver }; | ||
var Observable = (function () { | ||
@@ -400,3 +398,3 @@ function Observable(subscriber) { | ||
}()); | ||
exports.default = Observable; | ||
export default Observable; | ||
//# sourceMappingURL=zenObservable.js.map |
@@ -15,5 +15,6 @@ "use strict"; | ||
function closeSubscription(subscription) { | ||
if (subscriptionClosed(subscription)) { | ||
if (!subscription) | ||
return; | ||
} | ||
if (subscriptionClosed(subscription)) | ||
return; | ||
subscription._observer = undefined; | ||
@@ -20,0 +21,0 @@ cleanupSubscription(subscription); |
{ | ||
"name": "zen-observable-ts", | ||
"version": "0.4.0", | ||
"version": "0.4.2", | ||
"description": "An Implementation of ES Observables in Typescript", | ||
@@ -8,4 +8,6 @@ "author": "Evans Hauser <evanshauser@gmail.com>", | ||
"license": "MIT", | ||
"main": "./lib/zenObservable.js", | ||
"typings": "./lib/zenObservable.d.ts", | ||
"main": "./dist/src/bundle.umd.js", | ||
"module": "./dist/src/zenObservable.js", | ||
"jsnext:main": "./dist/src/zenObservable.js", | ||
"typings": "./dist/src/zenObservable.d.ts", | ||
"repository": { | ||
@@ -20,16 +22,23 @@ "type": "git", | ||
"scripts": { | ||
"pretest": "npm run build", | ||
"pretest": "npm run build-test", | ||
"test": "npm run test-only --", | ||
"posttest": "npm run lint", | ||
"test-only": "mocha --reporter spec --full-trace dist/tests/tests.js", | ||
"test-watch": "mocha --reporter spec --full-trace dist/tests/tests.js --watch", | ||
"coverage": "istanbul cover ./node_modules/.bin/_mocha -- --reporter dot --full-trace dist/tests/tests.js", | ||
"postcoverage": "remap-istanbul --input coverage/coverage.json --type lcovonly --output coverage/lcov.info", | ||
"lint": "tslint --type-check -p tsconfig.json src/*.ts && tslint --type-check -p tsconfig.json tests/*.ts", | ||
"test-watch": | ||
"mocha --reporter spec --full-trace dist/tests/tests.js --watch", | ||
"coverage": | ||
"istanbul cover ./node_modules/mocha/bin/_mocha -- --reporter dot --full-trace dist/tests/tests.js", | ||
"postcoverage": | ||
"remap-istanbul --input coverage/coverage.json --type lcovonly --output coverage/lcov.info", | ||
"lint": | ||
"tslint --type-check -p tsconfig.test.json src/*.ts && tslint --type-check -p tsconfig.test.json tests/*.ts", | ||
"prebuild": "npm run clean:dist", | ||
"build": "tsc -p .", | ||
"postbuild": "cp -R ./dist/src/. ./lib", | ||
"build-test": "tsc -p tsconfig.test.json", | ||
"postbuild": "npm run bundle", | ||
"postbuild-test": "npm run bundle", | ||
"bundle": "rollup -c", | ||
"watch": "tsc -w -p .", | ||
"clean": "npm run clean:dist && npm run clean:coverage", | ||
"clean:dist": "rimraf dist/* && rimraf lib/*", | ||
"clean:dist": "rimraf dist/*", | ||
"clean:coverage": "rimraf coverage/*", | ||
@@ -39,16 +48,17 @@ "prepublishOnly": "npm run clean && npm run build" | ||
"devDependencies": { | ||
"@types/chai": "^4.0.0", | ||
"@types/chai": "4.0.4", | ||
"@types/chai-as-promised": "0.0.31", | ||
"@types/mocha": "^2.2.31", | ||
"chai": "^4.0.2", | ||
"chai-as-promised": "^7.1.1", | ||
"istanbul": "^0.4.4", | ||
"mocha": "^3.2.0", | ||
"remap-istanbul": "^0.9.0", | ||
"rimraf": "^2.5.4", | ||
"sinon": "^2.3.4", | ||
"source-map-support": "^0.4.5", | ||
"tslint": "^5.0.0", | ||
"typescript": "^2.2.1" | ||
"@types/mocha": "2.2.42", | ||
"chai": "4.1.1", | ||
"chai-as-promised": "7.1.1", | ||
"istanbul": "0.4.5", | ||
"mocha": "3.5.0", | ||
"remap-istanbul": "0.9.5", | ||
"rimraf": "2.6.1", | ||
"rollup": "^0.45.2", | ||
"sinon": "3.2.0", | ||
"source-map-support": "0.4.16", | ||
"tslint": "5.7.0", | ||
"typescript": "2.5.1" | ||
} | ||
} |
{ | ||
"extends": "../../tsconfig", | ||
"compilerOptions": { | ||
"target": "es5", | ||
"lib": ["es6", "dom"], | ||
"module": "commonjs", | ||
"moduleResolution": "node", | ||
"removeComments": true, | ||
"sourceMap": true, | ||
"declaration": true, | ||
"rootDir": ".", | ||
"outDir": "dist", | ||
"noImplicitAny": true, | ||
"noUnusedParameters": false, | ||
"noUnusedLocals": true, | ||
"skipLibCheck": true | ||
"rootDir": "." | ||
}, | ||
"include": ["src/**/*.ts", "tests/**/*.ts"] | ||
"include": ["src/**/*.ts"] | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
106406
14
21
1890
1