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

export-data

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

export-data - npm Package Compare versions

Comparing version 0.1.6 to 0.2.0

4

lib/cjs/components/FileDownloadLink.js

@@ -35,2 +35,3 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.FileDownloadLink = void 0;
const react_1 = __importStar(require("react"));

@@ -72,2 +73,3 @@ const utils_1 = require("../utils");

};
exports.default = FileDownloadLink;
exports.FileDownloadLink = FileDownloadLink;
exports.default = exports.FileDownloadLink;
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
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 __exportStar = (this && this.__exportStar) || function(m, exports) {
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.FileDownloadLink = void 0;
var FileDownloadLink_1 = require("./FileDownloadLink");
Object.defineProperty(exports, "FileDownloadLink", { enumerable: true, get: function () { return __importDefault(FileDownloadLink_1).default; } });
__exportStar(require("./FileDownloadLink"), exports);
import React from "react";
import { FileType } from "../types";
export type FileDownloadLinkData = {
columnNames: (string | number)[];
rows: (string | number)[][];
} | null;
export type FileDownloadLinkProps = {

@@ -9,6 +13,3 @@ /** The type of file to be exported. */

/** The data to download. Can be null if the data is set in onClick. */
data: {
columnNames: (string | number)[];
rows: (string | number)[][];
} | null;
data: FileDownloadLinkData;
/** The filename for the exported file. */

@@ -29,4 +30,4 @@ filename?: string;

};
declare const FileDownloadLink: ({ fileType, encoding, filename, data, onClick, setsDataAsyncInOnClick, children, }: FileDownloadLinkProps) => JSX.Element;
export declare const FileDownloadLink: ({ fileType, encoding, filename, data, onClick, setsDataAsyncInOnClick, children, }: FileDownloadLinkProps) => JSX.Element;
export default FileDownloadLink;
//# sourceMappingURL=FileDownloadLink.d.ts.map

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

export { default as FileDownloadLink } from "./FileDownloadLink";
export * from "./FileDownloadLink";
//# sourceMappingURL=index.d.ts.map
{
"name": "export-data",
"version": "0.1.6",
"version": "0.2.0",
"description": "Export data in React to CSV and other file formats",

@@ -5,0 +5,0 @@ "types": "./lib/cjs/types/index.d.ts",

@@ -39,6 +39,3 @@ # export-data

/** The data to download. Can be null if the data is set in onClick. */
data: {
columnNames: (string | number)[];
rows: (string | number)[][];
} | null;
data: FileDownloadLinkData;
/** The filename for the exported file. */

@@ -59,2 +56,7 @@ filename?: string;

};
export type FileDownloadLinkData = {
columnNames: (string | number)[];
rows: (string | number)[][];
} | null;
```

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