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

citeproc-plus

Package Overview
Dependencies
Maintainers
1
Versions
41
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

citeproc-plus - npm Package Compare versions

Comparing version 0.2.4 to 0.2.5

dist/citeproc_commonjs-e174b414.js

2

dist/cjs/index.js

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

"use strict";function e(t){if(t.name)return t;const s={};return s.name=t.n,t.a?s.attrs=t.a:s.attrs={},s.children=[],t.c?t.c.forEach((t=>{"string"==typeof t?s.children.push(t):s.children.push(e(t))})):"term"===t.n&&s.children.push(""),s}Object.defineProperty(exports,"__esModule",{value:!0});exports.CSL=class{constructor(){this.styles={},this.locales={},this.citeproc=!1}getStyles(){return Promise.resolve().then((function(){return require("./styles-8b5a14f9.js")})).then((({styles:e})=>e))}getEngine(e,t,s,r){let l,n;return Promise.all([this.getCiteproc(),this.getStyle(t).then((e=>n=e))]).then((()=>this.getLocale(n,s,r).then((e=>l=e)))).then((()=>{const t=Object.assign(Object.create(e),e);return t.retrieveLocale=()=>l,new this.citeproc.Engine(t,n,s,r)}))}getEngineSync(e,t,s,r){if(!this.citeproc||!this.styles[t])return!1;const l=this.styles[t];let n=r||(l.attrs["default-locale"]?l.attrs["default-locale"]:s||"en-US");if(this.locales[n]||(n="en-US"),!this.locales[n])return!1;const i=this.locales[n],o=Object.assign(Object.create(e),e);return o.retrieveLocale=()=>i,new this.citeproc.Engine(o,l,s,r)}getCiteproc(){return this.citeproc?Promise.resolve():Promise.resolve().then((function(){return require("./citeproc_commonjs-a1eecfed.js")})).then((e=>this.citeproc=e.default))}getStyle(t){return"object"==typeof t?Promise.resolve(t):Promise.resolve().then((function(){return require("./styles-8b5a14f9.js")})).then((({styleLocations:s})=>{let r;return s[t]||(t=Object.keys(s).find((()=>!0))),this.styles[s[t]]?(this.styles[s[t]][t]=e(this.styles[s[t]][t]),r=Promise.resolve(this.styles[s[t]][t])):r=fetch(s[t],{method:"GET"}).then((e=>e.json())).then((r=>(this.styles[s[t]]=r,this.styles[s[t]][t]=e(this.styles[s[t]][t]),Promise.resolve(this.styles[s[t]][t])))),r}))}getLocale(t,s,r){let l=r||(t.attrs["default-locale"]?t.attrs["default-locale"]:s||"en-US");return this.locales[l]||(l="en-US"),this.locales[l]?Promise.resolve(this.locales[l]):Promise.resolve().then((function(){return require("./locales-8a599f49.js")})).then((({locales:e})=>fetch(e[l],{method:"GET"}))).then((e=>e.json())).then((t=>(this.locales[l]=e(t),Promise.resolve(this.locales[l]))))}};
"use strict";function e(t){if(t.name)return t;const s={};return s.name=t.n,t.a?s.attrs=t.a:s.attrs={},s.children=[],t.c?t.c.forEach((t=>{"string"==typeof t?s.children.push(t):s.children.push(e(t))})):"term"===t.n&&s.children.push(""),s}Object.defineProperty(exports,"__esModule",{value:!0});exports.CSL=class{constructor(){this.styles={},this.locales={},this.citeproc=!1}getStyles(){return Promise.resolve().then((function(){return require("./styles-8b5a14f9.js")})).then((({styles:e})=>e))}getEngine(e,t,s,r){let l,n;return Promise.all([this.getCiteproc(),this.getStyle(t).then((e=>n=e))]).then((()=>this.getLocale(n,s,r).then((e=>l=e)))).then((()=>{const t=Object.assign(Object.create(e),e);return t.retrieveLocale=()=>l,new this.citeproc.Engine(t,n,s,r)}))}getEngineSync(e,t,s,r){if(!this.citeproc||!this.styles[t])return!1;const l=this.styles[t];let n=r||(l.attrs["default-locale"]?l.attrs["default-locale"]:s||"en-US");if(this.locales[n]||(n="en-US"),!this.locales[n])return!1;const i=this.locales[n],o=Object.assign(Object.create(e),e);return o.retrieveLocale=()=>i,new this.citeproc.Engine(o,l,s,r)}getCiteproc(){return this.citeproc?Promise.resolve():Promise.resolve().then((function(){return require("./citeproc_commonjs-3cf65212.js")})).then((e=>this.citeproc=e.default))}getStyle(t){return"object"==typeof t?Promise.resolve(t):Promise.resolve().then((function(){return require("./styles-8b5a14f9.js")})).then((({styleLocations:s})=>{let r;return s[t]||(t=Object.keys(s).find((()=>!0))),this.styles[s[t]]?(this.styles[s[t]][t]=e(this.styles[s[t]][t]),r=Promise.resolve(this.styles[s[t]][t])):r=fetch(s[t],{method:"GET"}).then((e=>e.json())).then((r=>(this.styles[s[t]]=r,this.styles[s[t]][t]=e(this.styles[s[t]][t]),Promise.resolve(this.styles[s[t]][t])))),r}))}getLocale(t,s,r){let l=r||(t.attrs["default-locale"]?t.attrs["default-locale"]:s||"en-US");return this.locales[l]||(l="en-US"),this.locales[l]?Promise.resolve(this.locales[l]):Promise.resolve().then((function(){return require("./locales-8a599f49.js")})).then((({locales:e})=>fetch(e[l],{method:"GET"}))).then((e=>e.json())).then((t=>(this.locales[l]=e(t),Promise.resolve(this.locales[l]))))}};
//# sourceMappingURL=index.js.map

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

function e(t){if(t.name)return t;const s={};return s.name=t.n,t.a?s.attrs=t.a:s.attrs={},s.children=[],t.c?t.c.forEach((t=>{"string"==typeof t?s.children.push(t):s.children.push(e(t))})):"term"===t.n&&s.children.push(""),s}class t{constructor(){this.styles={},this.locales={},this.citeproc=!1}getStyles(){return import("./styles-3e23cf68.js").then((({styles:e})=>e))}getEngine(e,t,s,l){let r,c;return Promise.all([this.getCiteproc(),this.getStyle(t).then((e=>c=e))]).then((()=>this.getLocale(c,s,l).then((e=>r=e)))).then((()=>{const t=Object.assign(Object.create(e),e);return t.retrieveLocale=()=>r,new this.citeproc.Engine(t,c,s,l)}))}getEngineSync(e,t,s,l){if(!this.citeproc||!this.styles[t])return!1;const r=this.styles[t];let c=l||(r.attrs["default-locale"]?r.attrs["default-locale"]:s||"en-US");if(this.locales[c]||(c="en-US"),!this.locales[c])return!1;const i=this.locales[c],o=Object.assign(Object.create(e),e);return o.retrieveLocale=()=>i,new this.citeproc.Engine(o,r,s,l)}getCiteproc(){return this.citeproc?Promise.resolve():import("./citeproc_commonjs-e32cf7c7.js").then((e=>this.citeproc=e.default))}getStyle(t){return"object"==typeof t?Promise.resolve(t):import("./styles-3e23cf68.js").then((({styleLocations:s})=>{let l;return s[t]||(t=Object.keys(s).find((()=>!0))),this.styles[s[t]]?(this.styles[s[t]][t]=e(this.styles[s[t]][t]),l=Promise.resolve(this.styles[s[t]][t])):l=fetch(s[t],{method:"GET"}).then((e=>e.json())).then((l=>(this.styles[s[t]]=l,this.styles[s[t]][t]=e(this.styles[s[t]][t]),Promise.resolve(this.styles[s[t]][t])))),l}))}getLocale(t,s,l){let r=l||(t.attrs["default-locale"]?t.attrs["default-locale"]:s||"en-US");return this.locales[r]||(r="en-US"),this.locales[r]?Promise.resolve(this.locales[r]):import("./locales-42d89cb3.js").then((({locales:e})=>fetch(e[r],{method:"GET"}))).then((e=>e.json())).then((t=>(this.locales[r]=e(t),Promise.resolve(this.locales[r]))))}}export{t as CSL};
function e(t){if(t.name)return t;const s={};return s.name=t.n,t.a?s.attrs=t.a:s.attrs={},s.children=[],t.c?t.c.forEach((t=>{"string"==typeof t?s.children.push(t):s.children.push(e(t))})):"term"===t.n&&s.children.push(""),s}class t{constructor(){this.styles={},this.locales={},this.citeproc=!1}getStyles(){return import("./styles-3e23cf68.js").then((({styles:e})=>e))}getEngine(e,t,s,l){let r,i;return Promise.all([this.getCiteproc(),this.getStyle(t).then((e=>i=e))]).then((()=>this.getLocale(i,s,l).then((e=>r=e)))).then((()=>{const t=Object.assign(Object.create(e),e);return t.retrieveLocale=()=>r,new this.citeproc.Engine(t,i,s,l)}))}getEngineSync(e,t,s,l){if(!this.citeproc||!this.styles[t])return!1;const r=this.styles[t];let i=l||(r.attrs["default-locale"]?r.attrs["default-locale"]:s||"en-US");if(this.locales[i]||(i="en-US"),!this.locales[i])return!1;const c=this.locales[i],o=Object.assign(Object.create(e),e);return o.retrieveLocale=()=>c,new this.citeproc.Engine(o,r,s,l)}getCiteproc(){return this.citeproc?Promise.resolve():import("./citeproc_commonjs-e174b414.js").then((e=>this.citeproc=e.default))}getStyle(t){return"object"==typeof t?Promise.resolve(t):import("./styles-3e23cf68.js").then((({styleLocations:s})=>{let l;return s[t]||(t=Object.keys(s).find((()=>!0))),this.styles[s[t]]?(this.styles[s[t]][t]=e(this.styles[s[t]][t]),l=Promise.resolve(this.styles[s[t]][t])):l=fetch(s[t],{method:"GET"}).then((e=>e.json())).then((l=>(this.styles[s[t]]=l,this.styles[s[t]][t]=e(this.styles[s[t]][t]),Promise.resolve(this.styles[s[t]][t])))),l}))}getLocale(t,s,l){let r=l||(t.attrs["default-locale"]?t.attrs["default-locale"]:s||"en-US");return this.locales[r]||(r="en-US"),this.locales[r]?Promise.resolve(this.locales[r]):import("./locales-42d89cb3.js").then((({locales:e})=>fetch(e[r],{method:"GET"}))).then((e=>e.json())).then((t=>(this.locales[r]=e(t),Promise.resolve(this.locales[r]))))}}export{t as CSL};
//# sourceMappingURL=index.js.map
{
"name": "citeproc-plus",
"version": "0.2.4",
"version": "0.2.5",
"description": "Citeproc-js + citation styles bundled",

@@ -5,0 +5,0 @@ "main": "dist/cjs/index.js",

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