orchestrator-core
Advanced tools
Comparing version 4.10.0-dev.20200831.592468f to 4.10.0-dev.20200903.9e3dba0
@@ -5,3 +5,3 @@ { | ||
"description": "Orchestrator for Node.js", | ||
"version": "4.10.0-dev.20200831.592468f", | ||
"version": "4.10.0-dev.20200903.9e3dba0", | ||
"license": "MIT", | ||
@@ -25,3 +25,3 @@ "keywords": [ | ||
"bindings": "1.2.1", | ||
"node-addon-api": "3.0.0", | ||
"node-addon-api": "^3.0.0", | ||
"node-gyp": "7.0.0", | ||
@@ -37,5 +37,5 @@ "node-pre-gyp": "0.15.0" | ||
"cross-env": "^7.0.2", | ||
"fast-text-encoding": "^1.0.3", | ||
"mocha": "^5.2.0", | ||
"nyc": "^15.0.0", | ||
"fast-text-encoding": "^1.0.3" | ||
"nyc": "^15.1.0" | ||
}, | ||
@@ -42,0 +42,0 @@ "scripts": { |
@@ -87,3 +87,4 @@ // Copyright (c) Microsoft Corporation. All rights reserved. | ||
this.orchestrator = new oc.Orchestrator(); | ||
var onnx_dir = findOnnxDir(3); | ||
var onnx_dir = findOnnxDir(1); | ||
console.log(`DEBUGGING - oc_node_authoring: Orchestrator.before(): onnx_dir=${onnx_dir}`); | ||
@@ -118,15 +119,20 @@ const load_result = this.orchestrator.load(onnx_dir); | ||
it('should create a LabelResolver without a NLR nodel, but with a BLU snapshot.', function () { | ||
this.timeout(10000); | ||
this.timeout(100000); | ||
const orchestrator = new oc.Orchestrator(); | ||
console.log(`DEBUGGING - oc_node_authoring: __dirname=${__dirname}`); | ||
assert.ok(orchestrator.load(), 'cannot load without a NLR'); | ||
const snapshotPath = path.join(__dirname, 'snapshot', 'Email.blu'); | ||
console.log(`DEBUGGING - oc_node_authoring: snapshotPath=${snapshotPath}`); | ||
assert.ok(fs.existsSync(snapshotPath), `snapshot file ${snapshotPath} does not exist`); | ||
const snapshotContent = new TextEncoder().encode(fs.readFileSync(snapshotPath, 'utf8')); | ||
console.log(`DEBUGGING - oc_node_authoring: snapshotContent.length=${snapshotContent.length}`); | ||
assert.ok(snapshotContent.length > 0, `snapshot content length is ${snapshotContent.length}`); | ||
const labelResolver = orchestrator.createLabelResolver(snapshotContent); | ||
console.log(`DEBUGGING - oc_node_authoring: labelResolver=${labelResolver}`); | ||
assert.ok(labelResolver !== undefined, 'cannot create a labelResolver object'); | ||
const examples = labelResolver.getExamples(); | ||
console.log(`DEBUGGING - oc_node_authoring: examples=${examples}`); | ||
console.log(`DEBUGGING - oc_node_authoring: examples.length=${examples.length}`); | ||
assert.ok(examples.length === 601, `#examples is ${examples.length}`); | ||
@@ -173,3 +179,3 @@ }); | ||
var orc = new oc.Orchestrator(); | ||
var onnx_dir = findOnnxDir(3); | ||
var onnx_dir = findOnnxDir(1); | ||
orc.load(onnx_dir); | ||
@@ -184,2 +190,3 @@ var labeler = orc.createLabelResolver(); | ||
var result = labeler.addExample(example); | ||
console.log(`DEBUGGING - oc_node_authoring: after calling labeler.addExample(), result=${result}, example=${example}`); | ||
assert.strictEqual(result, true, 'Failed to add example'); | ||
@@ -191,2 +198,3 @@ const example2 = { | ||
result = labeler.removeExample(example2); | ||
console.log(`DEBUGGING - oc_node_authoring: after calling labeler.removeExample(), result=${result}, example2=${example2}`); | ||
assert.strictEqual(result, true, 'Failed to remove example'); | ||
@@ -193,0 +201,0 @@ }); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
334
282144
25
+ Addednode-addon-api@3.2.1(transitive)
- Removednode-addon-api@3.0.0(transitive)
Updatednode-addon-api@^3.0.0