Comparing version 1.0.8 to 1.0.9
@@ -94,2 +94,7 @@ "use strict"; | ||
[ | ||
'plos', | ||
'https://journals.plos.org/climate/article?id=10.1371/journal.pclm.0000068', | ||
'10.1371/journal.pclm.0000068', | ||
], | ||
[ | ||
'zenodo', | ||
@@ -96,0 +101,0 @@ 'https://zenodo.org/badge/latestdoi/169800572', |
@@ -45,2 +45,10 @@ "use strict"; | ||
}; | ||
const idInQuery = { | ||
test (url) { | ||
return (0, _validatePart).validatePart(url.searchParams.get('id')); | ||
}, | ||
parse (url) { | ||
return url.searchParams.get('id'); | ||
} | ||
}; | ||
const STRICT_RESOLVERS = [ | ||
@@ -54,3 +62,4 @@ doiOrg | ||
elife, | ||
zenodo | ||
zenodo, | ||
idInQuery | ||
]; | ||
@@ -57,0 +66,0 @@ exports.DEFAULT_RESOLVERS = DEFAULT_RESOLVERS; |
@@ -88,2 +88,7 @@ import doi from './index'; | ||
[ | ||
'plos', | ||
'https://journals.plos.org/climate/article?id=10.1371/journal.pclm.0000068', | ||
'10.1371/journal.pclm.0000068', | ||
], | ||
[ | ||
'zenodo', | ||
@@ -90,0 +95,0 @@ 'https://zenodo.org/badge/latestdoi/169800572', |
@@ -40,2 +40,10 @@ import { validatePart } from './validatePart'; | ||
}; | ||
const idInQuery = { | ||
test (url) { | ||
return validatePart(url.searchParams.get('id')); | ||
}, | ||
parse (url) { | ||
return url.searchParams.get('id'); | ||
} | ||
}; | ||
export const STRICT_RESOLVERS = [ | ||
@@ -48,5 +56,6 @@ doiOrg | ||
elife, | ||
zenodo | ||
zenodo, | ||
idInQuery | ||
]; | ||
//# sourceMappingURL=resolvers.js.map |
{ | ||
"name": "doi-utils", | ||
"version": "1.0.8", | ||
"version": "1.0.9", | ||
"description": "Set of utility functions to help with handling DOI(Digital Object Identifier)", | ||
@@ -5,0 +5,0 @@ "author": "Curvenote Inc. <support@curvenote.com>", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
51609
570