Socket
Socket
Sign inDemoInstall

get-uri

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

get-uri - npm Package Compare versions

Comparing version 1.1.0 to 2.0.0

11

History.md
2.0.0 / 2016-01-20
==================
* index: remove `.use()`
1.1.1 / 2016-01-20
==================
* index: deprecate `.use()`
* travis: test more node versions
1.1.0 / 2015-07-08

@@ -3,0 +14,0 @@ ==================

22

index.js

@@ -29,24 +29,2 @@ 'use strict';

/**
* Adds a new protocol via module `require()`.
*/
exports.use = function use (name) {
var setup;
try {
setup = require(name);
} catch (e) {
if (e.code === 'MODULE_NOT_FOUND') {
// support `use('tftp') -> require('get-uri-tftp')`
setup = require('get-uri-' + name);
} else {
throw e;
}
}
if ('function' !== typeof setup) {
throw new TypeError('expected a protocol setup function, got ' + (typeof setup));
}
setup(exports.protocols);
};
/**
* Async function that returns a `stream.Readable` instance to the

@@ -53,0 +31,0 @@ * callback function that will output the contents of the given URI.

2

package.json
{
"name": "get-uri",
"version": "1.1.0",
"version": "2.0.0",
"description": "Returns a `stream.Readable` from a URI string",

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

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