📅 You're Invited: Meet the Socket team at RSAC (April 28 – May 1).RSVP
Socket
Sign inDemoInstall
Socket

applesauce-core

Package Overview
Dependencies
Maintainers
0
Versions
188
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

applesauce-core - npm Package Compare versions

Comparing version

to
0.0.0-next-20250211174631

dist/helpers/blossom.d.ts

2

dist/helpers/file-metadata.d.ts

@@ -55,2 +55,2 @@ import { NostrEvent } from "nostr-tools";

/** Returns the last 64 length hex string in a URL */
export declare function getSha256FromURL(url: string | URL): string | null;
export declare function getSha256FromURL(url: string | URL): string | undefined;

@@ -98,3 +98,3 @@ import { getOrComputeCachedValue } from "./cache.js";

return hashes[hashes.length - 1][0];
return null;
return;
}

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

export * from "./blossom.js";
export * from "./bolt11.js";

@@ -2,0 +3,0 @@ export * from "./bookmarks.js";

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

export * from "./blossom.js";
export * from "./bolt11.js";

@@ -2,0 +3,0 @@ export * from "./bookmarks.js";

@@ -47,4 +47,2 @@ export const convertToUrl = (url) => (url instanceof URL ? url : new URL(url));

export function normalizeURL(url) {
if (typeof url === "string" && url.indexOf("://") === -1)
url = "wss://" + url;
let p = new URL(url);

@@ -54,3 +52,4 @@ // remove any double slashes

// drop the port if its not needed
if ((p.port === "80" && p.protocol === "ws:") || (p.port === "443" && p.protocol === "wss:"))
if ((p.port === "80" && (p.protocol === "ws:" || p.protocol === "http:")) ||
(p.port === "443" && (p.protocol === "wss:" || p.protocol === "https:")))
p.port = "";

@@ -57,0 +56,0 @@ // sort the query params

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

export * from "./blossom.js";
export * from "./bookmarks.js";

@@ -2,0 +3,0 @@ export * from "./channels.js";

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

export * from "./blossom.js";
export * from "./bookmarks.js";

@@ -2,0 +3,0 @@ export * from "./channels.js";

{
"name": "applesauce-core",
"version": "0.0.0-next-20250211165042",
"version": "0.0.0-next-20250211174631",
"description": "",

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