citation-js 0.5.2 → 0.5.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.md +1 -1
- package/build/citation.js +4317 -2281
- package/build/citation.min.js +1 -1
- package/index.js +5 -5
- package/package.json +14 -14
package/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
const core = require('@citation-js/core')
|
|
2
2
|
|
|
3
3
|
require('@citation-js/plugin-bibjson')
|
|
4
4
|
require('@citation-js/plugin-bibtex')
|
|
@@ -7,9 +7,9 @@ require('@citation-js/plugin-doi')
|
|
|
7
7
|
require('@citation-js/plugin-ris')
|
|
8
8
|
require('@citation-js/plugin-wikidata')
|
|
9
9
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
const citeproc = require('citeproc')
|
|
11
|
+
const name = require('@citation-js/name')
|
|
12
|
+
const date = require('@citation-js/date')
|
|
13
13
|
|
|
14
14
|
function clone (obj) {
|
|
15
15
|
const copy = {}
|
|
@@ -53,7 +53,7 @@ function Cite (data, opts) {
|
|
|
53
53
|
return new Cite(data, opts)
|
|
54
54
|
}
|
|
55
55
|
|
|
56
|
-
|
|
56
|
+
const self = new core.Cite(data, opts)
|
|
57
57
|
this._options = self._options
|
|
58
58
|
this.log = self.log
|
|
59
59
|
this.data = self.data
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "citation-js",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.3",
|
|
4
4
|
"description": "Citation.js converts formats like BibTeX, Wikidata JSON and ContentMine JSON to CSL-JSON to convert to other formats like APA, Vancouver and back to BibTeX.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"jsdelivr": "build/citation.min.js",
|
|
@@ -28,33 +28,33 @@
|
|
|
28
28
|
"/build/citation.min.js"
|
|
29
29
|
],
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@citation-js/cli": "
|
|
32
|
-
"@citation-js/core": "
|
|
33
|
-
"@citation-js/date": "0.
|
|
31
|
+
"@citation-js/cli": "0.5.3",
|
|
32
|
+
"@citation-js/core": "0.5.3",
|
|
33
|
+
"@citation-js/date": "0.5.0",
|
|
34
34
|
"@citation-js/name": "0.4.2",
|
|
35
|
-
"@citation-js/plugin-bibjson": "
|
|
36
|
-
"@citation-js/plugin-bibtex": "
|
|
37
|
-
"@citation-js/plugin-csl": "
|
|
38
|
-
"@citation-js/plugin-doi": "
|
|
39
|
-
"@citation-js/plugin-ris": "
|
|
40
|
-
"@citation-js/plugin-wikidata": "
|
|
35
|
+
"@citation-js/plugin-bibjson": "0.5.3",
|
|
36
|
+
"@citation-js/plugin-bibtex": "0.5.3",
|
|
37
|
+
"@citation-js/plugin-csl": "0.5.3",
|
|
38
|
+
"@citation-js/plugin-doi": "0.5.3",
|
|
39
|
+
"@citation-js/plugin-ris": "0.5.3",
|
|
40
|
+
"@citation-js/plugin-wikidata": "0.5.3",
|
|
41
41
|
"citeproc": "^2.4.59"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"@babel/core": "^7.12.10",
|
|
45
45
|
"@babel/preset-env": "^7.12.11",
|
|
46
46
|
"babelify": "^10.0.0",
|
|
47
|
-
"browserify": "^
|
|
47
|
+
"browserify": "^17.0.0",
|
|
48
48
|
"core-js": "^3.8.3",
|
|
49
49
|
"disc": "^1.3.2",
|
|
50
50
|
"glob": "^7.1.6",
|
|
51
51
|
"jsdoc": "^3.6.6",
|
|
52
52
|
"markdown-toc": "^1.2.0",
|
|
53
53
|
"minami": "^1.2.3",
|
|
54
|
-
"mocha": "^
|
|
54
|
+
"mocha": "^9.1.3",
|
|
55
55
|
"regenerator-runtime": "^0.13.7",
|
|
56
56
|
"semver": "^7.3.4",
|
|
57
|
-
"standard": "^
|
|
57
|
+
"standard": "^16.0.4",
|
|
58
58
|
"uglify-js": "^3.12.5"
|
|
59
59
|
},
|
|
60
60
|
"scripts": {
|
|
@@ -84,6 +84,6 @@
|
|
|
84
84
|
"url": "https://github.com/larsgw/citation.js/issues"
|
|
85
85
|
},
|
|
86
86
|
"engines": {
|
|
87
|
-
"node": ">=
|
|
87
|
+
"node": ">=10"
|
|
88
88
|
}
|
|
89
89
|
}
|