sling-web-helpers
Advanced tools
Comparing version 0.8.0 to 0.9.0
@@ -1,2 +0,2 @@ | ||
"use strict"; | ||
'use strict'; | ||
@@ -6,2 +6,11 @@ Object.defineProperty(exports, "__esModule", { | ||
}); | ||
var _makeRequest = require('./makeRequest.js'); | ||
Object.defineProperty(exports, 'makeRequest', { | ||
enumerable: true, | ||
get: function get() { | ||
return _makeRequest.makeRequest; | ||
} | ||
}); | ||
var waitUntilEvent = exports.waitUntilEvent = function waitUntilEvent(name) { | ||
@@ -8,0 +17,0 @@ var $el = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : document; |
@@ -11,2 +11,11 @@ 'use strict'; | ||
var _matchesDescription = require('./matchesDescription.js'); | ||
Object.defineProperty(exports, 'matchesDescription', { | ||
enumerable: true, | ||
get: function get() { | ||
return _matchesDescription.matchesDescription; | ||
} | ||
}); | ||
function _toArray(arr) { return Array.isArray(arr) ? arr : Array.from(arr); } | ||
@@ -109,3 +118,3 @@ | ||
var groupByDeep = exports.groupByDeep = function groupByDeep(collection) { | ||
var groupByDeep = exports.groupByDeep = function groupByDeep() { | ||
for (var _len = arguments.length, iteratees = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { | ||
@@ -115,2 +124,4 @@ iteratees[_key - 1] = arguments[_key]; | ||
var collection = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : []; | ||
var paths = collection.map(function (value) { | ||
@@ -117,0 +128,0 @@ return iteratees.map(function (iteratee) { |
@@ -0,1 +1,3 @@ | ||
export { makeRequest } from './makeRequest.js'; | ||
export const waitUntilEvent = (name, $el = document) => new Promise(resolve => { | ||
@@ -2,0 +4,0 @@ const handleEvent = () => { |
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; | ||
export { matchesDescription } from './matchesDescription.js'; | ||
export const isString = arg => typeof arg === 'string' || arg instanceof String; | ||
@@ -44,3 +46,3 @@ | ||
export const groupByDeep = (collection, ...iteratees) => { | ||
export const groupByDeep = (collection = [], ...iteratees) => { | ||
const paths = collection.map(value => iteratees.map(iteratee => iteratee(value))); | ||
@@ -47,0 +49,0 @@ |
{ | ||
"name": "sling-web-helpers", | ||
"version": "0.8.0", | ||
"version": "0.9.0", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "dist/cjs/index.js", |
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
37237
28
787
2