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

npm2url

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

npm2url - npm Package Compare versions

Comparing version 0.2.1 to 0.2.2

9

dist/index.d.ts

@@ -6,4 +6,11 @@ declare class UrlBuilder {

provider: string;
/**
* Get the fastest provider name.
* If none of the providers returns a valid response within `timeout`, an error will be thrown.
*/
getFastestProvider(timeout?: number, path?: string): Promise<string>;
findFastestProvider(timeout?: number): Promise<string>;
/**
* Set the current provider to the fastest provider found by `getFastestProvider`.
*/
findFastestProvider(timeout?: number, path?: string): Promise<string>;
setProvider(name: string, factory: ((path: string) => string) | null): void;

@@ -10,0 +17,0 @@ getFullUrl(path: string, provider?: string): string;

2

package.json
{
"name": "npm2url",
"version": "0.2.1",
"version": "0.2.2",
"description": "Convert an NPM package import into a CDN URL.",

@@ -5,0 +5,0 @@ "repository": "gera2ld/npm2url",

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