New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

a2hs.js

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

a2hs.js - npm Package Compare versions

Comparing version 0.4.5 to 0.5.0

.github/dependabot.yml

9

index.js
/**
* Vic Shóstak <truewebartisans@gmail.com>
* Copyright (c) 2019 True web artisans https://1wa.co
* Copyright (c) 2021 Vic Shóstak <vic@shostak.dev> (https://shostak.dev)
* http://opensource.org/licenses/MIT The MIT License (MIT)
*
* a2hs.js v0.4.5 at 13/05/2019
* a2hs.js v0.5.0 at 06/09/2021
*

@@ -26,3 +25,3 @@ * Add to Home Screen

*/
var AddToHomeScreen = function(settings = {}) {
var AddToHomeScreen = function (settings = {}) {
// Container styles

@@ -92,3 +91,3 @@ var backgroundColor = settings.backgroundColor || "#f9f9f9";

// Add onClick function
div.onclick = function(event) {
div.onclick = function (event) {
// Prevent default click

@@ -95,0 +94,0 @@ event.preventDefault();

{
"name": "a2hs.js",
"version": "0.4.5",
"version": "0.5.0",
"description": "A useful modern JavaScript solution that helps your website users to add (install) a progressive web application (PWA) to the Home screen of their mobile iOS device.",

@@ -10,2 +10,3 @@ "browserslist": [

"start": "parcel serve --cache-dir test/demo/.cache -d test/demo/dist test/demo/index.html --open",
"update": "npm outdated && npx npm-check-updates -u && npm install",
"build": "parcel build ./index.js",

@@ -28,23 +29,22 @@ "test": "jest --coverage && size-limit",

],
"author": "Vic Shóstak <truewebartisans@gmail.com> (https://1wa.co)",
"author": "Vic Shóstak <vic@shostak.dev> (https://shostak.dev/)",
"license": "MIT",
"bugs": {
"url": "https://github.com/koddr/a2hs.js/issues",
"email": "truewebartisans@gmail.com"
"email": "vic@shostak.dev"
},
"homepage": "https://github.io/koddr/a2hs.js",
"devDependencies": {
"eslint": "^5.16.0",
"eslint-config-standard": "^12.0.0",
"eslint-plugin-es5": "^1.3.1",
"eslint-plugin-import": "^2.17.2",
"eslint-plugin-import-helpers": "^0.1.4",
"eslint-plugin-jest": "^22.5.1",
"eslint-plugin-node": "^9.0.1",
"eslint-plugin-prefer-let": "^1.0.1",
"eslint-plugin-promise": "^4.1.1",
"eslint": "^7.32.0",
"eslint-config-standard": "^16.0.3",
"eslint-plugin-es5": "^1.5.0",
"eslint-plugin-import": "^2.24.2",
"eslint-plugin-import-helpers": "^1.1.0",
"eslint-plugin-jest": "^24.4.0",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-prefer-let": "^1.1.0",
"eslint-plugin-promise": "^5.1.0",
"eslint-plugin-security": "^1.4.0",
"eslint-plugin-standard": "^4.0.0",
"jest": "^24.8.0",
"parcel-bundler": "^1.12.3"
"jest": "^27.1.0",
"parcel": "^2.0.0-rc.0"
},

@@ -77,3 +77,4 @@ "eslintConfig": {

}
]
],
"dependencies": {}
}

@@ -19,3 +19,3 @@ <h1 align="center">📲 a2hs.js</h1>

<p align="center">
A useful modern JavaScript solution that helps your website users to add (install) a <b>progressive web application</b> (PWA) to the <b>Home Screen</b> of their mobile <b>iOS</b> devices. Designed for the <b>latest 4 major versions</b> of iOS Safari 9.x-12.2+.
A useful modern JavaScript solution that helps your website users to add (install) a <b>progressive web application</b> (PWA) to the <b>Home Screen</b> of their mobile <b>iOS</b> devices. Designed for the <b>latest 4 major versions</b> of iOS Safari.
</p>

@@ -32,3 +32,3 @@

```console
foo@bar:~$ npm install --save a2hs.js
npm install --save a2hs.js
```

@@ -103,6 +103,8 @@

```console
foo@bar:~$ git clone https://github.com/koddr/a2hs.js.git && cd a2hs.js
foo@bar:a2hs.js$ npm install
foo@bar:a2hs.js$ npm start
git clone https://github.com/koddr/a2hs.js.git
cd a2hs.js
npm install
npm start
Server running at http://localhost:1234

@@ -184,3 +186,3 @@ ✨ Built in 18ms.

```console
foo@bar:~$ npm run size
npm run size

@@ -210,10 +212,11 @@ ✨ Built in 234ms.

2. Twit about project [on your Twitter](https://twitter.com/intent/tweet?text=Wow%20%F0%9F%91%8D%20Useful%20%23js%20solution%20for%20add%20progressive%20web%20application%20%23PWA%20to%20Home%20Screen%20on%20%23iOS:%20&url=https%3A%2F%2Fgithub.com%2Fkoddr%2Fa2hs.js).
3. Help project with some money, become a Patron:
3. Donate some money to project author via PayPal: [@paypal.me/koddr](https://paypal.me/koddr?locale.x=en_EN).
4. Join DigitalOcean at our [referral link](https://m.do.co/c/b41859fa9b6e) (your profit is **$100** and we get $25).
<a href="https://www.patreon.com/bePatron?u=20124951">
<img width="200px" src="https://c5.patreon.com/external/logo/become_a_patron_button@2x.png" alt="Become a Patron!"/>
</a>
Thanks for your support! 😘 Together, we make this project better every day.
[![DigitalOcean Referral Badge](https://web-platforms.sfo2.digitaloceanspaces.com/WWW/Badge%202.svg)](https://www.digitalocean.com/?refcode=b41859fa9b6e&utm_campaign=Referral_Invite&utm_medium=Referral_Program&utm_source=badge)
## License
MIT

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