New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

falcor-electron

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

falcor-electron - npm Package Compare versions

Comparing version 0.1.8 to 0.2.0

.babelrc

22

lib/createIpcDataSource.js
'use strict';
Object.defineProperty(exports, '__esModule', {
Object.defineProperty(exports, "__esModule", {
value: true
});
exports['default'] = createIpcDataSource;
exports.default = createIpcDataSource;
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
var _nodeUuid = require('node-uuid');

@@ -14,9 +12,11 @@

var _createObservableJs = require('./createObservable.js');
var _createObservable = require('./createObservable.js');
var _createObservableJs2 = _interopRequireDefault(_createObservableJs);
var _createObservable2 = _interopRequireDefault(_createObservable);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
function createRequest(ipc, context) {
return (0, _createObservableJs2['default'])(function (observer) {
var currentRequestId = _nodeUuid2['default'].v1();
return (0, _createObservable2.default)(function (observer) {
var currentRequestId = _nodeUuid2.default.v1();
ipc.on('falcor:response', function handle(_ref) {

@@ -52,3 +52,2 @@ var requestId = _ref.requestId;

},
set: function set(jsonGraph) {

@@ -60,3 +59,2 @@ return createRequest(ipc, {

},
call: function call(callPath) {

@@ -76,4 +74,2 @@ var args = arguments.length <= 1 || arguments[1] === undefined ? [] : arguments[1];

};
}
module.exports = exports['default'];
}
'use strict';
Object.defineProperty(exports, '__esModule', {
Object.defineProperty(exports, "__esModule", {
value: true
});
exports['default'] = createObservable;
exports.default = createObservable;
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
var _lodash = require('lodash.partial');
var _lodashPartial = require('lodash.partial');
var _lodash2 = _interopRequireDefault(_lodash);
var _lodashPartial2 = _interopRequireDefault(_lodashPartial);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

@@ -29,6 +29,4 @@ function noop() {}

return {
subscribe: (0, _lodashPartial2['default'])(subscribe, subscriber)
subscribe: (0, _lodash2.default)(subscribe, subscriber)
};
}
module.exports = exports['default'];
}
"use strict";
var _slicedToArray = (function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"]) _i["return"](); } finally { if (_d) throw _e; } } return _arr; } return function (arr, i) { if (Array.isArray(arr)) { return arr; } else if (Symbol.iterator in Object(arr)) { return sliceIterator(arr, i); } else { throw new TypeError("Invalid attempt to destructure non-iterable instance"); } }; })();
Object.defineProperty(exports, "__esModule", {
value: true
});
var _slicedToArray = (function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"]) _i["return"](); } finally { if (_d) throw _e; } } return _arr; } return function (arr, i) { if (Array.isArray(arr)) { return arr; } else if (Symbol.iterator in Object(arr)) { return sliceIterator(arr, i); } else { throw new TypeError("Invalid attempt to destructure non-iterable instance"); } }; })();
exports["default"] = guard;
exports.default = guard;
function guard(pairs) {

@@ -20,4 +18,2 @@ return pairs.reverse().reduce(function (result, _ref) {

}, null);
}
module.exports = exports["default"];
}
'use strict';
Object.defineProperty(exports, '__esModule', {
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.createIpcDataSource = exports.installIpcHandler = undefined;
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
var _installIpcHandler2 = require('./installIpcHandler.js');
var _installIpcHandlerJs = require('./installIpcHandler.js');
var _installIpcHandler3 = _interopRequireDefault(_installIpcHandler2);
var _installIpcHandlerJs2 = _interopRequireDefault(_installIpcHandlerJs);
var _createIpcDataSource2 = require('./createIpcDataSource.js');
exports.installIpcHandler = _installIpcHandlerJs2['default'];
var _createIpcDataSource3 = _interopRequireDefault(_createIpcDataSource2);
var _createIpcDataSourceJs = require('./createIpcDataSource.js');
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
var _createIpcDataSourceJs2 = _interopRequireDefault(_createIpcDataSourceJs);
exports.createIpcDataSource = _createIpcDataSourceJs2['default'];
exports.installIpcHandler = _installIpcHandler3.default;
exports.createIpcDataSource = _createIpcDataSource3.default;
'use strict';
Object.defineProperty(exports, '__esModule', {
Object.defineProperty(exports, "__esModule", {
value: true
});
exports['default'] = installIpcHandler;
exports.default = installIpcHandler;
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
var _guard = require('./guard.js');
function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) arr2[i] = arr[i]; return arr2; } else { return Array.from(arr); } }
var _guard2 = _interopRequireDefault(_guard);
var _guardJs = require('./guard.js');
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
var _guardJs2 = _interopRequireDefault(_guardJs);
function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) arr2[i] = arr[i]; return arr2; } else { return Array.from(arr); } }

@@ -31,3 +31,3 @@ function installIpcHandler(ipc, getDataSource) {

var error = (0, _guardJs2['default'])([[Object.keys(context).length === 0, 'Request not supported.'], [typeof context.method === 'undefined', 'No query method provided.'], [typeof dataSource[context.method] === 'undefined', 'Data source does not implement the requested method.']]);
var error = (0, _guard2.default)([[Object.keys(context).length === 0, 'Request not supported.'], [typeof context.method === 'undefined', 'No query method provided.'], [typeof dataSource[context.method] === 'undefined', 'Data source does not implement the requested method.']]);

@@ -38,3 +38,3 @@ if (error) {

var args = (0, _guardJs2['default'])([[context.method === 'set', [context.jsonGraph]], [context.method === 'call', [context.callPath, context.arguments, context.pathSuffixes, context.paths]], [true, [[].concat(context.paths)]]]);
var args = (0, _guard2.default)([[context.method === 'set', [context.jsonGraph]], [context.method === 'call', [context.callPath, context.arguments, context.pathSuffixes, context.paths]], [true, [[].concat(context.paths)]]]);

@@ -51,4 +51,2 @@ var observable = dataSource[context.method].apply(dataSource, _toConsumableArray(args));

ipc.on('falcor:request', handleRequest);
}
module.exports = exports['default'];
}
{
"name": "falcor-electron",
"version": "0.1.8",
"version": "0.2.0",
"description": "falcor integration for electron's ipc module",

@@ -10,5 +10,5 @@ "main": "lib/index.js",

"lint": "eslint src",
"test": "babel-node --stage 0 ./node_modules/tape/bin/tape ./test/*.test.js",
"test": "babel-node ./node_modules/tape/bin/tape ./test/*.test.js",
"check": "npm run lint && npm run test",
"build": "babel src --stage 0 --out-dir lib",
"build": "babel src --out-dir lib",
"preversion": "npm run clean && npm run check",

@@ -22,13 +22,16 @@ "version": "npm run build",

"peerDependencies": {
"falcor": "0.1.13",
"falcor-router": "0.2.9"
"falcor": "0.1.x",
"falcor-router": "0.2.x"
},
"devDependencies": {
"babel": "5.8.23",
"babel-eslint": "4.1.3",
"babel": "6.0.15",
"babel-cli": "6.1.2",
"babel-eslint": "4.1.4",
"babel-preset-es2015": "6.1.2",
"babel-preset-stage-1": "6.1.2",
"eslint": "1.6.0",
"eslint-config-airbnb": "0.1.0",
"eslint-plugin-react": "3.5.1",
"falcor": "0.1.13",
"falcor-router": "0.2.9",
"falcor": "0.1.14",
"falcor-router": "0.2.11",
"rimraf": "2.4.3",

@@ -35,0 +38,0 @@ "tape": "4.2.1"

@@ -9,2 +9,8 @@ # falcor-electron

Install from npm.
```
npm install --save falcor-electron
```
Install your `Router` as a data source in the main process.

@@ -41,3 +47,6 @@

- Source is compiled with `babel` (stage 0)
- Source is compiled with `babel`
- Presets:
- `es2015`
- `stage-1`
- Source is linted with `eslint`

@@ -44,0 +53,0 @@ - Tests are run with `tape`

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