New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

quaff

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

quaff - npm Package Compare versions

Comparing version 4.0.0 to 4.1.0

types.d.ts

10

CHANGELOG.md

@@ -10,2 +10,12 @@ # Changelog

## [4.1.0] - 2019-03-04
### Added
- Added TypeScript definition file.
### Changed
- Some housekeeping in `index.js`, but no functional changes.
## [4.0.0] - 2019-01-25

@@ -12,0 +22,0 @@

29

index.js

@@ -41,17 +41,24 @@ // internal

if (ext === '.json') {
switch (ext) {
// json path
data = parseJson(fileContents, file);
} else if (ext === '.yaml' || ext === '.yml') {
// yaml path
data = yaml.safeLoad(fileContents);
} else if (ext === '.csv') {
case '.json':
data = parseJson(fileContents, file);
break;
// yaml paths
case '.yaml':
case '.yml':
data = yaml.safeLoad(fileContents);
break;
// csv path
data = dsv.csvParse(fileContents);
} else if (ext === '.tsv') {
case '.csv':
data = dsv.csvParse(fileContents);
break;
// tsv path
data = dsv.tsvParse(fileContents);
} else {
case '.tsv':
data = dsv.tsvParse(fileContents);
break;
// aml path
data = archieml.load(fileContents);
case '.aml':
data = archieml.load(fileContents);
break;
}

@@ -58,0 +65,0 @@ }

{
"name": "quaff",
"version": "4.0.0",
"version": "4.1.0",
"description": "Collect JSON/YAML/YML/CSV/TSV files from a source folder and convert them into a single object.",
"main": "index.js",
"types": "types.d.ts",
"repository": "rdmurphy/quaff",

@@ -9,3 +11,4 @@ "author": "Ryan Murphy <ryan@rdmurphy.org>",

"files": [
"index.js"
"index.js",
"types.d.ts"
],

@@ -19,3 +22,4 @@ "engines": {

"coverage": "nyc --reporter=html --reporter=text mocha",
"coveralls": "nyc report --reporter=text-lcov | coveralls"
"coveralls": "nyc report --reporter=text-lcov | coveralls",
"release": "np --no-yarn"
},

@@ -32,16 +36,18 @@ "keywords": [

"devDependencies": {
"@types/node": "^11.10.4",
"@zeit/git-hooks": "^0.1.4",
"assert-rejects": "^1.0.0",
"coveralls": "^3.0.2",
"mocha": "^5.2.0",
"coveralls": "^3.0.3",
"mocha": "^6.0.2",
"mocha-lcov-reporter": "^1.0.0",
"nyc": "^13.1.0",
"np": "*",
"nyc": "^13.3.0",
"precise-commits": "^1.0.2",
"prettier": "^1.16.1"
"prettier": "^1.16.4"
},
"dependencies": {
"archieml": "^0.4.2",
"d3-dsv": "^1.0.10",
"d3-dsv": "^1.1.1",
"dset": "^2.0.1",
"js-yaml": "^3.12.1",
"js-yaml": "^3.12.2",
"parse-json": "^4.0.0",

@@ -48,0 +54,0 @@ "tiny-glob": "^0.2.6"

@@ -20,3 +20,3 @@ <p align="center">

- 📦 Point the library at a folder filled with JS, AML ([ArchieML](http://archieml.org)), JSON, YAML, CSV and/or TSV files and **get a JavaScript object back that reflects the folder's structure and content/exports**
- 🤓 Under the hood it uses [`parse-json`](https://github.com/sindresorhus/parse-json) (for better JSON error support), [`js-yaml`](https://github.com/nodeca/js-yaml) and [`d3-dsv`](https://github.com/d3/d3-dsv) to **read files efficently**
- 🤓 Under the hood it uses [`parse-json`](https://github.com/sindresorhus/parse-json) (for better JSON error support), [`js-yaml`](https://github.com/nodeca/js-yaml) and [`d3-dsv`](https://github.com/d3/d3-dsv) to **read files efficiently**

@@ -23,0 +23,0 @@ ## Installation

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