Skip to content

Commit

Permalink
feat(service-worker): add beforeinstallprompt option and integrate sn…
Browse files Browse the repository at this point in the history
…ackbar package
  • Loading branch information
arashagp committed Dec 16, 2024
1 parent b60c47b commit 21d82da
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 26 deletions.
1 change: 1 addition & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
"argb",
"backorder",
"backordering",
"beforeinstallprompt",
"colspan",
"cssnano",
"endmacro",
Expand Down
25 changes: 0 additions & 25 deletions packages/service-worker/CHANGELOG.md

This file was deleted.

1 change: 1 addition & 0 deletions packages/service-worker/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@
"@alwatr/package-tracer": "^5.0.0",
"@alwatr/parse-duration": "^5.0.0",
"@alwatr/wait": "^1.1.16",
"@nexim/snackbar": "workspace:^",
"alpinejs": "^3.14.7"
},
"devDependencies": {
Expand Down
5 changes: 5 additions & 0 deletions packages/service-worker/src/main.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
import {packageTracer} from '@alwatr/package-tracer';

// Ensure only single version of this package use in the project (only check in development environment).
__dev_mode__: packageTracer.add(__package_name__, __package_version__);

export * from './lib/service-worker-notify.js';
export * from './lib/service-worker.js';
export * from './lib/install-pwa.js';
3 changes: 2 additions & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1191,6 +1191,7 @@ __metadata:
"@alwatr/parse-duration": "npm:^5.0.0"
"@alwatr/type-helper": "npm:^5.0.0"
"@alwatr/wait": "npm:^1.1.16"
"@nexim/snackbar": "workspace:^"
"@nexim/typescript-config": "workspace:^"
"@types/alpinejs": "npm:^3.13.11"
alpinejs: "npm:^3.14.7"
Expand All @@ -1199,7 +1200,7 @@ __metadata:
languageName: unknown
linkType: soft

"@nexim/snackbar@workspace:packages/snackbar":
"@nexim/snackbar@workspace:^, @nexim/snackbar@workspace:packages/snackbar":
version: 0.0.0-use.local
resolution: "@nexim/snackbar@workspace:packages/snackbar"
dependencies:
Expand Down

0 comments on commit 21d82da

Please sign in to comment.