@ngx-pwa/local-storage
Advanced tools
Comparing version 12.1.0 to 13.0.0-0
{ | ||
"name": "@ngx-pwa/local-storage", | ||
"version": "12.1.0", | ||
"version": "13.0.0-0", | ||
"funding": { | ||
@@ -17,4 +17,4 @@ "type": "github", | ||
"indexeddb", | ||
"angular12", | ||
"angular 12", | ||
"angular13", | ||
"angular 13", | ||
"rxjs" | ||
@@ -31,8 +31,8 @@ ], | ||
"dependencies": { | ||
"tslib": "^2.2.0" | ||
"tslib": "^2.3.0" | ||
}, | ||
"peerDependencies": { | ||
"@angular/common": "^12.0.0", | ||
"@angular/core": "^12.0.0", | ||
"rxjs": "^6.5.3 || ^7.0.0" | ||
"@angular/common": "^13.0.0", | ||
"@angular/core": "^13.0.0", | ||
"rxjs": "^6.5.3 || ^7.4.0" | ||
}, | ||
@@ -43,9 +43,22 @@ "schematics": "./schematics/collection.json", | ||
}, | ||
"main": "bundles/ngx-pwa-local-storage.umd.js", | ||
"module": "fesm2015/ngx-pwa-local-storage.js", | ||
"es2015": "fesm2015/ngx-pwa-local-storage.js", | ||
"esm2015": "esm2015/ngx-pwa-local-storage.js", | ||
"fesm2015": "fesm2015/ngx-pwa-local-storage.js", | ||
"module": "fesm2015/ngx-pwa-local-storage.mjs", | ||
"es2020": "fesm2020/ngx-pwa-local-storage.mjs", | ||
"esm2020": "esm2020/ngx-pwa-local-storage.mjs", | ||
"fesm2020": "fesm2020/ngx-pwa-local-storage.mjs", | ||
"fesm2015": "fesm2015/ngx-pwa-local-storage.mjs", | ||
"typings": "ngx-pwa-local-storage.d.ts", | ||
"exports": { | ||
"./package.json": { | ||
"default": "./package.json" | ||
}, | ||
".": { | ||
"types": "./ngx-pwa-local-storage.d.ts", | ||
"esm2020": "./esm2020/ngx-pwa-local-storage.mjs", | ||
"es2020": "./fesm2020/ngx-pwa-local-storage.mjs", | ||
"es2015": "./fesm2015/ngx-pwa-local-storage.mjs", | ||
"node": "./fesm2015/ngx-pwa-local-storage.mjs", | ||
"default": "./fesm2020/ngx-pwa-local-storage.mjs" | ||
} | ||
}, | ||
"sideEffects": false | ||
} |
@@ -9,3 +9,3 @@ "use strict"; | ||
/* Get config */ | ||
const angularMajorVersion = config_1.getAngularMajorVersion(host); | ||
const angularMajorVersion = (0, config_1.getAngularMajorVersion)(host); | ||
if (angularMajorVersion <= 9) { | ||
@@ -16,3 +16,3 @@ throw new schematics_1.SchematicsException('Angular versions <= 9 are no longer supported.'); | ||
context.addTask(new tasks_1.NodePackageInstallTask()); | ||
return schematics_1.chain([]); | ||
return (0, schematics_1.chain)([]); | ||
}; | ||
@@ -19,0 +19,0 @@ } |
@@ -19,5 +19,5 @@ "use strict"; | ||
/* Get config */ | ||
const mainPaths = yield config_1.getAllMainPaths(host); | ||
const mainPaths = yield (0, config_1.getAllMainPaths)(host); | ||
/* Update `AppModule` of all projects */ | ||
return schematics_1.chain(mainPaths.map((mainPath) => module_1.updateModule(mainPath))); | ||
return (0, schematics_1.chain)(mainPaths.map((mainPath) => (0, module_1.updateModule)(mainPath))); | ||
}); | ||
@@ -29,5 +29,5 @@ } | ||
/* Get config */ | ||
const mainPaths = yield config_1.getAllMainPaths(host); | ||
const mainPaths = yield (0, config_1.getAllMainPaths)(host); | ||
/* Update `AppModule` of all projects */ | ||
return schematics_1.chain(mainPaths.map((mainPath) => module_1.updateModule(mainPath))); | ||
return (0, schematics_1.chain)(mainPaths.map((mainPath) => (0, module_1.updateModule)(mainPath))); | ||
}); | ||
@@ -34,0 +34,0 @@ } |
@@ -18,3 +18,3 @@ "use strict"; | ||
function getAngularMajorVersion(host) { | ||
const angularDependency = dependencies_1.getPackageJsonDependency(host, '@angular/core'); | ||
const angularDependency = (0, dependencies_1.getPackageJsonDependency)(host, '@angular/core'); | ||
/* Throw if Angular is not installed */ | ||
@@ -32,7 +32,7 @@ if (angularDependency === null) { | ||
const mainPaths = []; | ||
const workspace = yield workspace_1.getWorkspace(host); | ||
const workspace = yield (0, workspace_1.getWorkspace)(host); | ||
/* Loop on all projects configured in angular.json */ | ||
workspace.projects.forEach((project) => { | ||
/* The schematic only work with applications (not librairies) */ | ||
if (project.extensions.projectType === 'application') { | ||
if (project.extensions['projectType'] === 'application') { | ||
/* Get `main` option in angular.json project config */ | ||
@@ -42,6 +42,6 @@ const buildTarget = project.targets.get('build'); | ||
if (buildTarget) { | ||
if (!buildTarget.options || !buildTarget.options.main) { | ||
if (!buildTarget.options || !buildTarget.options['main']) { | ||
throw new schematics_1.SchematicsException(`angular.json config is broken, can't find 'architect.build.options.main' in one or more projects`); | ||
} | ||
mainPaths.push(buildTarget.options.main); | ||
mainPaths.push(buildTarget.options['main']); | ||
} | ||
@@ -48,0 +48,0 @@ else if (!e2eTarget) { |
@@ -14,3 +14,3 @@ "use strict"; | ||
function getAppModule(host, mainPath) { | ||
const appModulePath = ng_ast_utils_1.getAppModulePath(host, mainPath); | ||
const appModulePath = (0, ng_ast_utils_1.getAppModulePath)(host, mainPath); | ||
if (!host.exists(appModulePath)) { | ||
@@ -24,4 +24,4 @@ throw new schematics_1.SchematicsException(`Can't find AppModule`); | ||
/* Third param is to disable transpilation, 4rd note sure I just followed other official schematics */ | ||
const appModuleSource = typescript_1.createSourceFile(appModulePath, appModuleFile, typescript_1.ScriptTarget.Latest, true); | ||
const appModuleChanges = ast_utils_1.addImportToModule(appModuleSource, appModulePath, storageModuleName, config_1.packageName); | ||
const appModuleSource = (0, typescript_1.createSourceFile)(appModulePath, appModuleFile, typescript_1.ScriptTarget.Latest, true); | ||
const appModuleChanges = (0, ast_utils_1.addImportToModule)(appModuleSource, appModulePath, storageModuleName, config_1.packageName); | ||
/* The changes must be applied, otherwise the previous line does nothing */ | ||
@@ -28,0 +28,0 @@ const recorder = host.beginUpdate(appModulePath); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
547112
5409
1
1
1
+ Added@angular/common@13.4.0(transitive)
+ Added@angular/core@13.4.0(transitive)
- Removed@angular/common@12.2.17(transitive)
- Removed@angular/core@12.2.17(transitive)
Updatedtslib@^2.3.0