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

jest-csl

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jest-csl - npm Package Compare versions

Comparing version 0.2.2 to 0.2.3

2

package.json
{
"name": "jest-csl",
"version": "0.2.2",
"version": "0.2.3",
"main": "index.js",

@@ -5,0 +5,0 @@ "repository": "https://github.com/cormacrelf/jest-csl",

@@ -25,4 +25,6 @@ const CSL = require("citeproc");

if (!layout) { return null }
// we add a dummy so that any auto-capitalization gets run on the dummy instead
// let prefix = { name: 'text', attrs: { value: "{{jest-csl-prefix}}" }, children: [""] };
let invoke = { name: 'text', attrs: { macro: macroName }, children: [""] };
layout.attrs.prefix = "";
layout.attrs.prefix = "{{jest-csl-prefix}}";
layout.attrs.suffix = "";

@@ -132,3 +134,5 @@ layout.children = [invoke];

let out = engine.rebuildProcessorState(citations, format || 'html')
return out.map(o => o[2]);
return out.map(o => o[2]
.replace(/\{\{jest-csl-prefix\}\}/g, "")
.replace(/^\[CSL STYLE ERROR: reference with no printed form.\]$/, ""));
}

@@ -135,0 +139,0 @@

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