How to use the es5-ext/object/primitive-set.apply function in es5-ext

To help you get started, we’ve selected a few es5-ext examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github medikoo / irc-notifier / index.js View on Github external
forEach(config.irc, function (conf, url) {
	var client, ignore, logLength;
	logLength = toPosInt(config.logLength);
	if (!logLength) logLength = 20;

	client = new irc.Client(url, conf.user, {
		channels: objToArray(conf.channels, function (keywords, name) {
			return "#" + name + (conf.pass ? " " + conf.pass : "");
		})
	});
	if (conf.ignore == null) {
		ignore = primitiveSet();
	} else {
		ignore = primitiveSet.apply(null, toArray(conf.ignore));
	}
	ignore[conf.user] = true;

	client.addListener("error", function (error) {
		var subject;
		mailer.sendMail(
			{
				from: config.smtp.from,
				to: config.smtp.to,
				subject: (subject = "IRC: SERVER ERROR: " + error),
				text: inspect(error, { depth: Infinity })
			},
			function (err) {
				if (err) {
					console.error("Could not send email: " + err);
					console.error(subject, error);
github medikoo / esniff / lib / ws.js View on Github external
'use strict';

var primitiveSet = require('es5-ext/object/primitive-set')
  , eol          = require('./ws-eol')
  , inline       = require('./ws-inline');

module.exports = primitiveSet.apply(null,
	Object.keys(eol).concat(Object.keys(inline)));
github medikoo / esniff / lib / ws-eol.js View on Github external
'use strict';

var from         = require('es5-ext/array/from')
  , primitiveSet = require('es5-ext/object/primitive-set');

module.exports = primitiveSet.apply(null, from('\n\r\u2028\u2029'));
github networked-aframe / networked-aframe / server / static / dev / build.js View on Github external
},{"es5-ext/object/normalize-options":25,"es5-ext/object/valid-value":28,"esniff/is-var-name-valid":44}],43:[function(require,module,exports){
'use strict';

var from         = require('es5-ext/array/from')
  , primitiveSet = require('es5-ext/object/primitive-set')
  , value        = require('es5-ext/object/valid-value')
  , callable     = require('es5-ext/object/valid-callable')
  , d            = require('d')
  , eolSet       = require('./lib/ws-eol')
  , wsSet        = require('./lib/ws')

  , hasOwnProperty = Object.prototype.hasOwnProperty
  , preRegExpSet = primitiveSet.apply(null, from(';{=([,<>+-*/%&|^!~?:}'))
  , nonNameSet = primitiveSet.apply(null, from(';{=([,<>+-*/%&|^!~?:})].'))

  , move, startCollect, endCollect, collectNest
  , $ws, $common, $string, $comment, $multiComment, $regExp

  , i, char, line, columnIndex, afterWs, previousChar
  , nest, nestedTokens, results
  , userCode, userTriggerChar, isUserTriggerOperatorChar, userCallback

  , quote
  , collectIndex, data, nestRelease;

move = function (j) {
	if (!char) return;
	if (i >= j) return;
	while (i !== j) {
		if (!char) return;
github networked-aframe / networked-aframe / server / static / dev / build.js View on Github external
},{"es5-ext/array/from":7,"es5-ext/object/primitive-set":26}],47:[function(require,module,exports){
'use strict';

var primitiveSet = require('es5-ext/object/primitive-set')
  , eol          = require('./ws-eol')
  , inline       = require('./ws-inline');

module.exports = primitiveSet.apply(null,
	Object.keys(eol).concat(Object.keys(inline)));

},{"./ws-eol":45,"./ws-inline":46,"es5-ext/object/primitive-set":26}],48:[function(require,module,exports){
class ChildEntityCache {
github medikoo / esniff / lib / ws-inline.js View on Github external
'use strict';

var from         = require('es5-ext/array/from')
  , primitiveSet = require('es5-ext/object/primitive-set');

module.exports = primitiveSet.apply(null, from(' \f\t\v​\u00a0\u1680​\u180e' +
	'\u2000​\u2001\u2002​\u2003\u2004​\u2005\u2006​\u2007\u2008​\u2009\u200a' +
	'​​​\u202f\u205f​\u3000'));
github networked-aframe / networked-aframe / server / static / build.js View on Github external
},{"es5-ext/object/normalize-options":25,"es5-ext/object/valid-value":28,"esniff/is-var-name-valid":44}],43:[function(require,module,exports){
'use strict';

var from         = require('es5-ext/array/from')
  , primitiveSet = require('es5-ext/object/primitive-set')
  , value        = require('es5-ext/object/valid-value')
  , callable     = require('es5-ext/object/valid-callable')
  , d            = require('d')
  , eolSet       = require('./lib/ws-eol')
  , wsSet        = require('./lib/ws')

  , hasOwnProperty = Object.prototype.hasOwnProperty
  , preRegExpSet = primitiveSet.apply(null, from(';{=([,<>+-*/%&|^!~?:}'))
  , nonNameSet = primitiveSet.apply(null, from(';{=([,<>+-*/%&|^!~?:})].'))

  , move, startCollect, endCollect, collectNest
  , $ws, $common, $string, $comment, $multiComment, $regExp

  , i, char, line, columnIndex, afterWs, previousChar
  , nest, nestedTokens, results
  , userCode, userTriggerChar, isUserTriggerOperatorChar, userCallback

  , quote
  , collectIndex, data, nestRelease;

move = function (j) {
	if (!char) return;
	if (i >= j) return;
	while (i !== j) {
github medikoo / dbjs / _setup / 1.property / 7.set-property.js View on Github external
_setMultiple_: d(function (sKey, value) {
			var current;
			if (this.hasOwnProperty('__multiples__') &&
					hasOwnProperty.call(this.__multiples__, sKey)) {
				current = primitiveSet.apply(null, keys(this.__multiples__[sKey]));
			}
			value.forEach(function (value) {
				var item = this._getOwnMultipleItem_(sKey, value, serialize(value));
				if (current) delete current[item._sKey_];
				new Event(item, true); //jslint: ignore
			}, this);
			if (!current) return this;
			keys(current).forEach(function (sKey) {
				var item = this[sKey];
				if (!item.hasOwnProperty('_value_')) return;
				new Event(item, undefined); //jslint: ignore
			}, this.__multiples__[sKey]);
			return this;
		}),
		_setProperties_: d(function (props) {
github networked-aframe / networked-aframe / server / static / build.js View on Github external
},{"es5-ext/array/from":7,"es5-ext/object/primitive-set":26}],47:[function(require,module,exports){
'use strict';

var primitiveSet = require('es5-ext/object/primitive-set')
  , eol          = require('./ws-eol')
  , inline       = require('./ws-inline');

module.exports = primitiveSet.apply(null,
	Object.keys(eol).concat(Object.keys(inline)));

},{"./ws-eol":45,"./ws-inline":46,"es5-ext/object/primitive-set":26}],48:[function(require,module,exports){
arguments[4][3][0].apply(exports,arguments)
github networked-aframe / networked-aframe / server / static / build.js View on Github external
},{"es5-ext/object/normalize-options":25,"es5-ext/object/valid-value":28,"esniff/is-var-name-valid":44}],43:[function(require,module,exports){
'use strict';

var from         = require('es5-ext/array/from')
  , primitiveSet = require('es5-ext/object/primitive-set')
  , value        = require('es5-ext/object/valid-value')
  , callable     = require('es5-ext/object/valid-callable')
  , d            = require('d')
  , eolSet       = require('./lib/ws-eol')
  , wsSet        = require('./lib/ws')

  , hasOwnProperty = Object.prototype.hasOwnProperty
  , preRegExpSet = primitiveSet.apply(null, from(';{=([,<>+-*/%&|^!~?:}'))
  , nonNameSet = primitiveSet.apply(null, from(';{=([,<>+-*/%&|^!~?:})].'))

  , move, startCollect, endCollect, collectNest
  , $ws, $common, $string, $comment, $multiComment, $regExp

  , i, char, line, columnIndex, afterWs, previousChar
  , nest, nestedTokens, results
  , userCode, userTriggerChar, isUserTriggerOperatorChar, userCallback

  , quote
  , collectIndex, data, nestRelease;

move = function (j) {
	if (!char) return;
	if (i >= j) return;
	while (i !== j) {
		if (!char) return;