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.9 to 1.0.0

7

package.json
{
"name": "jest-csl",
"version": "0.2.9",
"version": "1.0.0",
"main": "index.js",

@@ -28,3 +28,2 @@ "repository": "https://github.com/cormacrelf/jest-csl",

"chalk": "^2.4.1",
"citeproc": "^2.1.210",
"commander": "^2.19.0",

@@ -44,5 +43,9 @@ "fs-extra": "^7.0.1",

},
"peerDependencies": {
"citeproc": ">=2.1.210"
},
"devDependencies": {
"citeproc": "^2.1.210",
"jest": "^23.6.0"
}
}

@@ -59,11 +59,2 @@ const { readTestUnits, normalizeItalics } = require('./lib');

expect(out.map(normalizeItalics)).toMatchObject(test.expect.map(normalizeItalics));
} else if (test.bibliography && test.expect) {
if (!Array.isArray(test.expect)) {
throw new Error("sequence test.expect must be an array of strings");
}
let [_meta, bibEntries] = engine.processTestCase(test);
bibEntries = bibEntries.map(b => {
return typeof b === 'string' && b.replace(/^ <div class="csl-entry">(.*)<\/div>\n$/, "$1")
});
expect(bibEntries.map(normalizeItalics)).toMatchObject(test.expect.map(normalizeItalics));
}

@@ -70,0 +61,0 @@ }

@@ -128,6 +128,2 @@ const CSL = require("citeproc");

}
if (testCase.bibliography) {
let _ = this.produceSequence(engine, testCase.bibliography, fmt, testCase.abbreviations);
return engine.makeBibliography();
}
}

@@ -134,0 +130,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