@sprucelabs/spruce-mmp-vc-plugin 2.1.5 → 2.1.6
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.
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { ViewControllerPlugin } from '@sprucelabs/heartwood-view-controllers';
|
|
2
|
-
import { AdjustMmpVcPluginSetupOptions } from './AdjustMmpVcPlugin';
|
|
2
|
+
import AdjustMmpVcPlugin, { AdjustMmpVcPluginSetupOptions } from './AdjustMmpVcPlugin';
|
|
3
3
|
import { MmpVcPlugin } from './mmp.types';
|
|
4
|
-
export default class MockAdjustMmpVcPlugin implements ViewControllerPlugin, MmpVcPlugin<Record<string, any>, Record<string, any>> {
|
|
4
|
+
export default class MockAdjustMmpVcPlugin extends AdjustMmpVcPlugin implements ViewControllerPlugin, MmpVcPlugin<Record<string, any>, Record<string, any>> {
|
|
5
|
+
constructor();
|
|
5
6
|
private lastSetupOptions?;
|
|
6
7
|
private lastTrackedEvent?;
|
|
7
8
|
setup(options: Record<string, any>): void;
|
|
@@ -1,7 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
2
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
6
|
const test_utils_1 = require("@sprucelabs/test-utils");
|
|
4
|
-
|
|
7
|
+
const AdjustMmpVcPlugin_1 = __importDefault(require("./AdjustMmpVcPlugin"));
|
|
8
|
+
class MockAdjustMmpVcPlugin extends AdjustMmpVcPlugin_1.default {
|
|
9
|
+
constructor() {
|
|
10
|
+
super({});
|
|
11
|
+
}
|
|
5
12
|
setup(options) {
|
|
6
13
|
this.lastSetupOptions = options;
|
|
7
14
|
}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { ViewControllerPlugin } from '@sprucelabs/heartwood-view-controllers';
|
|
2
|
-
import { AdjustMmpVcPluginSetupOptions } from './AdjustMmpVcPlugin';
|
|
2
|
+
import AdjustMmpVcPlugin, { AdjustMmpVcPluginSetupOptions } from './AdjustMmpVcPlugin';
|
|
3
3
|
import { MmpVcPlugin } from './mmp.types';
|
|
4
|
-
export default class MockAdjustMmpVcPlugin implements ViewControllerPlugin, MmpVcPlugin<Record<string, any>, Record<string, any>> {
|
|
4
|
+
export default class MockAdjustMmpVcPlugin extends AdjustMmpVcPlugin implements ViewControllerPlugin, MmpVcPlugin<Record<string, any>, Record<string, any>> {
|
|
5
|
+
constructor();
|
|
5
6
|
private lastSetupOptions?;
|
|
6
7
|
private lastTrackedEvent?;
|
|
7
8
|
setup(options: Record<string, any>): void;
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import { assert } from '@sprucelabs/test-utils';
|
|
2
|
-
|
|
2
|
+
import AdjustMmpVcPlugin from './AdjustMmpVcPlugin.js';
|
|
3
|
+
export default class MockAdjustMmpVcPlugin extends AdjustMmpVcPlugin {
|
|
4
|
+
constructor() {
|
|
5
|
+
super({});
|
|
6
|
+
}
|
|
3
7
|
setup(options) {
|
|
4
8
|
this.lastSetupOptions = options;
|
|
5
9
|
}
|
package/package.json
CHANGED
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"sprucebot",
|
|
14
14
|
"sprucelabs"
|
|
15
15
|
],
|
|
16
|
-
"version": "2.1.
|
|
16
|
+
"version": "2.1.6",
|
|
17
17
|
"scripts": {
|
|
18
18
|
"build.ci": "yarn run build.tsc && yarn run build.resolve-paths && yarn run lint",
|
|
19
19
|
"build.copy-files": "mkdir -p build && rsync -avzq --exclude='*.ts' ./src/ ./build/",
|