@rpldy/life-events
Advanced tools
Comparing version 0.1.6 to 0.1.7
@@ -7,3 +7,6 @@ "use strict"; | ||
exports["default"] = void 0; | ||
var defaults = { | ||
var _shared = require("@rpldy/shared"); | ||
var defaults = (0, _shared.devFreeze)({ | ||
allowRegisterNonExistent: true, | ||
@@ -13,4 +16,4 @@ canAddEvents: true, | ||
collectStats: false | ||
}; | ||
}); | ||
var _default = defaults; | ||
exports["default"] = _default; |
@@ -8,2 +8,8 @@ "use strict"; | ||
}); | ||
Object.defineProperty(exports, "addLife", { | ||
enumerable: true, | ||
get: function get() { | ||
return _lifeEvents["default"]; | ||
} | ||
}); | ||
Object.defineProperty(exports, "isLE", { | ||
@@ -10,0 +16,0 @@ enumerable: true, |
@@ -106,16 +106,17 @@ "use strict"; | ||
}, {}); | ||
}; | ||
}; //using string keys here because can't rely on function names to stay after (babel/webpack) build | ||
var apiMethods = { | ||
trigger: trigger, | ||
addEvent: addEvent, | ||
removeEvent: removeEvent, | ||
hasEvent: hasEvent, | ||
hasEventRegistrations: hasEventRegistrations, | ||
assign: assign | ||
"trigger": trigger, | ||
"addEvent": addEvent, | ||
"removeEvent": removeEvent, | ||
"hasEvent": hasEvent, | ||
"hasEventRegistrations": hasEventRegistrations, | ||
"assign": assign | ||
}; | ||
var createApi = function createApi(target) { | ||
return Object.values(apiMethods).reduce(function (res, m) { | ||
res[m.name] = m.bind(target); | ||
return Object.keys(apiMethods).reduce(function (res, name) { | ||
res[name] = apiMethods[name].bind(target); | ||
return res; | ||
@@ -122,0 +123,0 @@ }, _objectSpread({ |
{ | ||
"version": "0.1.6", | ||
"version": "0.1.7", | ||
"name": "@rpldy/life-events", | ||
@@ -19,7 +19,7 @@ "description": "", | ||
"dependencies": { | ||
"@rpldy/shared": "^0.1.6", | ||
"@rpldy/shared": "^0.1.7", | ||
"is-promise": "^2.1.0" | ||
}, | ||
"devDependencies": { | ||
"flow-bin": "^0.119.1" | ||
"flow-bin": "^0.121.0" | ||
}, | ||
@@ -29,3 +29,3 @@ "publishConfig": { | ||
}, | ||
"gitHead": "45d0ec79b4858dea8022c8971f1f16e61a38c027" | ||
"gitHead": "0ac67a2893ef3a684b8cf1834590035065340366" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
34061
18
308
Updated@rpldy/shared@^0.1.7