citation-js 0.7.21 → 0.8.0

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/index.js CHANGED
@@ -82,15 +82,15 @@ Cite.CSL = {
82
82
  return id => data.find(entry => entry.id === id)
83
83
  },
84
84
  locale (lang) {
85
- return CSL.styles.get(CSL.styles.has(lang) ? lang : 'en-US')
85
+ return CSL.locales.get(CSL.locales.has(lang) ? lang : 'en-US')
86
86
  },
87
87
  style (style) {
88
- return CSL.templates.get(CSL.templates.has(style) ? style : 'apa')
88
+ return CSL.styles.get(CSL.styles.has(style) ? style : 'apa')
89
89
  },
90
90
  register: {
91
- addTemplate: CSL.templates.add.bind(CSL.templates),
92
- getTemplate: CSL.templates.get.bind(CSL.templates),
93
- hasTemplate: CSL.templates.has.bind(CSL.templates),
91
+ addTemplate: CSL.styles.add.bind(CSL.styles),
92
+ getTemplate: CSL.styles.get.bind(CSL.styles),
93
+ hasTemplate: CSL.styles.has.bind(CSL.styles),
94
94
  addLocale: CSL.locales.add.bind(CSL.locales),
95
95
  getLocale: CSL.locales.get.bind(CSL.locales),
96
96
  hasLocale: CSL.locales.has.bind(CSL.locales)
@@ -98,6 +98,8 @@ Cite.CSL = {
98
98
  }
99
99
 
100
100
  Cite.plugins = clone(core.plugins)
101
+ Cite.plugins.dict.htmlDict = Cite.plugins.dict.get('html')
102
+ Cite.plugins.dict.textDict = Cite.plugins.dict.get('text')
101
103
  delete Cite.plugins.input.util.clean
102
104
 
103
105
  Cite.parse = Object.assign({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "citation-js",
3
- "version": "0.7.21",
3
+ "version": "0.8.0",
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,16 +28,16 @@
28
28
  "/build/citation.min.js"
29
29
  ],
30
30
  "dependencies": {
31
- "@citation-js/cli": "0.7.21",
32
- "@citation-js/core": "0.7.21",
31
+ "@citation-js/cli": "0.8.0",
32
+ "@citation-js/core": "0.8.0",
33
33
  "@citation-js/date": "0.5.1",
34
34
  "@citation-js/name": "0.4.2",
35
- "@citation-js/plugin-bibjson": "0.7.21",
36
- "@citation-js/plugin-bibtex": "0.7.21",
37
- "@citation-js/plugin-csl": "0.7.21",
38
- "@citation-js/plugin-doi": "0.7.21",
39
- "@citation-js/plugin-ris": "0.7.21",
40
- "@citation-js/plugin-wikidata": "0.7.21",
35
+ "@citation-js/plugin-bibjson": "0.8.0",
36
+ "@citation-js/plugin-bibtex": "0.8.0",
37
+ "@citation-js/plugin-csl": "0.8.0",
38
+ "@citation-js/plugin-doi": "0.8.0",
39
+ "@citation-js/plugin-ris": "0.8.0",
40
+ "@citation-js/plugin-wikidata": "0.8.0",
41
41
  "citeproc": "^2.4.59",
42
42
  "patch-package": "^8.0.1"
43
43
  },
@@ -50,12 +50,17 @@
50
50
  "core-js": "^3.8.3",
51
51
  "jsdoc": "^4.0.2",
52
52
  "minami": "^1.2.3",
53
- "mocha": "^10.0.0",
53
+ "mocha": "^11.7.6",
54
54
  "regenerator-runtime": "^0.14.1",
55
55
  "semver": "^7.3.4",
56
56
  "standard": "^17.0.0",
57
57
  "uglify-js": "^3.12.5"
58
58
  },
59
+ "overrides": {
60
+ "mocha": {
61
+ "serialize-javascript": "7.0.5"
62
+ }
63
+ },
59
64
  "scripts": {
60
65
  "lint": "standard",
61
66
  "test": "mocha --check-leaks -R dot test/*.spec.js",