@nanostores/angular
Advanced tools
Comparing version 0.0.1 to 0.0.2
{ | ||
"name": "@nanostores/angular", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "Angular integration for Nano Stores, a tiny state manager with many atomic tree-shakable stores", | ||
@@ -9,2 +9,6 @@ "license": "MIT", | ||
}, | ||
"scripts": { | ||
"prepublishOnly": "rm -rf ./package && clean-publish", | ||
"postpublish": "rm -rf ./package" | ||
}, | ||
"clean-publish": { | ||
@@ -30,25 +34,5 @@ "withoutPublish": true, | ||
}, | ||
"module": "fesm2015/nanostores-angular.mjs", | ||
"es2020": "fesm2020/nanostores-angular.mjs", | ||
"esm2020": "esm2020/nanostores-angular.mjs", | ||
"fesm2020": "fesm2020/nanostores-angular.mjs", | ||
"fesm2015": "fesm2015/nanostores-angular.mjs", | ||
"typings": "nanostores-angular.d.ts", | ||
"exports": { | ||
"./package.json": { | ||
"default": "./package.json" | ||
}, | ||
".": { | ||
"types": "./nanostores-angular.d.ts", | ||
"esm2020": "./esm2020/nanostores-angular.mjs", | ||
"es2020": "./fesm2020/nanostores-angular.mjs", | ||
"es2015": "./fesm2015/nanostores-angular.mjs", | ||
"node": "./fesm2015/nanostores-angular.mjs", | ||
"default": "./fesm2020/nanostores-angular.mjs" | ||
} | ||
}, | ||
"sideEffects": false, | ||
"dependencies": { | ||
"tslib": "^2.3.0" | ||
"devDependencies": { | ||
"clean-publish": "^4.1.1" | ||
} | ||
} |
@@ -41,3 +41,3 @@ # Nano Stores Angular | ||
currentUser$: Observable<IUser> = this.nanostores.useStore(profile) | ||
.pipe(switchMap(userId => this.nanostores.useStore(User(userId)))); | ||
.pipe(switchMap(({ userId }) => this.nanostores.useStore(User(userId)))); | ||
@@ -68,3 +68,3 @@ constructor(private nanostores: NanostoresService) { } | ||
this.nanostores.useStore(profile).pipe( | ||
switchMap((userId: string) => this.nanostores.useStore(User(userId))) | ||
switchMap(({ userId }) => this.nanostores.useStore(User(userId))) | ||
) | ||
@@ -71,0 +71,0 @@ .subscribe(user => this.text = `User name is ${user.name}`); |
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
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
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
3
24
370
16920
1
1
- Removedtslib@^2.3.0