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

@garbarino/gb-jscommons

Package Overview
Dependencies
Maintainers
3
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@garbarino/gb-jscommons - npm Package Compare versions

Comparing version 1.3.0 to 1.4.0

2

dist/es5/push-notifications.js

@@ -26,3 +26,3 @@ (function webpackUniversalModuleDefinition(root, factory) {

exports.sendSubscriptionToBackEnd = sendSubscriptionToBackEnd;
var APPLICATIONSERVERKEY = urlB64ToUint8Array('BEl62iUYgUivxIkv69yViEuiBIa-Ib9-SkvMeAtA3LFgDzkrxZJjSgSnfckjBJuBkr3qBUYIHBQFLXYp5Nksh8U');
var APPLICATIONSERVERKEY = urlB64ToUint8Array('BJJA1AKetLvKXO2_rRpkS11DTvhkSVncqa9dcFD25wga05vHvZNallCXc0Et-NZcXv2MKRvPEVstbzn6pGlNAxs');

@@ -29,0 +29,0 @@ function isCompatible() {

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

!function(e,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define([],n):"object"==typeof exports?exports["push-notifications"]=n():(e.gbJsCommons=e.gbJsCommons||{},e.gbJsCommons["push-notifications"]=n())}("undefined"!=typeof self?self:this,function(){return function(e){function n(o){if(t[o])return t[o].exports;var r=t[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}var t={};return n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:o})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},n.p="",n(n.s=0)}([function(e,n,t){"use strict";function o(){return"serviceWorker"in navigator&&"PushManager"in window}Object.defineProperty(n,"__esModule",{value:!0}),n.isCompatible=o,n.canAskForPermission=function(){return o()&&"denied"!==Notification.permission},n.subscribeUserToPush=function(){return o()?navigator.serviceWorker.getRegistration().then(function(e){var n={userVisibleOnly:!0,applicationServerKey:r};return e.pushManager.subscribe(n)}).then(function(e){return console.log("Received PushSubscription: ",JSON.stringify(e)),e}):Promise.reject("Push notifications not compatible")},n.getSubscription=function(){return o()?navigator.serviceWorker.getRegistration().then(function(e){return e.pushManager.getSubscription()}):Promise.reject("Push notifications not compatible")},n.sendSubscriptionToBackEnd=function(e,n){return fetch("/normandia/services/push_tokens",{method:"POST",headers:{"Content-Type":"application/json"},body:{registration_token:e.registration_token,platform:n||"",keys:e.keys},credentials:"same-origin"})};var r=function(e){for(var n=(e+"=".repeat((4-e.length%4)%4)).replace(/\-/g,"+").replace(/_/g,"/"),t="undefined"!=typeof window?window.atob(n):"",o=new Uint8Array(t.length),r=0;r<t.length;++r)o[r]=t.charCodeAt(r);return o}("BEl62iUYgUivxIkv69yViEuiBIa-Ib9-SkvMeAtA3LFgDzkrxZJjSgSnfckjBJuBkr3qBUYIHBQFLXYp5Nksh8U")}])});
!function(e,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define([],n):"object"==typeof exports?exports["push-notifications"]=n():(e.gbJsCommons=e.gbJsCommons||{},e.gbJsCommons["push-notifications"]=n())}("undefined"!=typeof self?self:this,function(){return function(e){function n(o){if(t[o])return t[o].exports;var r=t[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}var t={};return n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:o})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},n.p="",n(n.s=0)}([function(e,n,t){"use strict";function o(){return"serviceWorker"in navigator&&"PushManager"in window}Object.defineProperty(n,"__esModule",{value:!0}),n.isCompatible=o,n.canAskForPermission=function(){return o()&&"denied"!==Notification.permission},n.subscribeUserToPush=function(){return o()?navigator.serviceWorker.getRegistration().then(function(e){var n={userVisibleOnly:!0,applicationServerKey:r};return e.pushManager.subscribe(n)}).then(function(e){return console.log("Received PushSubscription: ",JSON.stringify(e)),e}):Promise.reject("Push notifications not compatible")},n.getSubscription=function(){return o()?navigator.serviceWorker.getRegistration().then(function(e){return e.pushManager.getSubscription()}):Promise.reject("Push notifications not compatible")},n.sendSubscriptionToBackEnd=function(e,n){return fetch("/normandia/services/push_tokens",{method:"POST",headers:{"Content-Type":"application/json"},body:{registration_token:e.registration_token,platform:n||"",keys:e.keys},credentials:"same-origin"})};var r=function(e){for(var n=(e+"=".repeat((4-e.length%4)%4)).replace(/\-/g,"+").replace(/_/g,"/"),t="undefined"!=typeof window?window.atob(n):"",o=new Uint8Array(t.length),r=0;r<t.length;++r)o[r]=t.charCodeAt(r);return o}("BJJA1AKetLvKXO2_rRpkS11DTvhkSVncqa9dcFD25wga05vHvZNallCXc0Et-NZcXv2MKRvPEVstbzn6pGlNAxs")}])});

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

const APPLICATIONSERVERKEY = urlB64ToUint8Array('BEl62iUYgUivxIkv69yViEuiBIa-Ib9-SkvMeAtA3LFgDzkrxZJjSgSnfckjBJuBkr3qBUYIHBQFLXYp5Nksh8U');
const APPLICATIONSERVERKEY = urlB64ToUint8Array('BJJA1AKetLvKXO2_rRpkS11DTvhkSVncqa9dcFD25wga05vHvZNallCXc0Et-NZcXv2MKRvPEVstbzn6pGlNAxs');

@@ -3,0 +3,0 @@ export function isCompatible() {

{
"name": "@garbarino/gb-jscommons",
"version": "1.3.0",
"version": "1.4.0",
"description": "A package of common functions used in our JavaScript applications.",

@@ -5,0 +5,0 @@ "main": "index.js",

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