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

@the-libs/base-shared

Package Overview
Dependencies
Maintainers
0
Versions
793
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@the-libs/base-shared - npm Package Compare versions

Comparing version 1.2.24 to 1.2.25

18

index.js

@@ -57,19 +57,2 @@ // libs/base-shared/src/exceptions/base.ts

var guessValueType = (item) => typeof item === "boolean" || item === void 0 ? item ? "Yes" : "No" : typeof item === "string" ? doesLooksLikeDate(item) && !isNaN(Date.parse(item)) && new Date(item).getFullYear() !== 2001 ? new Date(item).toString() : formatTextNicely(item) : item instanceof Date ? item.toLocaleDateString() : typeof item === "object" && item !== null ? JSON.stringify(item) : formatTextNicely(String(item));
var handleSubscribeClick = (pubkey, cb) => {
navigator.serviceWorker.ready.then((registration) => {
const padding = "=".repeat((4 - pubkey?.length % 4) % 4);
const base64 = (pubkey + padding).replace(/-/g, "+").replace(/_/g, "/");
const rawData = window.atob(base64);
const outputArray = new Uint8Array(rawData?.length);
for (let i = 0; i < rawData?.length; ++i) {
outputArray[i] = rawData.charCodeAt(i);
}
registration.pushManager.subscribe({
userVisibleOnly: true,
applicationServerKey: outputArray
}).then((pushSubscription) => cb(pushSubscription)).catch((error) => {
console.log("Error during getSubscription()", error);
});
});
};
var stringifyIfNeeded = (o) => {

@@ -91,5 +74,4 @@ try {

guessValueType,
handleSubscribeClick,
parseJSONWithType,
stringifyIfNeeded
};

2

package.json
{
"name": "@the-libs/base-shared",
"version": "1.2.24",
"version": "1.2.25",
"dependencies": {},

@@ -5,0 +5,0 @@ "type": "module",

@@ -7,4 +7,3 @@ export * from './format-text';

export declare const guessValueType: (item: TODO) => string;
export declare const handleSubscribeClick: (pubkey: string, cb: (pushSubscription: TODO) => void) => void;
export declare const stringifyIfNeeded: (o: TODO) => any;
//# sourceMappingURL=index.d.ts.map

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