Comparing version 2.0.2 to 2.0.3
@@ -10,1 +10,2 @@ export { HttpClientLink } from "./src/nodejs/client-link"; | ||
export { DsError } from "./src/common/interfaces"; | ||
export { Logger, logger } from "./src/utils/logger"; |
@@ -22,2 +22,5 @@ "use strict"; | ||
exports.DsError = interfaces_1.DsError; | ||
var logger_1 = require("./src/utils/logger"); | ||
exports.Logger = logger_1.Logger; | ||
exports.logger = logger_1.logger; | ||
//# sourceMappingURL=node.js.map |
@@ -19,1 +19,6 @@ import { BaseLocalNode } from "../responder/base-local-node"; | ||
} | ||
export declare class RootMockNode extends MockNode { | ||
constructor(data?: { | ||
[key: string]: any; | ||
}); | ||
} |
@@ -6,2 +6,3 @@ "use strict"; | ||
const MockAction_1 = require("./MockAction"); | ||
const node_state_1 = require("../responder/node_state"); | ||
class MockNode extends base_local_node_1.BaseLocalNode { | ||
@@ -71,2 +72,12 @@ constructor() { | ||
exports.MockNode = MockNode; | ||
class RootMockNode extends MockNode { | ||
constructor(data) { | ||
super('/', new node_state_1.NodeProvider()); | ||
this.provider.setRoot(this); | ||
if (data) { | ||
this.load(data); | ||
} | ||
} | ||
} | ||
exports.RootMockNode = RootMockNode; | ||
class AddChildAction extends action_node_1.ActionNode { | ||
@@ -73,0 +84,0 @@ onInvoke(params, parentNode) { |
{ | ||
"name": "dslink", | ||
"license": "Apache-2.0", | ||
"version": "2.0.2", | ||
"version": "2.0.3", | ||
"main": "js/node.js", | ||
@@ -6,0 +6,0 @@ "repository": { |
@@ -11,1 +11,2 @@ export {HttpClientLink} from "./src/nodejs/client-link"; | ||
export {DsError} from "./src/common/interfaces"; | ||
export {Logger, logger} from "./src/utils/logger"; |
import {BaseLocalNode} from "../responder/base-local-node"; | ||
import {ActionNode} from "../responder/node/action-node"; | ||
import {MockActionNode} from "./MockAction"; | ||
import {NodeProvider} from "../responder/node_state"; | ||
@@ -75,2 +76,12 @@ export class MockNode extends BaseLocalNode { | ||
export class RootMockNode extends MockNode { | ||
constructor(data?: {[key: string]: any}) { | ||
super('/', new NodeProvider()); | ||
this.provider.setRoot(this); | ||
if (data) { | ||
this.load(data); | ||
} | ||
} | ||
} | ||
class AddChildAction extends ActionNode { | ||
@@ -77,0 +88,0 @@ onInvoke(params: {[key: string]: any}, parentNode: MockNode) { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
14206
463862
151