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

orcid

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

orcid - npm Package Compare versions

Comparing version 0.0.4 to 0.0.5

2

dist/cjs/cli/index.js

@@ -12,4 +12,4 @@ #!/usr/bin/env node

(0, search_1.addSearchCLI)(program);
program.version(`v${version_1.default}`, '-v, --version', 'Print the current version of jtex');
program.version(`v${version_1.default}`, '-v, --version', 'Print the current version of orcid');
program.option('-d, --debug', 'Log out any errors to the console.');
program.parse(process.argv);

@@ -47,3 +47,3 @@ "use strict";

const url = id.replace('https://openalex.org', 'https://api.openalex.org');
session.log.debug(`Fetching infor from ${url}`);
session.log.debug(`Fetching information from ${url}`);
const resp = yield (0, node_fetch_1.default)(url);

@@ -50,0 +50,0 @@ const data = (yield resp.json());

@@ -6,3 +6,3 @@ "use strict";

const ORCID_REGEX_STRICT = '^([0-9]{4}-){3}[0-9]{3}[0-9X]$';
const ORCID_REGEX = '^(http(s)?://(www.)?orcid.org/)?([0-9]{4}-){3}[0-9]{3}[0-9X]$';
const ORCID_REGEX = '^((http(s)?://)?(www.)?orcid.org/)?([0-9]{4}-){3}[0-9]{3}[0-9X]$';
/**

@@ -29,3 +29,3 @@ * Validate that the input string is valid.

return undefined;
return value.replace(/^https?:\/\/(www\.)?orcid\.org\//, '');
return value.replace(/^(https?:\/\/)?(www\.)?orcid\.org\//, '');
}

@@ -32,0 +32,0 @@ /**

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const version = '0.0.4';
const version = '0.0.5';
exports.default = version;

@@ -7,4 +7,4 @@ #!/usr/bin/env node

addSearchCLI(program);
program.version(`v${version}`, '-v, --version', 'Print the current version of jtex');
program.version(`v${version}`, '-v, --version', 'Print the current version of orcid');
program.option('-d, --debug', 'Log out any errors to the console.');
program.parse(process.argv);

@@ -18,3 +18,3 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {

const url = id.replace('https://openalex.org', 'https://api.openalex.org');
session.log.debug(`Fetching infor from ${url}`);
session.log.debug(`Fetching information from ${url}`);
const resp = yield fetch(url);

@@ -21,0 +21,0 @@ const data = (yield resp.json());

export const ORCID_URL = 'https://orcid.org';
const ORCID_REGEX_STRICT = '^([0-9]{4}-){3}[0-9]{3}[0-9X]$';
const ORCID_REGEX = '^(http(s)?://(www.)?orcid.org/)?([0-9]{4}-){3}[0-9]{3}[0-9X]$';
const ORCID_REGEX = '^((http(s)?://)?(www.)?orcid.org/)?([0-9]{4}-){3}[0-9]{3}[0-9X]$';
/**

@@ -25,3 +25,3 @@ * Validate that the input string is valid.

return undefined;
return value.replace(/^https?:\/\/(www\.)?orcid\.org\//, '');
return value.replace(/^(https?:\/\/)?(www\.)?orcid\.org\//, '');
}

@@ -28,0 +28,0 @@ /**

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

const version = '0.0.4';
const version = '0.0.5';
export default version;

@@ -1,3 +0,3 @@

declare const version = "0.0.4";
declare const version = "0.0.5";
export default version;
//# sourceMappingURL=version.d.ts.map
{
"name": "orcid",
"version": "0.0.4",
"version": "0.0.5",
"description": "Utilities for working with ORCID identifiers and service.",

@@ -5,0 +5,0 @@ "sideEffects": false,

Sorry, the diff of this file is too big to display

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