futoin-invoker
Advanced tools
Comparing version 1.3.2 to 1.4.0
=== 1.4.0 (2017-08-18) === | ||
NEW: FTN7 v1.6 support | ||
=== 1.3.2 (2017-08-18) === | ||
NEW: auto fallback to "-internal" credentials for internal comms | ||
NEW: default TTL for CacheFace | ||
@@ -5,0 +9,0 @@ === 1.3.1 (2017-08-11) === |
{ | ||
"name": "futoin-invoker", | ||
"version": "1.3.2", | ||
"version": "1.4.0", | ||
"vcs": "git", | ||
@@ -5,0 +5,0 @@ "rms": "npm", |
{ | ||
"name": "futoin-invoker", | ||
"version": "1.3.2", | ||
"version": "1.4.0", | ||
"description": "FutoIn Invoker - Reference Implementation. Transparently and efficiently invoke remote or local service methods with strict API definition for Node and Browser", | ||
@@ -61,3 +61,3 @@ "main": "lib/invoker.js", | ||
"server-destroy": "^1.0.1", | ||
"webpack": "^3.5.3" | ||
"webpack": "^3.5.5" | ||
}, | ||
@@ -64,0 +64,0 @@ "eslintIgnore": [ |
@@ -314,19 +314,44 @@ var _ = require( 'lodash' ); | ||
if('should use "-internal" credentials', function(done){ | ||
it('should use "-internal" credentials', function(done){ | ||
var ifacedef = { | ||
name: 'internal.test', | ||
iface: 'internal.test', | ||
version: '1.0', | ||
ftn3rev: 1.7, | ||
ftn3rev: '1.7', | ||
}; | ||
assert.throws( function(){ | ||
ccm.register( as , 'mf', 'internal.test:1.0', | ||
'http://localhost:23456', null, | ||
{ specDirs: [ ifacedef ] } ); | ||
}, 'InvokerError' ); | ||
ccm.register( as , 'mf', 'internal.test:1.0', | ||
{ onInternalRequest: function(){} }, null, | ||
{ specDirs: [ ifacedef ] } ); | ||
as.add(function(as){ | ||
as.add( | ||
function(as) | ||
{ | ||
ccm.register( as , 'mf', 'internal.test:1.0', | ||
{ onInternalRequest: function(){} }, null, | ||
{ specDirs: [ ifacedef ] } ); | ||
}, | ||
function(as, err) | ||
{ | ||
done(err); | ||
} | ||
); | ||
as.add( | ||
function(as) | ||
{ | ||
ccm.register( as , 'mf2', 'internal.test:1.0', | ||
'http://localhost:23456', null, | ||
{ specDirs: [ ifacedef ] } ); | ||
}, | ||
function(as, err) | ||
{ | ||
if (err === 'SecurityError') | ||
{ | ||
as.success(); | ||
} else { | ||
console.log(as.state.error_info); | ||
done(err); | ||
} | ||
} | ||
); | ||
}) | ||
as.add(function(as) { done(); }); | ||
as.execute(); | ||
}); | ||
@@ -333,0 +358,0 @@ } ); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
588437
8336