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

@cfvdb/core

Package Overview
Dependencies
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cfvdb/core - npm Package Compare versions

Comparing version 1.2.1 to 1.2.2

11

lib/deck-list-parser.js

@@ -72,2 +72,7 @@ const LZUTF8 = require('lzutf8');

card.data = cardDataResponse[i];
if (card.data.grade === 0 && card.partOfRideDeck) {
card.starter = true;
}
result[getCardType(card.data)].cards.push(card);

@@ -84,9 +89,5 @@ }

const number = elements[elements.length - 1];
let starter = elements.length >= 3 && elements[elements.length - 2].trim() === '(S)';
const starter = elements.length >= 3 && elements[elements.length - 2].trim() === '(S)';
const partOfRideDeck = elements.length >= 3 && elements[elements.length - 2].trim() === '(R)';
if (partOfRideDeck) {
starter = true;
}
return {

@@ -93,0 +94,0 @@ count,

{
"name": "@cfvdb/core",
"version": "1.2.1",
"version": "1.2.2",
"description": "Core functions for CFVDB",

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

@@ -94,2 +94,4 @@ const parseDeckList = require('../lib/deck-list-parser');

assert.deepStrictEqual(result.normal.cards[9].starter, true);
assert.deepStrictEqual(result.normal.cards[0].partOfRideDeck, true);
assert.deepStrictEqual(result.normal.cards[0].starter, false);
});

@@ -96,0 +98,0 @@ });

****** Cardfight!! Vanguard Deck List ******
## Normal units - 33
* 4 Ranunculus Flower Maiden, Ahsha V-TD12/001EN
* 4 Ranunculus Flower Maiden, Ahsha (R) V-TD12/001EN
* 4 Genteel Knight, Orvell V-TD12/002EN

@@ -6,0 +6,0 @@ * 4 Blossoming Maiden, Cela V-TD12/003EN

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