@cumulus/test-data 21.0.0-echo10-alpha → 21.0.0-echo10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -2
- package/cumulus-test-data-21.0.0-echo10-alpha.tgz +0 -0
- package/src/index.d.ts +0 -23
- package/src/index.d.ts.map +0 -1
- package/src/index.js +0 -42
- package/src/index.js.map +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cumulus/test-data",
|
|
3
|
-
"version": "21.0.0-echo10
|
|
3
|
+
"version": "21.0.0-echo10",
|
|
4
4
|
"description": "Includes the test data for various packages",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"GIBS",
|
|
@@ -28,5 +28,5 @@
|
|
|
28
28
|
},
|
|
29
29
|
"author": "Cumulus Authors",
|
|
30
30
|
"license": "Apache-2.0",
|
|
31
|
-
"gitHead": "
|
|
31
|
+
"gitHead": "b0560aa0ef1d3b7401eedc4a4ba90f57f16bcda3"
|
|
32
32
|
}
|
|
Binary file
|
package/src/index.d.ts
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import fs from 'fs';
|
|
2
|
-
/**
|
|
3
|
-
* Read test data in as a string
|
|
4
|
-
*
|
|
5
|
-
* @param {string} name - the path to the test data
|
|
6
|
-
* @returns {Promise<string>} the test data as a string
|
|
7
|
-
*/
|
|
8
|
-
export declare const loadTestData: (name: string) => Promise<string>;
|
|
9
|
-
/**
|
|
10
|
-
* Read and parse JSON-formatted test data
|
|
11
|
-
*
|
|
12
|
-
* @param {string} name - the path to the test data
|
|
13
|
-
* @returns {Promise<unknown>} the test data parsed into Javascript
|
|
14
|
-
*/
|
|
15
|
-
export declare const loadJSONTestData: (name: string) => Promise<unknown>;
|
|
16
|
-
/**
|
|
17
|
-
* Get a stream containing test data
|
|
18
|
-
*
|
|
19
|
-
* @param {string} name - the path to the test data
|
|
20
|
-
* @returns {Stream} the test data as a writable stream
|
|
21
|
-
*/
|
|
22
|
-
export declare const streamTestData: (name: string) => fs.ReadStream;
|
|
23
|
-
//# sourceMappingURL=index.d.ts.map
|
package/src/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,IAAI,CAAC;AASpB;;;;;GAKG;AACH,eAAO,MAAM,YAAY,SAAU,MAAM,KAAG,QAAQ,MAAM,CAGzD,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,gBAAgB,SAAU,MAAM,KAAG,QAAQ,OAAO,CAC1B,CAAC;AAEtC;;;;;GAKG;AACH,eAAO,MAAM,cAAc,SAAU,MAAM,KAAG,GAAG,UAGhD,CAAC"}
|
package/src/index.js
DELETED
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.streamTestData = exports.loadJSONTestData = exports.loadTestData = void 0;
|
|
7
|
-
const fs_1 = __importDefault(require("fs"));
|
|
8
|
-
const path_1 = __importDefault(require("path"));
|
|
9
|
-
const util_1 = require("util");
|
|
10
|
-
const readFile = (0, util_1.promisify)(fs_1.default.readFile);
|
|
11
|
-
const testDataPath = (name) => path_1.default.join(__dirname, '..', name);
|
|
12
|
-
/**
|
|
13
|
-
* Read test data in as a string
|
|
14
|
-
*
|
|
15
|
-
* @param {string} name - the path to the test data
|
|
16
|
-
* @returns {Promise<string>} the test data as a string
|
|
17
|
-
*/
|
|
18
|
-
const loadTestData = (name) => {
|
|
19
|
-
const filePath = testDataPath(name);
|
|
20
|
-
return readFile(filePath, 'utf8');
|
|
21
|
-
};
|
|
22
|
-
exports.loadTestData = loadTestData;
|
|
23
|
-
/**
|
|
24
|
-
* Read and parse JSON-formatted test data
|
|
25
|
-
*
|
|
26
|
-
* @param {string} name - the path to the test data
|
|
27
|
-
* @returns {Promise<unknown>} the test data parsed into Javascript
|
|
28
|
-
*/
|
|
29
|
-
const loadJSONTestData = (name) => (0, exports.loadTestData)(name).then(JSON.parse);
|
|
30
|
-
exports.loadJSONTestData = loadJSONTestData;
|
|
31
|
-
/**
|
|
32
|
-
* Get a stream containing test data
|
|
33
|
-
*
|
|
34
|
-
* @param {string} name - the path to the test data
|
|
35
|
-
* @returns {Stream} the test data as a writable stream
|
|
36
|
-
*/
|
|
37
|
-
const streamTestData = (name) => {
|
|
38
|
-
const filePath = testDataPath(name);
|
|
39
|
-
return fs_1.default.createReadStream(filePath);
|
|
40
|
-
};
|
|
41
|
-
exports.streamTestData = streamTestData;
|
|
42
|
-
//# sourceMappingURL=index.js.map
|
package/src/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;;;AAAA,4CAAoB;AACpB,gDAAwB;AACxB,+BAAiC;AAEjC,MAAM,QAAQ,GAAG,IAAA,gBAAS,EAAC,YAAE,CAAC,QAAQ,CAAC,CAAC;AAExC,MAAM,YAAY,GAAG,CAAC,IAAY,EAAU,EAAE,CAC5C,cAAI,CAAC,IAAI,CAAC,SAAS,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;AAEnC;;;;;GAKG;AACI,MAAM,YAAY,GAAG,CAAC,IAAY,EAAmB,EAAE;IAC5D,MAAM,QAAQ,GAAG,YAAY,CAAC,IAAI,CAAC,CAAC;IACpC,OAAO,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC;AACpC,CAAC,CAAC;AAHW,QAAA,YAAY,gBAGvB;AAEF;;;;;GAKG;AACI,MAAM,gBAAgB,GAAG,CAAC,IAAY,EAAoB,EAAE,CACjE,IAAA,oBAAY,EAAC,IAAI,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;AADzB,QAAA,gBAAgB,oBACS;AAEtC;;;;;GAKG;AACI,MAAM,cAAc,GAAG,CAAC,IAAY,EAAiB,EAAE;IAC5D,MAAM,QAAQ,GAAG,YAAY,CAAC,IAAI,CAAC,CAAC;IACpC,OAAO,YAAE,CAAC,gBAAgB,CAAC,QAAQ,CAAC,CAAC;AACvC,CAAC,CAAC;AAHW,QAAA,cAAc,kBAGzB"}
|