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

@khmyznikov/pwa-install

Package Overview
Dependencies
Maintainers
1
Versions
47
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@khmyznikov/pwa-install - npm Package Compare versions

Comparing version 0.4.5 to 0.4.6

dist/types/localization/locales/zh-HK.d.ts

0

.vscode/launch.json

@@ -0,0 +0,0 @@ {

@@ -0,0 +0,0 @@ {

@@ -0,0 +0,0 @@ ## Contributor guidelines

4

dist/types/localization/locale-codes.d.ts
export declare const sourceLocale = "en";
export declare const targetLocales: readonly ["cs", "de", "el", "es", "fr", "it", "ja", "km", "ko", "nl", "no", "pl", "pt", "ru", "sr", "sv", "tr", "uk", "zh", "zh-CN"];
export declare const allLocales: readonly ["cs", "de", "el", "en", "es", "fr", "it", "ja", "km", "ko", "nl", "no", "pl", "pt", "ru", "sr", "sv", "tr", "uk", "zh", "zh-CN"];
export declare const targetLocales: readonly ["cs", "de", "el", "es", "fr", "it", "ja", "km", "ko", "nl", "no", "pl", "pt", "ru", "sr", "sv", "tr", "uk", "zh-CN", "zh-HK"];
export declare const allLocales: readonly ["cs", "de", "el", "en", "es", "fr", "it", "ja", "km", "ko", "nl", "no", "pl", "pt", "ru", "sr", "sv", "tr", "uk", "zh-CN", "zh-HK"];

@@ -0,0 +0,0 @@ {

@@ -1,1 +0,1 @@

var cacheName="PWAinstallDemo-24.9.2024/23:0:49",filesToCache=["/pwa-install/","manifest.json"];function sendMessage(e,n){return new Promise((function(t,s){var a=new MessageChannel;e.postMessage(n,[a.port2])}))}function sendMessageToAll(e,n){clients.matchAll().then((t=>{t.forEach((n=>{sendMessage(n,e)})),n&&"function"==typeof n&&n()}))}self.addEventListener("install",(function(e){e.waitUntil(caches.open(cacheName).then((function(e){return e.addAll(filesToCache)}))),self.skipWaiting()})),self.addEventListener("activate",(function(e){return e.waitUntil(caches.keys().then((function(e){return Promise.all(e.map((function(e){if(e!==cacheName)return sendMessageToAll("NEW_VERSION"),caches.delete(e)})))}))),self.clients.claim()})),self.addEventListener("fetch",(function(e){e.respondWith(caches.match(e.request,{ignoreSearch:!0}).then((function(n){return n||fetch(e.request)})))})),self.addEventListener("message",(e=>{e&&e.data&&e.data.message}));
var cacheName="PWAinstallDemo-10.10.2024/22:30:33",filesToCache=["/pwa-install/","manifest.json"];function sendMessage(e,n){return new Promise((function(t,s){var a=new MessageChannel;e.postMessage(n,[a.port2])}))}function sendMessageToAll(e,n){clients.matchAll().then((t=>{t.forEach((n=>{sendMessage(n,e)})),n&&"function"==typeof n&&n()}))}self.addEventListener("install",(function(e){e.waitUntil(caches.open(cacheName).then((function(e){return e.addAll(filesToCache)}))),self.skipWaiting()})),self.addEventListener("activate",(function(e){return e.waitUntil(caches.keys().then((function(e){return Promise.all(e.map((function(e){if(e!==cacheName)return sendMessageToAll("NEW_VERSION"),caches.delete(e)})))}))),self.clients.claim()})),self.addEventListener("fetch",(function(e){e.respondWith(caches.match(e.request,{ignoreSearch:!0}).then((function(n){return n||fetch(e.request)})))})),self.addEventListener("message",(e=>{e&&e.data&&e.data.message}));

@@ -15,3 +15,3 @@ {

"uk",
"zh",
"zh-HK",
"zh-CN",

@@ -18,0 +18,0 @@ "it",

{
"name": "@khmyznikov/pwa-install",
"version": "0.4.5",
"version": "0.4.6",
"description": "PWA install dialog provide more convenience user experience and fix lack of native dialogs in some browsers.",

@@ -52,8 +52,8 @@ "repository": {

"@lit/localize-tools": "^0.8.0",
"@types/node": "^20.14.10",
"autoprefixer": "^10.4.19",
"@types/node": "^20.16.11",
"autoprefixer": "^10.4.20",
"clean-webpack-plugin": "4.0.0",
"copy-webpack-plugin": "^12.0.2",
"eslint": "^9.7.0",
"express": "^4.19.2",
"eslint": "^9.12.0",
"express": "^4.21.1",
"filemanager-webpack-plugin": "^8.0.0",

@@ -63,19 +63,19 @@ "lit-scss-loader": "^2.0.1",

"null-loader": "^4.0.1",
"postcss": "^8.4.39",
"postcss": "^8.4.47",
"postcss-import": "^16.1.0",
"postcss-loader": "^8.1.1",
"sass": "^1.77.8",
"sass": "^1.79.4",
"sass-loader": "^16.0.2",
"terser-webpack-plugin": "^5.3.10",
"ts-loader": "9.5.1",
"typescript": "^5.5.4",
"typescript": "^5.6.3",
"typescript-lit-html-plugin": "^0.9.0",
"webpack": "^5.93.0",
"webpack": "^5.95.0",
"webpack-cli": "^5.1.4",
"webpack-dev-server": "^5.0.4",
"webpack-dev-server": "^5.1.0",
"webpack-merge": "^6.0.1"
},
"peerDependencies": {
"lit": "^3.2.0",
"@lit/react": "^1.0.5",
"lit": "^3.2.1",
"@lit/react": "^1.0.6",
"@types/web-app-manifest": "^1.0.8",

@@ -82,0 +82,0 @@ "@types/dom-chromium-installation-events": "^101.0.4"

[![Published on NPM](https://img.shields.io/npm/v/@khmyznikov/pwa-install.svg)](https://www.npmjs.com/package/@khmyznikov/pwa-install)
![npm](https://img.shields.io/npm/dt/@khmyznikov/pwa-install)
[![npm](https://img.shields.io/npm/dt/@khmyznikov/pwa-install)](https://www.npmjs.com/package/@khmyznikov/pwa-install)
## \<pwa-install\>

@@ -192,3 +192,3 @@

- *PL*
- *ZH*/*ZH-CN*
- *ZH-CN*/*ZH-HK*
- *IT*

@@ -219,1 +219,6 @@ - *UK*

## Backers ❤️
[Patrick Voigt](https://github.com/pvo13)<br>
[Darren Debono](https://github.com/amigabits)<br>
[Angelo Fan](https://github.com/angelofan)<br>
Leek Duck

@@ -0,0 +0,0 @@ import { LitElement, html } from 'lit';

@@ -0,0 +0,0 @@ import { html } from 'lit';

@@ -0,0 +0,0 @@ import { LitElement, PropertyValues, html } from 'lit';

@@ -17,3 +17,3 @@ import { configureLocalization } from '@lit/localize';

import * as uk from "./locales/uk";
import * as zh from "./locales/zh";
import * as zhHK from "./locales/zh-HK";
import * as zhCN from "./locales/zh-CN";

@@ -40,3 +40,3 @@ import * as it from "./locales/it";

['uk', uk],
['zh', zh],
['zh-HK', zhHK],
['zh-CN', zhCN],

@@ -70,2 +70,12 @@ ['it', it],

// Fallback to simplified Chinese
switch (lang) {
case 'zh':
case 'zh-TW':
lang = 'zh-CN';
break;
default:
break;
}
try {

@@ -72,0 +82,0 @@ if (localizedTemplates.get(lang))

@@ -32,4 +32,4 @@ // Do not modify this file by hand!

`uk`,
`zh`,
`zh-CN`,
`zh-HK`,
] as const;

@@ -60,4 +60,4 @@

`uk`,
`zh`,
`zh-CN`,
`zh-HK`,
] as const;

@@ -12,17 +12,17 @@

export const templates = {
's182ab2d6c997515f': `将其添加到主屏幕,以享受更全面的体验并便于访问。`,
's1b9047d53d9f9d22': `2) 点击列表上的分享按钮`,
's37a9e8aec5713460': `详细资讯`,
's5c6aad7a7e4a1437': `3) 点击添加到主屏幕`,
's182ab2d6c997515f': `将其添加到主屏幕,以享受更丰富的体验并便于访问。`,
's1b9047d53d9f9d22': `2) 点击导航栏中的“分享”按钮`,
's37a9e8aec5713460': `更多`,
's5c6aad7a7e4a1437': `3) 点击“添加到主屏幕”`,
's6196153c4b0c1ea0': `安装`,
's922329d6f6213590': `添加到Dock`,
'sa5ef80b4bb9b39f8': `简短资讯`,
'sa7551383d1897fcc': `2) 按下添加到Dock`,
'sba52286c21552a4e': `在您的设备上安装,以享有更全面的体验和便捷的访问。`,
'sc79fd7641eb9a975': `隐藏安装流程`,
'scdaf4bbff76674c8': `将App添加到主屏幕`,
'sdfe23506a3b0cdc8': `1) 在Safari上浏览此网页`,
'se740f75b95a51807': `将其添加到您的Dock,以享受更全面的体验并便于访问。`,
'sfea652f6580ff086': `此网站具备app的功能性。`,
's922329d6f6213590': `添加到程序坞`,
'sa5ef80b4bb9b39f8': `收起`,
'sa7551383d1897fcc': `2) 点击“添加到程序坞”`,
'sba52286c21552a4e': `在您的设备上安装,以享受更丰富的体验并便于访问。`,
'sc79fd7641eb9a975': `隐藏安装步骤`,
'scdaf4bbff76674c8': `添加到主屏幕`,
'sdfe23506a3b0cdc8': `1) 在 Safari 浏览器中打开此页面`,
'se740f75b95a51807': `将其添加到您的程序坞,以享受更全面的体验并便于访问。`,
'sfea652f6580ff086': `此网站具备 App 功能特性。`,
};

@@ -0,0 +0,0 @@ import { html } from 'lit';

@@ -0,0 +0,0 @@ export default class TouchDragListener {

@@ -0,0 +0,0 @@ import { ImageResource } from 'web-app-manifest';

@@ -0,0 +0,0 @@ {

@@ -0,0 +0,0 @@ import express from 'express';

@@ -0,0 +0,0 @@ var cacheName = 'PWAinstallDemo-' + BUILD_TIMESTAMP;

@@ -0,0 +0,0 @@ import path, { resolve } from 'path';

@@ -0,0 +0,0 @@ import common from './webpack.common.js';

@@ -0,0 +0,0 @@ import common from "./webpack.common.js";

@@ -0,0 +0,0 @@ import prod from './webpack.prod.js';

@@ -0,0 +0,0 @@ import prod from './webpack.prod.js';

@@ -0,0 +0,0 @@ import prod from './webpack.prod.js';

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 too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

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 too big to display

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

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