Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

futoin-invoker

Package Overview
Dependencies
Maintainers
1
Versions
92
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

futoin-invoker - npm Package Compare versions

Comparing version 1.9.1 to 1.9.2

4

CHANGELOG.txt
=== 1.9.2 (2018-05-23) ===
FIXED: improved browser tests to use dist module
NEW: module exports Errors as alias of legacy FutoInError
=== 1.9.1 (2018-05-23) ===

@@ -3,0 +7,0 @@ FIXED: improved CBOR encoding performance by using "cbor" over "borc"

@@ -35,2 +35,3 @@ "use strict";

exports.FutoInError = common.FutoInError;
exports.Errors = common.FutoInError;
exports.InterfaceInfo = require('../InterfaceInfo');

@@ -37,0 +38,0 @@ exports.NativeIface = require('../NativeIface');

8

es5/test/codertest.js

@@ -8,7 +8,7 @@ 'use strict';

var MessageCoder = require('../MessageCoder');
require('../lib/JSONCoder').register();
require('../lib/CBORCoder').register();
require('../lib/MsgPackCoder').register();
var is_browser = typeof window !== 'undefined';
var _ref = is_browser ? require('futoin-invoker') : module.require('../lib/invoker'),
MessageCoder = _ref.MessageCoder;
var BENCH_COUNT = 10e3; // 100e3 has issues with CBOR

@@ -15,0 +15,0 @@

'use strict';
var expect;
var expect = require('chai').expect;
if (typeof chai !== 'undefined') {
expect = chai.expect;
} else {
expect = module.require('chai').expect;
}
var fail_next = false;

@@ -27,3 +21,3 @@ var log_count = 0;

return null;
} else if (func[2] === 'hexdump' && freq.p.data.toString() !== new Buffer('HEXDATA').toString('base64')) {
} else if (func[2] === 'hexdump' && freq.p.data.toString() !== Buffer.from('HEXDATA').toString('base64')) {
return null;

@@ -148,2 +142,6 @@ }

}
if (typeof window !== 'undefined') {
window.processServerRequest = processServerRequest;
}
//# sourceMappingURL=server_func.js.map

@@ -5,10 +5,13 @@ 'use strict';

var assert;
var expect;
var chai = require('chai');
var assert = chai.assert,
expect = chai.expect;
var _cloneDeep = require('lodash/cloneDeep');
var is_browser = typeof window !== 'undefined';
var isNode = !is_browser;
var async_steps = require('futoin-asyncsteps');
var _ = require('lodash');
var common = require('../lib/common');
var isNode = common._isNode;
var invoker;
var as;
var invoker = is_browser ? require('futoin-invoker') : module.require('../lib/invoker');

@@ -20,19 +23,5 @@ var $as_test = require('futoin-asyncsteps/testcase');

if (!isNode) {
// Browser test
assert = chai.assert;
expect = chai.expect;
thisDir = '.';
invoker = FutoInInvoker;
} else {
// Node test
var chai_module = module.require('chai');
assert = chai_module.assert;
expect = chai_module.expect;
thisDir = __dirname;
invoker = module.require('../lib/invoker.js');
var crypto = module.require('crypto');

@@ -48,2 +37,4 @@ }

var as = void 0;
beforeEach(function () {

@@ -627,3 +618,3 @@ as = async_steps();

as.add(function (as) {
var spec = _.cloneDeep(testspec);
var spec = _cloneDeep(testspec);

@@ -661,3 +652,3 @@ spec.funcs.missingParam = {

as.add(function (as) {
var spec = _.cloneDeep(testspec);
var spec = _cloneDeep(testspec);

@@ -693,3 +684,3 @@ spec.funcs.missingResult = {

as.add(function (as) {
var spec = _.cloneDeep(testspec);
var spec = _cloneDeep(testspec);

@@ -720,3 +711,3 @@ spec.funcs.missingResult = {

as.add(function (as) {
var spec = _.cloneDeep(testspec);
var spec = _cloneDeep(testspec);

@@ -749,3 +740,3 @@ spec.funcs.missingResult = {

as.add(function (as) {
var spec = _.cloneDeep(testspec);
var spec = _cloneDeep(testspec);

@@ -776,3 +767,3 @@ spec.funcs.missingResult = {

as.add(function (as) {
var spec = _.cloneDeep(testspec);
var spec = _cloneDeep(testspec);

@@ -805,3 +796,3 @@ spec.funcs.missingResult = {

as.add(function (as) {
var spec = _.cloneDeep(testspec);
var spec = _cloneDeep(testspec);

@@ -837,3 +828,3 @@ spec.funcs.missingResult = {

as.add(function (as) {
var spec = _.cloneDeep(testspec);
var spec = _cloneDeep(testspec);

@@ -870,3 +861,3 @@ spec.funcs.missingResult = {

as.add(function (as) {
var spec = _.cloneDeep(testspec);
var spec = _cloneDeep(testspec);

@@ -873,0 +864,0 @@ spec.funcs.missingResult = {

@@ -13,12 +13,22 @@ 'use strict';

var _ = require('lodash');
var common = require('../lib/common');
var isNode = common._isNode;
var assert;
var expect;
var async_steps;
var invoker;
var as;
var ccm;
var _isEmpty = require('lodash/isEmpty');
var is_browser = typeof window !== 'undefined';
var invoker = is_browser ? require('futoin-invoker') : module.require('../lib/invoker');
var isNode = !is_browser;
var chai = require('chai');
var assert = chai.assert,
expect = chai.expect;
var async_steps = require('futoin-asyncsteps');
var as = void 0;
var ccm = void 0;
var MessageCoder = invoker.MessageCoder,
LogFace = invoker.LogFace,
CacheFace = invoker.CacheFace;
var createTestHttpServer;

@@ -30,7 +40,3 @@ var closeTestHttpServer;

if (!isNode) {
// Browser test
assert = chai.assert;
expect = chai.expect;
if (is_browser) {
createTestHttpServer = function createTestHttpServer(cb) {

@@ -46,13 +52,10 @@ cb();

invoker = FutoInInvoker;
async_steps = $as;
expect(window.FutoInInvoker).to.equal(invoker);
coders = { JSON: true };
coders = {
JSON: true
// CBOR: true,
// MPCK: true,
};
} else {
// Node test
var chai_module = module.require('chai');
assert = chai_module.assert;
expect = chai_module.expect;
var node_server = module.require('./node_server.js');

@@ -65,8 +68,5 @@

invoker = module.require('../lib/invoker.js');
async_steps = module.require('futoin-asyncsteps');
coders = {
JSON: true,
//CBOR: true,
CBOR: true,
MPCK: true

@@ -76,5 +76,2 @@ };

var logface = invoker.LogFace;
var cacheface = invoker.CacheFace;
var TestMasterAuth = function (_invoker$MasterAuth) {

@@ -887,4 +884,4 @@ _inherits(TestMasterAuth, _invoker$MasterAuth);

expect(info.inherits().length).equal(0);
expect(_.isEmpty(info.funcs())).be.true;
expect(_.isEmpty(info.constraints())).be.true;
expect(_isEmpty(info.funcs())).be.true;
expect(_isEmpty(info.constraints())).be.true;

@@ -1053,4 +1050,4 @@ var iface = ccm.iface('myiface');

expect(info.inherits().length).equal(1);
expect(_.isEmpty(info.funcs())).be.false;
expect(_.isEmpty(info.constraints())).be.false;
expect(_isEmpty(info.funcs())).be.false;
expect(_isEmpty(info.constraints())).be.false;

@@ -1439,3 +1436,3 @@ var iface = ccm.iface('myiface');

as.add(function (as) {
logface.register(as, ccm, 'secure+ws://localhost:23456/ftn');
LogFace.register(as, ccm, 'secure+ws://localhost:23456/ftn');
ccm.register(as, 'myiface', 'fileface.a:1.1', 'secure+ws://localhost:23456/ftn');

@@ -1520,3 +1517,3 @@

as.add(function (as) {
cacheface.register(as, ccm, 'my', 'secure+ws://localhost:23456/ftn', 'login:pass');
CacheFace.register(as, ccm, 'my', 'secure+ws://localhost:23456/ftn', 'login:pass');
ccm.register(as, 'myiface', 'fileface.a:1.1', 'secure+ws://localhost:23456/ftn');

@@ -1631,4 +1628,2 @@

}
var _exports = {};
//# sourceMappingURL=unittest.js.map
{
"name": "futoin-invoker",
"version": "1.9.1",
"version": "1.9.2",
"vcs": "git",

@@ -5,0 +5,0 @@ "rms": "npm",

@@ -35,2 +35,3 @@ "use strict";

exports.FutoInError = common.FutoInError;
exports.Errors = common.FutoInError;
exports.InterfaceInfo = require( '../InterfaceInfo' );

@@ -37,0 +38,0 @@ exports.NativeIface = require( '../NativeIface' );

{
"name": "futoin-invoker",
"version": "1.9.1",
"version": "1.9.2",
"description": "Transparently, efficiently and securely invoke remote or local service methods with strict API definition for Node and Browser",

@@ -58,3 +58,3 @@ "main": "lib/invoker.js",

"faye-websocket": "^0.11.1",
"futoin-asyncevent": "^1.0.1",
"futoin-asyncevent": "^1.0.2",
"lodash": "^4.17.10",

@@ -75,3 +75,3 @@ "msgpack-lite": "^0.1.26",

"eslint": "^4.19.1",
"futoin-asyncsteps": "^1.11.4",
"futoin-asyncsteps": "^1.11.5",
"grunt": "^1.0.2",

@@ -93,3 +93,3 @@ "grunt-babel": "^7.0.0",

"peerDependencies": {
"futoin-asyncsteps": "^1.11.4"
"futoin-asyncsteps": "^1.11.5"
},

@@ -96,0 +96,0 @@ "optionalDependencies": {

Sorry, the diff of this file is too big to display

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

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc