@sprucelabs/mercury-chunking-emitter 1.1.3 → 1.1.5
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.
|
@@ -9,7 +9,7 @@ class MockChunkingEmitter {
|
|
|
9
9
|
MockChunkingEmitter.lastInstance = this;
|
|
10
10
|
}
|
|
11
11
|
static getLastInstance() {
|
|
12
|
-
test_utils_1.assert.isTruthy(this.lastInstance, 'You have not constructed a ChunkingEmitter!
|
|
12
|
+
test_utils_1.assert.isTruthy(this.lastInstance, 'You have not constructed a ChunkingEmitter! Make sure you set ChunkingEmitterImpl.Class = MockChunkingEmitter in your beforeEach() and then ChunkingEmitterImpl.Emitter({}) in your production code somewhere!');
|
|
13
13
|
return this.lastInstance;
|
|
14
14
|
}
|
|
15
15
|
static reset() {
|
|
@@ -16,7 +16,7 @@ export default class MockChunkingEmitter {
|
|
|
16
16
|
MockChunkingEmitter.lastInstance = this;
|
|
17
17
|
}
|
|
18
18
|
static getLastInstance() {
|
|
19
|
-
assert.isTruthy(this.lastInstance, 'You have not constructed a ChunkingEmitter!
|
|
19
|
+
assert.isTruthy(this.lastInstance, 'You have not constructed a ChunkingEmitter! Make sure you set ChunkingEmitterImpl.Class = MockChunkingEmitter in your beforeEach() and then ChunkingEmitterImpl.Emitter({}) in your production code somewhere!');
|
|
20
20
|
return this.lastInstance;
|
|
21
21
|
}
|
|
22
22
|
static reset() {
|
package/build/esm/index.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export default
|
|
1
|
+
import { default as ChunkingEmitterImpl } from './chunkingEmitter/ChunkingEmitter';
|
|
2
|
+
export default ChunkingEmitterImpl;
|
|
3
|
+
export { ChunkingEmitter } from './chunkingEmitter/ChunkingEmitter';
|
|
3
4
|
export { default as MockChunkingEmitter } from './chunkingEmitter/MockChunkingEmitter';
|
package/build/esm/index.js
CHANGED
package/build/index.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export default
|
|
1
|
+
import { default as ChunkingEmitterImpl } from './chunkingEmitter/ChunkingEmitter';
|
|
2
|
+
export default ChunkingEmitterImpl;
|
|
3
|
+
export { ChunkingEmitter } from './chunkingEmitter/ChunkingEmitter';
|
|
3
4
|
export { default as MockChunkingEmitter } from './chunkingEmitter/MockChunkingEmitter';
|
package/build/index.js
CHANGED
|
@@ -4,5 +4,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.MockChunkingEmitter = void 0;
|
|
7
|
+
const ChunkingEmitter_1 = __importDefault(require("./chunkingEmitter/ChunkingEmitter"));
|
|
8
|
+
exports.default = ChunkingEmitter_1.default;
|
|
7
9
|
var MockChunkingEmitter_1 = require("./chunkingEmitter/MockChunkingEmitter");
|
|
8
10
|
Object.defineProperty(exports, "MockChunkingEmitter", { enumerable: true, get: function () { return __importDefault(MockChunkingEmitter_1).default; } });
|
package/package.json
CHANGED
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sprucelabs/mercury-chunking-emitter",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.5",
|
|
4
4
|
"files": [
|
|
5
5
|
"build/**/*",
|
|
6
6
|
"!build/__tests__",
|
|
7
7
|
"!build/esm/__tests__"
|
|
8
8
|
],
|
|
9
|
+
"main": "./build/index.js",
|
|
9
10
|
"types": "./build/index.d.ts",
|
|
11
|
+
"module": "./build/esm/index.js",
|
|
12
|
+
"sideEffects": false,
|
|
13
|
+
"license": "MIT",
|
|
10
14
|
"scripts": {
|
|
11
15
|
"build.ci": "yarn build.tsc && yarn build.resolve-paths && yarn lint",
|
|
12
16
|
"build.dev": "yarn build.tsc --sourceMap ; yarn resolve-paths.lint",
|