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

@cumulus/test-data

Package Overview
Dependencies
Maintainers
12
Versions
206
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cumulus/test-data - npm Package Compare versions

Comparing version 9.7.0 to 9.8.0

dist/tsconfig.tsbuildinfo

11

dist/index.js

@@ -10,3 +10,3 @@ "use strict";

const util_1 = require("util");
const readFile = util_1.promisify(fs_1.default.readFile);
const readFile = (0, util_1.promisify)(fs_1.default.readFile);
const testDataPath = (name) => path_1.default.join(__dirname, '..', name);

@@ -19,6 +19,7 @@ /**

*/
exports.loadTestData = (name) => {
const loadTestData = (name) => {
const filePath = testDataPath(name);
return readFile(filePath, 'utf8');
};
exports.loadTestData = loadTestData;
/**

@@ -30,3 +31,4 @@ * Read and parse JSON-formatted test data

*/
exports.loadJSONTestData = (name) => exports.loadTestData(name).then(JSON.parse);
const loadJSONTestData = (name) => (0, exports.loadTestData)(name).then(JSON.parse);
exports.loadJSONTestData = loadJSONTestData;
/**

@@ -38,6 +40,7 @@ * Get a stream containing test data

*/
exports.streamTestData = (name) => {
const streamTestData = (name) => {
const filePath = testDataPath(name);
return fs_1.default.createReadStream(filePath);
};
exports.streamTestData = streamTestData;
//# sourceMappingURL=index.js.map
{
"name": "@cumulus/test-data",
"version": "9.7.0",
"version": "9.8.0",
"description": "Includes the test data for various packages",

@@ -32,3 +32,3 @@ "keywords": [

"license": "Apache-2.0",
"gitHead": "08fb2c1d9113e7be465316f950d4ac9272bd3141"
"gitHead": "913034ba6814e562b7f3d58bb39cf086255a6efd"
}

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