Socket
Socket
Sign inDemoInstall

runtime-shared

Package Overview
Dependencies
Maintainers
4
Versions
85
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

runtime-shared - npm Package Compare versions

Comparing version 0.6.6-0 to 0.6.6-1

dist/shared.function.js

17

lib/array.es6.js
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.__esModule = true;
exports.ArrayFrom = ArrayFrom;

@@ -11,3 +9,2 @@ exports.ArrayOf = ArrayOf;

exports.polyfill = polyfill;
exports.default = void 0;

@@ -124,4 +121,6 @@ /* eslint-disable no-bitwise, no-extend-native, radix, no-self-compare, consistent-this */

function polyfill() {
var ArrayConstructor = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : Array;
function polyfill(ArrayConstructor) {
if (ArrayConstructor === void 0) {
ArrayConstructor = Array;
}

@@ -153,6 +152,2 @@ if (!ArrayConstructor.from) {

}
}
exports["default"] = module.exports;
var _default = module.exports;
exports.default = _default;
}
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.__esModule = true;
exports.ArrayIncludes = ArrayIncludes;
exports.polyfill = polyfill;
exports.default = void 0;

@@ -52,4 +49,6 @@ /* eslint-disable no-bitwise, no-extend-native, radix, no-self-compare, consistent-this */

function polyfill() {
var ArrayConstructor = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : Array;
function polyfill(ArrayConstructor) {
if (ArrayConstructor === void 0) {
ArrayConstructor = Array;
}

@@ -64,6 +63,2 @@ if (!ArrayConstructor.prototype.includes) {

}
}
exports["default"] = module.exports;
var _default = module.exports;
exports.default = _default;
}
"use strict";
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
var FontFace = function FontFace(family, source) {
_classCallCheck(this, FontFace);
this.family = family;

@@ -9,0 +5,0 @@ this.source = source;

"use strict";
/* eslint no-extend-native: "off" */
var _Symbol = require('./symbol'); // Deleted map items mess with iterator pointers, so rather than removing them mark them as deleted. Can't use undefined or null since those both valid keys so use a private symbol.
var Symbol = require('./symbol'); // Deleted map items mess with iterator pointers, so rather than removing them mark them as deleted. Can't use undefined or null since those both valid keys so use a private symbol.
var undefMarker = _Symbol('undef'); // NaN cannot be found in an array using indexOf, so we encode NaNs using a private symbol.
var undefMarker = Symbol('undef'); // NaN cannot be found in an array using indexOf, so we encode NaNs using a private symbol.
var NaNMarker = _Symbol('NaN');
var NaNMarker = Symbol('NaN');
var ACCESSOR_SUPPORT = true;

@@ -150,3 +148,3 @@

Map.prototype.entries = Map.prototype[_Symbol.iterator] = function () {
Map.prototype.entries = Map.prototype[Symbol.iterator] = function () {
return makeIterator(this, function (i) {

@@ -168,3 +166,3 @@ return [decodeKey(this._keys[i]), this._values[i]];

Map.prototype[_Symbol.species] = Map;
Map.prototype[Symbol.species] = Map;
Object.defineProperty(Map, 'constructor', {

@@ -171,0 +169,0 @@ value: Map

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

if (!captures) {
throw new SyntaxError("Invalid CSS media query: \"".concat(query, "\""));
throw new SyntaxError("Invalid CSS media query: \"" + query + "\"");
}

@@ -77,3 +77,3 @@

if (!expressions) {
throw new SyntaxError("Invalid CSS media query: \"".concat(query, "\""));
throw new SyntaxError("Invalid CSS media query: \"" + query + "\"");
}

@@ -85,3 +85,3 @@

if (!captures) {
throw new SyntaxError("Invalid CSS media query: \"".concat(query, "\""));
throw new SyntaxError("Invalid CSS media query: \"" + query + "\"");
}

@@ -88,0 +88,0 @@

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.__esModule = true;
exports.isInteger = isInteger;
exports.isNaN = isNaN;
exports.polyfill = polyfill;
exports.default = void 0;
// https://github.com/dherman/tc39-codex-wiki/blob/master/data/es6/number/index.md

@@ -27,4 +24,6 @@ var globalIsNaN = isNaN;

function polyfill() {
var NumberConstructor = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : Number;
function polyfill(NumberConstructor) {
if (NumberConstructor === void 0) {
NumberConstructor = Number;
}

@@ -69,6 +68,2 @@ if (NumberConstructor.EPSILON === undefined) {

});
}
exports["default"] = module.exports;
var _default = module.exports;
exports.default = _default;
}
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.__esModule = true;
exports.assign = assign;
exports.polyfill = polyfill;
exports.default = void 0;

@@ -44,4 +41,6 @@ // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/assign

function polyfill() {
var ObjectConstructor = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : Object;
function polyfill(ObjectConstructor) {
if (ObjectConstructor === void 0) {
ObjectConstructor = Object;
}

@@ -55,6 +54,2 @@ if (!ObjectConstructor.assign) {

}
}
exports["default"] = module.exports;
var _default = module.exports;
exports.default = _default;
}
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.__esModule = true;
exports.entries = entries;
exports.values = values;
exports.polyfill = polyfill;
exports.default = void 0;
var hasOwnProperty = Object.prototype.hasOwnProperty;

@@ -59,4 +56,6 @@ /**

function polyfill() {
var ObjectConstructor = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : Object;
function polyfill(ObjectConstructor) {
if (ObjectConstructor === void 0) {
ObjectConstructor = Object;
}

@@ -70,6 +69,2 @@ if (!ObjectConstructor.values) {

}
}
exports["default"] = module.exports;
var _default = module.exports;
exports.default = _default;
}
"use strict";
function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
/* eslint no-extend-native: "off" */

@@ -31,3 +29,3 @@ function noop() {} // Use polyfill for setImmediate for performance gains

function Promise(fn) {
if (_typeof(this) !== 'object') throw new TypeError('Promises must be constructed via new');
if (typeof this !== 'object') throw new TypeError('Promises must be constructed via new');
if (typeof fn !== 'function') throw new TypeError('Promise resolver is not a function');

@@ -79,3 +77,3 @@ this._state = 0;

if (newValue && (_typeof(newValue) === 'object' || typeof newValue === 'function')) {
if (newValue && (typeof newValue === 'object' || typeof newValue === 'function')) {
var then = newValue.then;

@@ -175,3 +173,3 @@

try {
if (val && (_typeof(val) === 'object' || typeof val === 'function')) {
if (val && (typeof val === 'object' || typeof val === 'function')) {
var then = val.then;

@@ -204,3 +202,3 @@

Promise.resolve = function (value) {
if (value && _typeof(value) === 'object' && value.constructor === Promise) {
if (value && typeof value === 'object' && value.constructor === Promise) {
return value;

@@ -207,0 +205,0 @@ }

"use strict";
/* eslint no-extend-native: "off" */
var _Symbol = require('./symbol'); // Deleted map items mess with iterator pointers, so rather than removing them mark them as deleted. Can't use undefined or null since those both valid keys so use a private symbol.
var Symbol = require('./symbol'); // Deleted map items mess with iterator pointers, so rather than removing them mark them as deleted. Can't use undefined or null since those both valid keys so use a private symbol.
var undefMarker = _Symbol('undef'); // NaN cannot be found in an array using indexOf, so we encode NaNs using a private symbol.
var undefMarker = Symbol('undef'); // NaN cannot be found in an array using indexOf, so we encode NaNs using a private symbol.
var NaNMarker = _Symbol('NaN');
var NaNMarker = Symbol('NaN');
var ACCESSOR_SUPPORT = true;

@@ -112,3 +110,3 @@

Set.prototype.entries = Set.prototype[_Symbol.iterator] = function () {
Set.prototype.entries = Set.prototype[Symbol.iterator] = function () {
return makeIterator(this, function (i) {

@@ -130,3 +128,3 @@ return [decodeVal(this._values[i]), decodeVal(this._values[i])];

Set.prototype[_Symbol.species] = Set;
Set.prototype[Symbol.species] = Set;
Object.defineProperty(Set, 'constructor', {

@@ -133,0 +131,0 @@ value: Set

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.__esModule = true;
exports.startsWith = startsWith;

@@ -12,3 +10,2 @@ exports.endsWith = endsWith;

exports.polyfill = polyfill;
exports.default = void 0;

@@ -142,4 +139,6 @@ /* eslint-disable no-extend-native, no-bitwise */

function polyfill() {
var StringConstructor = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : String;
function polyfill(StringConstructor) {
if (StringConstructor === void 0) {
StringConstructor = String;
}

@@ -165,6 +164,2 @@ if (!StringConstructor.prototype.startsWith) {

}
}
exports["default"] = module.exports;
var _default = module.exports;
exports.default = _default;
}
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.__esModule = true;
exports.padEnd = padEnd;
exports.padStart = padStart;
exports.polyfill = polyfill;
exports.default = void 0;

@@ -54,4 +51,6 @@ /* eslint-disable no-extend-native, no-bitwise */

function polyfill() {
var StringConstructor = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : String;
function polyfill(StringConstructor) {
if (StringConstructor === void 0) {
StringConstructor = String;
}

@@ -65,6 +64,2 @@ if (!StringConstructor.prototype.padStart) {

}
}
exports["default"] = module.exports;
var _default = module.exports;
exports.default = _default;
}
"use strict";
function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
/* eslint no-extend-native: "off", new-cap: "off" */

@@ -14,3 +12,3 @@ var defineProperties = Object.defineProperties,

if (!x) return false;
if (_typeof(x) === 'symbol') return true;
if (typeof x === 'symbol') return true;
if (!x.constructor) return false;

@@ -45,3 +43,3 @@ if (x.constructor.name !== 'Symbol') return false;

HiddenSymbol = function _Symbol(description) {
HiddenSymbol = function Symbol(description) {
if (this instanceof HiddenSymbol) throw new TypeError('Symbol is not a constructor');

@@ -53,5 +51,5 @@ return SymbolPolyfill(description);

module.exports = SymbolPolyfill = function _Symbol2(description) {
module.exports = SymbolPolyfill = function Symbol(description) {
var symbol;
if (this instanceof _Symbol2) throw new TypeError('Symbol is not a constructor');
if (this instanceof Symbol) throw new TypeError('Symbol is not a constructor');
symbol = Object.create(HiddenSymbol.prototype);

@@ -150,3 +148,3 @@ description = description === undefined ? '' : String(description);

var symbol = validateSymbol(this);
if (_typeof(symbol) === 'symbol') return symbol;
if (typeof symbol === 'symbol') return symbol;
return symbol.toString();

@@ -153,0 +151,0 @@ }

"use strict";
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
// https://github.com/WebReflection/url-search-params
var _Symbol = require('./symbol');
var Symbol = require('./symbol');

@@ -42,4 +36,2 @@ var find = /[!'\(\)~]|%20|%00/g;

function URLSearchParams(query) {
_classCallCheck(this, URLSearchParams);
this[secret] = Object.create(null);

@@ -64,145 +56,134 @@ if (!query) return;

_createClass(URLSearchParams, [{
key: "append",
value: function append(name, value) {
var dict = this[secret];
var _proto = URLSearchParams.prototype;
if (name in dict) {
dict[name].push('' + value);
} else {
dict[name] = ['' + value];
}
_proto.append = function append(name, value) {
var dict = this[secret];
if (name in dict) {
dict[name].push('' + value);
} else {
dict[name] = ['' + value];
}
}, {
key: "delete",
value: function _delete(name) {
delete this[secret][name];
}
}, {
key: "get",
value: function get(name) {
var dict = this[secret];
return name in dict ? dict[name][0] : null;
}
}, {
key: "getAll",
value: function getAll(name) {
var dict = this[secret];
return name in dict ? dict[name].slice(0) : [];
}
}, {
key: "has",
value: function has(name) {
return name in this[secret];
}
}, {
key: "set",
value: function set(name, value) {
this[secret][name] = ['' + value];
}
}, {
key: "forEach",
value: function forEach(callback, thisArg) {
var dict = this[secret];
Object.getOwnPropertyNames(dict).forEach(function (name) {
dict[name].forEach(function (value) {
callback.call(thisArg, value, name, this);
}, this);
};
_proto.delete = function _delete(name) {
delete this[secret][name];
};
_proto.get = function get(name) {
var dict = this[secret];
return name in dict ? dict[name][0] : null;
};
_proto.getAll = function getAll(name) {
var dict = this[secret];
return name in dict ? dict[name].slice(0) : [];
};
_proto.has = function has(name) {
return name in this[secret];
};
_proto.set = function set(name, value) {
this[secret][name] = ['' + value];
};
_proto.forEach = function forEach(callback, thisArg) {
var dict = this[secret];
Object.getOwnPropertyNames(dict).forEach(function (name) {
dict[name].forEach(function (value) {
callback.call(thisArg, value, name, this);
}, this);
}
}, {
key: "keys",
value: function keys() {
var items = [];
this.forEach(function (value, name) {
items.push(name);
});
var iterator = {
next: function next() {
var value = items.shift();
return {
done: value === undefined,
value: value
};
}
};
}, this);
};
iterator[_Symbol.iterator] = function () {
return iterator;
};
_proto.keys = function keys() {
var items = [];
this.forEach(function (value, name) {
items.push(name);
});
var iterator = {
next: function next() {
var value = items.shift();
return {
done: value === undefined,
value: value
};
}
};
iterator[Symbol.iterator] = function () {
return iterator;
}
}, {
key: "values",
value: function values() {
var items = [];
this.forEach(function (value) {
items.push(value);
});
var iterator = {
next: function next() {
var value = items.shift();
return {
done: value === undefined,
value: value
};
}
};
};
iterator[_Symbol.iterator] = function () {
return iterator;
};
return iterator;
};
_proto.values = function values() {
var items = [];
this.forEach(function (value) {
items.push(value);
});
var iterator = {
next: function next() {
var value = items.shift();
return {
done: value === undefined,
value: value
};
}
};
iterator[Symbol.iterator] = function () {
return iterator;
}
}, {
key: "entries",
value: function entries() {
var items = [];
this.forEach(function (value, name) {
items.push([name, value]);
});
var iterator = {
next: function next() {
var value = items.shift();
return {
done: value === undefined,
value: value
};
}
};
};
iterator[_Symbol.iterator] = function () {
return iterator;
};
return iterator;
};
_proto.entries = function entries() {
var items = [];
this.forEach(function (value, name) {
items.push([name, value]);
});
var iterator = {
next: function next() {
var value = items.shift();
return {
done: value === undefined,
value: value
};
}
};
iterator[Symbol.iterator] = function () {
return iterator;
}
}, {
key: "toString",
value: function toString() {
var dict = this[secret],
query = [],
i,
key,
name,
value;
};
for (key in dict) {
name = encode(key);
return iterator;
};
for (i = 0, value = dict[key]; i < value.length; i++) {
query.push(name + '=' + encode(value[i]));
}
_proto.toString = function toString() {
var dict = this[secret],
query = [],
i,
key,
name,
value;
for (key in dict) {
name = encode(key);
for (i = 0, value = dict[key]; i < value.length; i++) {
query.push(name + '=' + encode(value[i]));
}
return query.join('&');
}
}]);
return query.join('&');
};
return URLSearchParams;
}();
URLSearchParams.prototype[_Symbol.iterator] = URLSearchParams.prototype.entries;
URLSearchParams.prototype[Symbol.iterator] = URLSearchParams.prototype.entries;
module.exports = URLSearchParams;
"use strict";
function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
/* eslint no-extend-native: "off" */

@@ -18,3 +16,3 @@ var defineProperty = Object.defineProperty;

WeakMap.prototype.set = function (key, value) {
if (_typeof(key) !== 'object' && typeof key !== 'function') throw new TypeError('Invalid value used as weak map key');
if (typeof key !== 'object' && typeof key !== 'function') throw new TypeError('Invalid value used as weak map key');
var entry = key[this.name];

@@ -21,0 +19,0 @@ if (entry && entry[0] === key) entry[1] = value;else defineProperty(key, this.name, {

{
"name": "runtime-shared",
"version": "0.6.6-0",
"version": "0.6.6-1",
"description": "Shared Runtime.",

@@ -5,0 +5,0 @@ "license": "BSD-3-Clause",

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