Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ci-npm-update

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ci-npm-update - npm Package Compare versions

Comparing version 0.6.0 to 0.7.0

2

lib/npm_config.d.ts
export declare class NpmConfig {
static getFromRegistry(name: string, versionSpec: string): Promise<NpmConfig>;
static getFromRegistry(name: string, version: string): Promise<NpmConfig>;
name: string;

@@ -4,0 +4,0 @@ version: string;

@@ -17,8 +17,12 @@ "use strict";

}
static getFromRegistry(name, versionSpec) {
return new Promise((resolve, reject) => {
const url = `${REGISTRY_ENDPOINT}/${name}/${versionSpec}`;
static getFromRegistry(name, version) {
return new Promise((resolve, _reject) => {
const url = `${REGISTRY_ENDPOINT}/x/${name}/${version}`;
request(url, (err, res, body) => {
if (err) {
reject(err);
resolve(new NpmConfig({
name: name,
version: version,
error: err,
}));
return;

@@ -32,3 +36,7 @@ }

const error = `Failed to get npm config from ${url}: ${res.statusCode} ${res.statusMessage}`;
reject(new Error(error));
resolve(new NpmConfig({
name: name,
version: version,
error: error,
}));
return;

@@ -38,3 +46,7 @@ }

const error = `Failed to get npm config from ${url}: ${json.error}`;
reject(new Error(error));
resolve(new NpmConfig({
name: name,
version: version,
error: error,
}));
return;

@@ -41,0 +53,0 @@ }

{
"name": "ci-npm-update",
"version": "0.6.0",
"version": "0.7.0",
"description": "Keep NPM dependencies up-to-date with CI, providing version-to-version diff for each library",

@@ -5,0 +5,0 @@ "repository": {

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