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

lang-mini

Package Overview
Dependencies
Maintainers
1
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lang-mini - npm Package Compare versions

Comparing version 0.0.6 to 0.0.7

99

lang-mini.js

@@ -425,3 +425,3 @@ let are_equal = require('deep-equal');

} else {
//console.log('t', t);
res = '?';

@@ -1943,2 +1943,6 @@

// Could have it automatially add targets.
// For the moment, want to keep this simpler.
// optional assign_target variable.

@@ -1975,8 +1979,5 @@ // don't want to assign a target by default.

}
let be = this._bound_events;
let bgh = this._bound_general_handler;
res = [];
if (bgh) {

@@ -1992,3 +1993,2 @@ for (c = 0, l = bgh.length; c < l; c++) {

// They are handlers that get called.
for (c = 0, l = bei.length; c < l; c++) {

@@ -2007,6 +2007,4 @@ if (bei[c]) res.push(bei[c].apply(target, additional_args));

// s,?
}
}
return res;

@@ -2048,3 +2046,2 @@ }

return this;
}

@@ -2083,4 +2080,4 @@

}
return this;
}
'off'() {

@@ -2107,83 +2104,2 @@ // However, need to make use of some document events.

/*
fns.observe = function () {
// observe_multi
//
// Call multiple observer functions.
// process them individually.
let arr = this;
let res = new Evented_Class();
let c = 0,
l = arr.length;
let proceed = () => {
}
let process = () => {
if (c < l) {
let fn_call = arr[c];
let caller = fn_call[0];
let obs_fn = fn_call[1];
let params = fn_call[2];
let obs = obs_fn.apply(caller, params);
//fn.
obs.on('next', data => {
res.raise('next', {
'index': c,
'params': params,
'data': data
})
});
obs.on('complete', res => {
res.raise('complete', {
'index': c,
'params': params,
'data': res
})
process();
});
obs.on('error', err => {
res.raise('error', {
'index': c,
'params': params,
'error': err
})
});
c++;
} else {
proceed();
}
}
//process();
}
*/
var p = Evented_Class.prototype;

@@ -2195,4 +2111,2 @@ p.raise = p.raise_event;

let lang_mini = {

@@ -2212,2 +2126,3 @@ 'each': each,

'is_defined': is_defined,
'def': is_defined,
'stringify': stringify,

@@ -2214,0 +2129,0 @@ 'functional_polymorphism': functional_polymorphism,

4

package.json

@@ -17,3 +17,3 @@ {

},
"version": "0.0.6"
}
"version": "0.0.7"
}
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