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

@rpldy/life-events

Package Overview
Dependencies
Maintainers
1
Versions
98
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@rpldy/life-events - npm Package Compare versions

Comparing version 0.14.2 to 0.15.0

18

lib/cjs/index.js

@@ -6,3 +6,3 @@ "use strict";

});
Object.defineProperty(exports, "default", {
Object.defineProperty(exports, "addLife", {
enumerable: true,

@@ -13,18 +13,18 @@ get: function () {

});
Object.defineProperty(exports, "addLife", {
Object.defineProperty(exports, "createLifePack", {
enumerable: true,
get: function () {
return _lifeEvents.default;
return _lifePack.default;
}
});
Object.defineProperty(exports, "isLE", {
Object.defineProperty(exports, "default", {
enumerable: true,
get: function () {
return _lifeEvents.isLE;
return _lifeEvents.default;
}
});
Object.defineProperty(exports, "createLifePack", {
Object.defineProperty(exports, "isLE", {
enumerable: true,
get: function () {
return _lifePack.default;
return _lifeEvents.isLE;
}

@@ -39,4 +39,4 @@ });

function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function () { return cache; }; return cache; }
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }

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

const addRegistration = (obj, name, cb, once = false) => {
const addRegistration = function (obj, name, cb) {
let once = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;
(0, _utils.validateFunction)(cb, "cb");

@@ -72,3 +73,4 @@ const le = getValidLE(obj);

const getPublicMethods = () => Object.entries(publicMethods).reduce((res, [key, m]) => {
const getPublicMethods = () => Object.entries(publicMethods).reduce((res, _ref) => {
let [key, m] = _ref;
res[key] = {

@@ -98,3 +100,4 @@ value: m

const cleanRegistryForName = (obj, name, force = false) => {
const cleanRegistryForName = function (obj, name) {
let force = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
const registry = getValidLE(obj).registry;

@@ -136,3 +139,7 @@

function trigger(name, ...args) {
function trigger(name) {
for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
args[_key - 1] = arguments[_key];
}
const regs = findRegistrations(this, name);

@@ -225,3 +232,6 @@ let results;

const defineLifeData = (target, options, events = [], registry = {}, stats = {}) => {
const defineLifeData = function (target, options) {
let events = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];
let registry = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};
let stats = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : {};
Object.defineProperties(target, {

@@ -240,3 +250,5 @@ [_consts.LESYM]: {

const addLife = (target, events = [], options) => {
const addLife = function (target) {
let events = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
let options = arguments.length > 2 ? arguments[2] : undefined;
target = target || {};

@@ -243,0 +255,0 @@ options = { ..._defaults.default,

@@ -6,3 +6,3 @@ "use strict";

});
exports.isUndefined = exports.validateFunction = void 0;
exports.validateFunction = exports.isUndefined = void 0;

@@ -9,0 +9,0 @@ var _shared = require("@rpldy/shared");

@@ -21,3 +21,4 @@ import isPromise from "is-promise";

const addRegistration = (obj, name, cb, once = false) => {
const addRegistration = function (obj, name, cb) {
let once = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;
validateFunction(cb, "cb");

@@ -58,3 +59,4 @@ const le = getValidLE(obj);

const getPublicMethods = () => Object.entries(publicMethods).reduce((res, [key, m]) => {
const getPublicMethods = () => Object.entries(publicMethods).reduce((res, _ref) => {
let [key, m] = _ref;
res[key] = {

@@ -84,3 +86,4 @@ value: m

const cleanRegistryForName = (obj, name, force = false) => {
const cleanRegistryForName = function (obj, name) {
let force = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
const registry = getValidLE(obj).registry;

@@ -122,3 +125,7 @@

function trigger(name, ...args) {
function trigger(name) {
for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
args[_key - 1] = arguments[_key];
}
const regs = findRegistrations(this, name);

@@ -211,3 +218,6 @@ let results;

const defineLifeData = (target, options, events = [], registry = {}, stats = {}) => {
const defineLifeData = function (target, options) {
let events = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];
let registry = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};
let stats = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : {};
Object.defineProperties(target, {

@@ -226,3 +236,5 @@ [LESYM]: {

const addLife = (target, events = [], options) => {
const addLife = function (target) {
let events = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
let options = arguments.length > 2 ? arguments[2] : undefined;
target = target || {};

@@ -229,0 +241,0 @@ options = { ...defaults,

{
"version": "0.14.2",
"version": "0.15.0",
"name": "@rpldy/life-events",

@@ -26,7 +26,7 @@ "description": "events pub/sub management with return values",

"dependencies": {
"@rpldy/shared": "^0.14.2",
"@rpldy/shared": "^0.15.0",
"is-promise": "^4.0.0"
},
"devDependencies": {
"flow-bin": "^0.159.0"
"flow-bin": "^0.164.0"
},

@@ -36,3 +36,3 @@ "publishConfig": {

},
"gitHead": "a03a076546fd0895f2eada2687de86a2e23f7732"
"gitHead": "7909b3aacc4afd229e4bc6810da8560be19706b2"
}
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