Skip to content

Commit

Permalink
Fixes Typings and Upgrades Packages (#14)
Browse files Browse the repository at this point in the history
* Fixes is Typings

The `getType` output type was set to boolean, when it should have been
string, and `getType` was defined on `not` in the Type file, but it
isn't defined there in JS.

* Upgrades Packages

Upgrades all packages, but more specifically, gets the latest
eslint-utils to address [GHSA-3gx7-xhv7-5mx3](GHSA-3gx7-xhv7-5mx3)
  • Loading branch information
losandes authored Aug 27, 2019
1 parent 14ee062 commit e81fcf4
Show file tree
Hide file tree
Showing 5 changed files with 499 additions and 433 deletions.
8 changes: 5 additions & 3 deletions dist/blueprint.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
"use strict";

function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; }
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }

function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(source, true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(source).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }

function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }

Expand Down Expand Up @@ -525,7 +527,7 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
var context;

if (from) {
context = _objectSpread({}, ctx, {
context = _objectSpread({}, ctx, {}, {
value: from(ctx)
});
} else {
Expand Down Expand Up @@ -583,7 +585,7 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
var context;

if (from) {
context = _objectSpread({}, ctx, {
context = _objectSpread({}, ctx, {}, {
value: from(ctx)
});
} else {
Expand Down
6 changes: 3 additions & 3 deletions dist/blueprint.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ declare function required (comparator: string | Validator | RegExp): required;
* Boolean type comparators
*/
declare namespace is {
function getType (input: any): boolean;
function getType (input: any): string;
function defined (input?: any): boolean;
function nullOrUndefined (input?: any): boolean;
function func (input?: any): boolean;
Expand All @@ -289,7 +289,6 @@ declare namespace is {
function decimal (input?: any, places?: number): boolean;

namespace not {
function getType (input: any): boolean;
function defined (input?: any): boolean;
function nullOrUndefined (input?: any): boolean;
function func (input?: any): boolean;
Expand Down
Loading

0 comments on commit e81fcf4

Please sign in to comment.