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

bower-registry-client

Package Overview
Dependencies
Maintainers
7
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bower-registry-client - npm Package Compare versions

Comparing version 0.3.0 to 1.0.0

7

Client.js
var async = require('async');
var Config = require('bower-config');
var methods = require('./lib');

@@ -8,4 +7,8 @@ var Cache = require('./lib/util/Cache');

this._logger = logger;
this._config = Config.normalise(config);
this._config = config;
if (!this._config.registry) {
throw new Error("You need to pass config as read by bower-config module. Registry field is missing.");
}
// Cache defaults to storage registry

@@ -12,0 +15,0 @@ if (!Object.prototype.hasOwnProperty.call(this._config, 'cache')) {

@@ -97,3 +97,2 @@ var path = require('path');

req = replay(request.get(requestUrl, {
proxy: remote.protocol === 'https:' ? this._config.httpsProxy : this._config.proxy,
ca: this._config.ca.search[index],

@@ -100,0 +99,0 @@ headers: headers,

@@ -89,3 +89,2 @@ var path = require('path');

req = replay(request.get(requestUrl, {
proxy: remote.protocol === 'https:' ? this._config.httpsProxy : this._config.proxy,
headers: headers,

@@ -92,0 +91,0 @@ ca: this._config.ca.search[index],

@@ -21,3 +21,2 @@ var parseUrl = require('url').parse;

url: requestUrl,
proxy: remote.protocol === 'https:' ? config.httpsProxy : config.proxy,
headers: headers,

@@ -24,0 +23,0 @@ ca: config.ca.register,

@@ -105,3 +105,2 @@ var path = require('path');

req = replay(request.get(requestUrl, {
proxy: remote.protocol === 'https:' ? this._config.httpsProxy : this._config.proxy,
headers: headers,

@@ -108,0 +107,0 @@ ca: this._config.ca.search[index],

@@ -21,3 +21,2 @@ var parseUrl = require('url').parse;

url: requestUrl,
proxy: remote.protocol === 'https:' ? config.httpsProxy : config.proxy,
headers: headers,

@@ -24,0 +23,0 @@ ca: config.ca.register,

{
"name": "bower-registry-client",
"version": "0.3.0",
"version": "1.0.0",
"description": "Provides easy interaction with the Bower registry",
"author": "Twitter",
"licenses": [
{
"type": "MIT",
"url": "https://github.com/bower/registry-client/blob/master/LICENSE"
}
],
"license": "MIT",
"repository": "bower/registry-client",

@@ -18,12 +13,12 @@ "main": "Client",

"dependencies": {
"async": "~0.2.8",
"bower-config": "~0.6.1",
"graceful-fs": "~2.0.0",
"lru-cache": "~2.3.0",
"request": "~2.51.0",
"request-replay": "~0.2.0",
"rimraf": "~2.2.0",
"mkdirp": "~0.3.5"
"async": "^0.2.8",
"graceful-fs": "^4.0.0",
"lru-cache": "^2.3.0",
"request": "^2.51.0",
"request-replay": "^0.2.0",
"rimraf": "^2.2.0",
"mkdirp": "^0.3.5"
},
"devDependencies": {
"bower-config": "^1.1.2",
"expect.js": "~0.2.0",

@@ -40,3 +35,7 @@ "grunt": "~0.4.1",

"test": "grunt test"
}
},
"files": [
"lib",
"Client.js"
]
}

@@ -17,3 +17,5 @@ # bower-registry-client [![Build Status](https://travis-ci.org/bower/registry-client.png?branch=master)](https://travis-ci.org/bower/registry-client)

var RegistryClient = require('bower-registry-client');
var registry = new RegistryClient(options, logger);
var Config = require('bower-config');
var config = Config.read(process.cwd(), options);
var registry = new RegistryClient(config, logger);
```

@@ -20,0 +22,0 @@

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