spacebro-client
Advanced tools
Comparing version 0.0.12-1 to 0.1.0
'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"); } }; }(); | ||
var _slicedToArray2 = require('babel-runtime/helpers/slicedToArray'); | ||
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; | ||
var _slicedToArray3 = _interopRequireDefault(_slicedToArray2); | ||
var _getIterator2 = require('babel-runtime/core-js/get-iterator'); | ||
var _getIterator3 = _interopRequireDefault(_getIterator2); | ||
var _typeof2 = require('babel-runtime/helpers/typeof'); | ||
var _typeof3 = _interopRequireDefault(_typeof2); | ||
var _socketioWildcard = require('socketio-wildcard'); | ||
@@ -27,4 +35,2 @@ | ||
require('babel-polyfill'); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
@@ -53,3 +59,3 @@ | ||
function connect(address, port, options) { | ||
if ((typeof address === 'undefined' ? 'undefined' : _typeof(address)) === 'object') { | ||
if ((typeof address === 'undefined' ? 'undefined' : (0, _typeof3.default)(address)) === 'object') { | ||
return connect(false, false, address); | ||
@@ -71,3 +77,3 @@ } | ||
try { | ||
for (var _iterator = config.packers[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) { | ||
for (var _iterator = (0, _getIterator3.default)(config.packers), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) { | ||
var packer = _step.value; | ||
@@ -97,3 +103,3 @@ | ||
try { | ||
for (var _iterator2 = config.unpackers[Symbol.iterator](), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = true) { | ||
for (var _iterator2 = (0, _getIterator3.default)(config.unpackers), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = true) { | ||
var unpacker = _step2.value; | ||
@@ -142,3 +148,3 @@ | ||
var _data2 = _slicedToArray(_data, 2); | ||
var _data2 = (0, _slicedToArray3.default)(_data, 2); | ||
@@ -155,3 +161,3 @@ var eventName = _data2[0]; | ||
try { | ||
for (var _iterator3 = filterHooks(eventName, unpackers)[Symbol.iterator](), _step3; !(_iteratorNormalCompletion3 = (_step3 = _iterator3.next()).done); _iteratorNormalCompletion3 = true) { | ||
for (var _iterator3 = (0, _getIterator3.default)(filterHooks(eventName, unpackers)), _step3; !(_iteratorNormalCompletion3 = (_step3 = _iterator3.next()).done); _iteratorNormalCompletion3 = true) { | ||
var unpack = _step3.value; | ||
@@ -206,3 +212,3 @@ | ||
try { | ||
for (var _iterator4 = filterHooks(eventName, packers)[Symbol.iterator](), _step4; !(_iteratorNormalCompletion4 = (_step4 = _iterator4.next()).done); _iteratorNormalCompletion4 = true) { | ||
for (var _iterator4 = (0, _getIterator3.default)(filterHooks(eventName, packers)), _step4; !(_iteratorNormalCompletion4 = (_step4 = _iterator4.next()).done); _iteratorNormalCompletion4 = true) { | ||
var pack = _step4.value; | ||
@@ -232,3 +238,3 @@ | ||
try { | ||
for (var _iterator5 = sockets[Symbol.iterator](), _step5; !(_iteratorNormalCompletion5 = (_step5 = _iterator5.next()).done); _iteratorNormalCompletion5 = true) { | ||
for (var _iterator5 = (0, _getIterator3.default)(sockets), _step5; !(_iteratorNormalCompletion5 = (_step5 = _iterator5.next()).done); _iteratorNormalCompletion5 = true) { | ||
var socket = _step5.value; | ||
@@ -235,0 +241,0 @@ socket.emit(eventName, data); |
{ | ||
"name": "spacebro-client", | ||
"version": "0.0.12-1", | ||
"version": "0.1.0", | ||
"description": "Allow to automagically 🌟 connect to a Spacebro server", | ||
@@ -9,6 +9,6 @@ "main": "dist/index.js", | ||
"example": "node ./example/ponger.js", | ||
"example-no-mdns": "node ./example/index-example-no-mdns.js", | ||
"example-no-mdns": "node ./example/pinger.js", | ||
"transform-example": "node ./node_modules/babel-cli/bin/babel ./example/src --out-dir ./example", | ||
"build": "babel src -d build", | ||
"start": "node ./example/index-example.js" | ||
"start": "gulp" | ||
}, | ||
@@ -38,2 +38,3 @@ "repository": { | ||
"dependencies": { | ||
"babel-runtime": "^6.11.6", | ||
"lodash": "3.10.1", | ||
@@ -47,3 +48,3 @@ "mdns": "2.2.11", | ||
"babel-cli": "^6.3.17", | ||
"babel-polyfill": "^6.13.0", | ||
"babel-plugin-transform-runtime": "^6.12.0", | ||
"babel-preset-es2015": "^6.3.13", | ||
@@ -59,4 +60,7 @@ "gulp": "^3.9.1", | ||
"es2015" | ||
], | ||
"plugins": [ | ||
"transform-runtime" | ||
] | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
0
23276
6
10
370
+ Addedbabel-runtime@^6.11.6
+ Addedbabel-runtime@6.26.0(transitive)
+ Addedcore-js@2.6.12(transitive)
+ Addedregenerator-runtime@0.11.1(transitive)