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

@boost/internal

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@boost/internal - npm Package Compare versions

Comparing version 2.1.2 to 2.2.0

dts/color.d.ts

12

CHANGELOG.md

@@ -6,2 +6,14 @@ # Change Log

## 2.2.0 - 2021-01-16
#### 🚀 Updates
- Migrate to Packemon for package building. (#135) ([1a0e9d8](https://github.com/milesj/boost/commit/1a0e9d8)), closes [#135](https://github.com/milesj/boost/issues/135)
**Note:** Version bump only for package @boost/internal
### 2.1.2 - 2020-11-29

@@ -8,0 +20,0 @@

121

esm/index.js

@@ -0,5 +1,17 @@

function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; subClass.__proto__ = superClass; }
function _wrapNativeSuper(Class) { var _cache = typeof Map === "function" ? new Map() : undefined; _wrapNativeSuper = function _wrapNativeSuper(Class) { if (Class === null || !_isNativeFunction(Class)) return Class; if (typeof Class !== "function") { throw new TypeError("Super expression must either be null or a function"); } if (typeof _cache !== "undefined") { if (_cache.has(Class)) return _cache.get(Class); _cache.set(Class, Wrapper); } function Wrapper() { return _construct(Class, arguments, _getPrototypeOf(this).constructor); } Wrapper.prototype = Object.create(Class.prototype, { constructor: { value: Wrapper, enumerable: false, writable: true, configurable: true } }); return _setPrototypeOf(Wrapper, Class); }; return _wrapNativeSuper(Class); }
function _construct(Parent, args, Class) { if (_isNativeReflectConstruct()) { _construct = Reflect.construct; } else { _construct = function _construct(Parent, args, Class) { var a = [null]; a.push.apply(a, args); var Constructor = Function.bind.apply(Parent, a); var instance = new Constructor(); if (Class) _setPrototypeOf(instance, Class.prototype); return instance; }; } return _construct.apply(null, arguments); }
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
function _isNativeFunction(fn) { return Function.toString.call(fn).indexOf("[native code]") !== -1; }
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
import debug from 'debug';
/* eslint-disable no-magic-numbers, sort-keys */
// https://github.com/chalk/ansi-styles/blob/master/index.js#L75
function createColor(open) {

@@ -12,7 +24,5 @@ return function (message) {

var color = {
// States
fail: createColor(31),
mute: createColor(90),
pass: createColor(32),
// Types
filePath: createColor(36),

@@ -29,3 +39,5 @@ moduleName: createColor(33),

}
debug.formatters.S = sentenceCase;
function createInternalDebugger(namespace) {

@@ -35,92 +47,2 @@ return debug("boost:" + namespace);

function _inheritsLoose(subClass, superClass) {
subClass.prototype = Object.create(superClass.prototype);
subClass.prototype.constructor = subClass;
subClass.__proto__ = superClass;
}
function _getPrototypeOf(o) {
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
return o.__proto__ || Object.getPrototypeOf(o);
};
return _getPrototypeOf(o);
}
function _setPrototypeOf(o, p) {
_setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
o.__proto__ = p;
return o;
};
return _setPrototypeOf(o, p);
}
function _isNativeReflectConstruct() {
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
if (Reflect.construct.sham) return false;
if (typeof Proxy === "function") return true;
try {
Date.prototype.toString.call(Reflect.construct(Date, [], function () {}));
return true;
} catch (e) {
return false;
}
}
function _construct(Parent, args, Class) {
if (_isNativeReflectConstruct()) {
_construct = Reflect.construct;
} else {
_construct = function _construct(Parent, args, Class) {
var a = [null];
a.push.apply(a, args);
var Constructor = Function.bind.apply(Parent, a);
var instance = new Constructor();
if (Class) _setPrototypeOf(instance, Class.prototype);
return instance;
};
}
return _construct.apply(null, arguments);
}
function _isNativeFunction(fn) {
return Function.toString.call(fn).indexOf("[native code]") !== -1;
}
function _wrapNativeSuper(Class) {
var _cache = typeof Map === "function" ? new Map() : undefined;
_wrapNativeSuper = function _wrapNativeSuper(Class) {
if (Class === null || !_isNativeFunction(Class)) return Class;
if (typeof Class !== "function") {
throw new TypeError("Super expression must either be null or a function");
}
if (typeof _cache !== "undefined") {
if (_cache.has(Class)) return _cache.get(Class);
_cache.set(Class, Wrapper);
}
function Wrapper() {
return _construct(Class, arguments, _getPrototypeOf(this).constructor);
}
Wrapper.prototype = Object.create(Class.prototype, {
constructor: {
value: Wrapper,
enumerable: false,
writable: true,
configurable: true
}
});
return _setPrototypeOf(Wrapper, Class);
};
return _wrapNativeSuper(Class);
}
var internalErrors = {

@@ -131,2 +53,3 @@ INVALID_SCOPE_NAME: 'Error scope must be 3 characters and all uppercase.',

var TOKEN_PATTERN = /\{([0-9]+)\}/g;
function createScopedError(scope, name, errors) {

@@ -149,3 +72,3 @@ var _temp;

if ("production" !== process.env.NODE_ENV) {
if (process.env.NODE_ENV !== "production") {
if (scope.length !== 3 || scope !== scope.toUpperCase()) {

@@ -156,3 +79,3 @@ throw new Error(msg('INVALID_SCOPE_NAME', internalErrors));

return _temp = /*#__PURE__*/function (_Error) {
return _temp = function (_Error) {
_inheritsLoose(InternalError, _Error);

@@ -167,3 +90,3 @@

_this.code = code;
_this.name = name; // If a message was not loaded, we are throwing an unknown error
_this.name = name;

@@ -179,3 +102,3 @@ if (!_this.message) {

return InternalError;
}( /*#__PURE__*/_wrapNativeSuper(Error)), _temp;
}(_wrapNativeSuper(Error)), _temp;
}

@@ -188,3 +111,2 @@

} else if (typeof global.window !== 'undefined') {
// @ts-expect-error
envVars = window;

@@ -210,1 +132,2 @@ }

export { color, createInternalDebugger, createScopedError, env };
//# sourceMappingURL=index.js.map
'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; subClass.__proto__ = superClass; }
function _wrapNativeSuper(Class) { var _cache = typeof Map === "function" ? new Map() : undefined; _wrapNativeSuper = function _wrapNativeSuper(Class) { if (Class === null || !_isNativeFunction(Class)) return Class; if (typeof Class !== "function") { throw new TypeError("Super expression must either be null or a function"); } if (typeof _cache !== "undefined") { if (_cache.has(Class)) return _cache.get(Class); _cache.set(Class, Wrapper); } function Wrapper() { return _construct(Class, arguments, _getPrototypeOf(this).constructor); } Wrapper.prototype = Object.create(Class.prototype, { constructor: { value: Wrapper, enumerable: false, writable: true, configurable: true } }); return _setPrototypeOf(Wrapper, Class); }; return _wrapNativeSuper(Class); }
function _construct(Parent, args, Class) { if (_isNativeReflectConstruct()) { _construct = Reflect.construct; } else { _construct = function _construct(Parent, args, Class) { var a = [null]; a.push.apply(a, args); var Constructor = Function.bind.apply(Parent, a); var instance = new Constructor(); if (Class) _setPrototypeOf(instance, Class.prototype); return instance; }; } return _construct.apply(null, arguments); }
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
function _isNativeFunction(fn) { return Function.toString.call(fn).indexOf("[native code]") !== -1; }
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
Object.defineProperty(exports, '__esModule', {
value: true
});
var debug = require('debug');
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
function _interopDefaultLegacy(e) {
return e && typeof e === 'object' && 'default' in e ? e : {
'default': e
};
}
var debug__default = /*#__PURE__*/_interopDefaultLegacy(debug);
var debug__default = _interopDefaultLegacy(debug);
/* eslint-disable no-magic-numbers, sort-keys */
// https://github.com/chalk/ansi-styles/blob/master/index.js#L75
function createColor(open) {

@@ -20,7 +38,5 @@ return function (message) {

var color = {
// States
fail: createColor(31),
mute: createColor(90),
pass: createColor(32),
// Types
filePath: createColor(36),

@@ -37,3 +53,5 @@ moduleName: createColor(33),

}
debug__default['default'].formatters.S = sentenceCase;
function createInternalDebugger(namespace) {

@@ -43,92 +61,2 @@ return debug__default['default']("boost:" + namespace);

function _inheritsLoose(subClass, superClass) {
subClass.prototype = Object.create(superClass.prototype);
subClass.prototype.constructor = subClass;
subClass.__proto__ = superClass;
}
function _getPrototypeOf(o) {
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
return o.__proto__ || Object.getPrototypeOf(o);
};
return _getPrototypeOf(o);
}
function _setPrototypeOf(o, p) {
_setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
o.__proto__ = p;
return o;
};
return _setPrototypeOf(o, p);
}
function _isNativeReflectConstruct() {
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
if (Reflect.construct.sham) return false;
if (typeof Proxy === "function") return true;
try {
Date.prototype.toString.call(Reflect.construct(Date, [], function () {}));
return true;
} catch (e) {
return false;
}
}
function _construct(Parent, args, Class) {
if (_isNativeReflectConstruct()) {
_construct = Reflect.construct;
} else {
_construct = function _construct(Parent, args, Class) {
var a = [null];
a.push.apply(a, args);
var Constructor = Function.bind.apply(Parent, a);
var instance = new Constructor();
if (Class) _setPrototypeOf(instance, Class.prototype);
return instance;
};
}
return _construct.apply(null, arguments);
}
function _isNativeFunction(fn) {
return Function.toString.call(fn).indexOf("[native code]") !== -1;
}
function _wrapNativeSuper(Class) {
var _cache = typeof Map === "function" ? new Map() : undefined;
_wrapNativeSuper = function _wrapNativeSuper(Class) {
if (Class === null || !_isNativeFunction(Class)) return Class;
if (typeof Class !== "function") {
throw new TypeError("Super expression must either be null or a function");
}
if (typeof _cache !== "undefined") {
if (_cache.has(Class)) return _cache.get(Class);
_cache.set(Class, Wrapper);
}
function Wrapper() {
return _construct(Class, arguments, _getPrototypeOf(this).constructor);
}
Wrapper.prototype = Object.create(Class.prototype, {
constructor: {
value: Wrapper,
enumerable: false,
writable: true,
configurable: true
}
});
return _setPrototypeOf(Wrapper, Class);
};
return _wrapNativeSuper(Class);
}
var internalErrors = {

@@ -139,2 +67,3 @@ INVALID_SCOPE_NAME: 'Error scope must be 3 characters and all uppercase.',

var TOKEN_PATTERN = /\{([0-9]+)\}/g;
function createScopedError(scope, name, errors) {

@@ -157,3 +86,3 @@ var _temp;

if ("production" !== process.env.NODE_ENV) {
if (process.env.NODE_ENV !== "production") {
if (scope.length !== 3 || scope !== scope.toUpperCase()) {

@@ -164,3 +93,3 @@ throw new Error(msg('INVALID_SCOPE_NAME', internalErrors));

return _temp = /*#__PURE__*/function (_Error) {
return _temp = function (_Error) {
_inheritsLoose(InternalError, _Error);

@@ -175,3 +104,3 @@

_this.code = code;
_this.name = name; // If a message was not loaded, we are throwing an unknown error
_this.name = name;

@@ -187,3 +116,3 @@ if (!_this.message) {

return InternalError;
}( /*#__PURE__*/_wrapNativeSuper(Error)), _temp;
}(_wrapNativeSuper(Error)), _temp;
}

@@ -196,3 +125,2 @@

} else if (typeof global.window !== 'undefined') {
// @ts-expect-error
envVars = window;

@@ -221,1 +149,2 @@ }

exports.env = env;
//# sourceMappingURL=index.js.map
{
"name": "@boost/internal",
"version": "2.1.2",
"version": "2.2.0",
"release": "1594765247526",

@@ -12,7 +12,12 @@ "description": "Boost internals.",

"module": "./esm/index.js",
"types": "./lib/index.d.ts",
"types": "./dts/index.d.ts",
"engines": {
"node": ">=10.17.0"
"node": ">=10.3.0"
},
"repository": "https://github.com/milesj/boost/tree/master/packages/internal",
"repository": {
"type": "git",
"url": "git@github.com:milesj/boost.git",
"directory": "packages/internal"
},
"author": "Miles Johnson",
"license": "MIT",

@@ -29,3 +34,9 @@ "publishConfig": {

},
"gitHead": "5f7e4dd672542eef29f55ec17300600e5fcd6a92"
"packemon": {
"platform": [
"browser",
"node"
]
},
"gitHead": "e2c452ee0c15aa7db91d1945e23ac6951028e672"
}
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