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

@json2csv/plainjs

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@json2csv/plainjs - npm Package Compare versions

Comparing version 7.0.0 to 7.0.1

2

dist/cjs/BaseParser.d.ts

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

import type Formatter from '@json2csv/formatters/Formatter.js';
import { type Formatter } from '@json2csv/formatters';
import type Transform from './types/Transform.js';

@@ -3,0 +3,0 @@ export interface FieldValueGetterInfo<FT> {

"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() { return m[k]; } };
}
Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
o["default"] = v;
});
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
__setModuleDefault(result, mod);
return result;
};
var __importDefault = (this && this.__importDefault) || function (mod) {

@@ -8,7 +31,3 @@ return (mod && mod.__esModule) ? mod : { "default": mod };

const lodash_get_1 = __importDefault(require("lodash.get"));
const default_js_1 = __importDefault(require("@json2csv/formatters/default.js"));
const number_js_1 = __importDefault(require("@json2csv/formatters/number.js"));
const string_js_1 = __importDefault(require("@json2csv/formatters/string.js"));
const symbol_js_1 = __importDefault(require("@json2csv/formatters/symbol.js"));
const object_js_1 = __importDefault(require("@json2csv/formatters/object.js"));
const formatters_1 = __importStar(require("@json2csv/formatters"));
const utils_js_1 = require("./utils.js");

@@ -44,12 +63,12 @@ var FormatterTypes;

const stringFormatter = (processedOpts.formatters && processedOpts.formatters['string']) ||
(0, string_js_1.default)();
const objectFormatter = (0, object_js_1.default)({ stringFormatter });
(0, formatters_1.string)();
const objectFormatter = (0, formatters_1.object)({ stringFormatter });
const defaultFormatters = {
header: stringFormatter,
undefined: default_js_1.default,
boolean: default_js_1.default,
number: (0, number_js_1.default)(),
bigint: default_js_1.default,
undefined: formatters_1.default,
boolean: formatters_1.default,
number: (0, formatters_1.number)(),
bigint: formatters_1.default,
string: stringFormatter,
symbol: (0, symbol_js_1.default)({ stringFormatter }),
symbol: (0, formatters_1.symbol)({ stringFormatter }),
function: objectFormatter,

@@ -56,0 +75,0 @@ object: objectFormatter,

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

import type Formatter from '@json2csv/formatters/Formatter.js';
import { type Formatter } from '@json2csv/formatters';
import type Transform from './types/Transform.js';

@@ -3,0 +3,0 @@ export interface FieldValueGetterInfo<FT> {

import lodashGet from 'lodash.get';
import defaultFormatter from '@json2csv/formatters/default.js';
import numberFormatterCtor from '@json2csv/formatters/number.js';
import stringFormatterCtor from '@json2csv/formatters/string.js';
import symbolFormatterCtor from '@json2csv/formatters/symbol.js';
import objectFormatterCtor from '@json2csv/formatters/object.js';
import { default as defaultFormatter, number as numberFormatterCtor, string as stringFormatterCtor, symbol as symbolFormatterCtor, object as objectFormatterCtor, } from '@json2csv/formatters';
import { getProp, flattenReducer, fastJoin } from './utils.js';

@@ -8,0 +4,0 @@ export var FormatterTypes;

{
"name": "@json2csv/plainjs",
"version": "7.0.0",
"version": "7.0.1",
"description": "Pure Javascript JSON to CSV converter.",

@@ -51,6 +51,6 @@ "keywords": [

"dependencies": {
"@json2csv/formatters": "^7.0.0",
"@streamparser/json": "^0.0.14",
"@json2csv/formatters": "^7.0.1",
"@streamparser/json": "^0.0.15",
"lodash.get": "^4.4.2"
}
}
import lodashGet from 'lodash.get';
import type Formatter from '@json2csv/formatters/Formatter.js';
import defaultFormatter from '@json2csv/formatters/default.js';
import numberFormatterCtor from '@json2csv/formatters/number.js';
import stringFormatterCtor from '@json2csv/formatters/string.js';
import symbolFormatterCtor from '@json2csv/formatters/symbol.js';
import objectFormatterCtor from '@json2csv/formatters/object.js';
import {
type Formatter,
default as defaultFormatter,
number as numberFormatterCtor,
string as stringFormatterCtor,
symbol as symbolFormatterCtor,
object as objectFormatterCtor,
} from '@json2csv/formatters';
import type Transform from './types/Transform.js';

@@ -9,0 +11,0 @@ import { getProp, flattenReducer, fastJoin } from './utils.js';

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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