@stryke/type-checks 0.3.18 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +11 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.mjs +1 -1
- package/dist/is-url.cjs +10 -0
- package/dist/is-url.d.ts +7 -0
- package/dist/is-url.mjs +1 -0
- package/package.json +17 -3
package/dist/index.cjs
CHANGED
|
@@ -432,6 +432,17 @@ Object.keys(_isUndefined).forEach(function (key) {
|
|
|
432
432
|
}
|
|
433
433
|
});
|
|
434
434
|
});
|
|
435
|
+
var _isUrl = require("./is-url.cjs");
|
|
436
|
+
Object.keys(_isUrl).forEach(function (key) {
|
|
437
|
+
if (key === "default" || key === "__esModule") return;
|
|
438
|
+
if (key in exports && exports[key] === _isUrl[key]) return;
|
|
439
|
+
Object.defineProperty(exports, key, {
|
|
440
|
+
enumerable: true,
|
|
441
|
+
get: function () {
|
|
442
|
+
return _isUrl[key];
|
|
443
|
+
}
|
|
444
|
+
});
|
|
445
|
+
});
|
|
435
446
|
var _propertyExists = require("./property-exists.cjs");
|
|
436
447
|
Object.keys(_propertyExists).forEach(function (key) {
|
|
437
448
|
if (key === "default" || key === "__esModule") return;
|
package/dist/index.d.ts
CHANGED
package/dist/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export*from"./get-object-tag";export*from"./is-array-like";export*from"./is-async-iterable";export*from"./is-bigint";export*from"./is-boolean";export*from"./is-buffer";export*from"./is-collection";export*from"./is-date";export*from"./is-deep-key";export*from"./is-empty";export*from"./is-empty-object";export*from"./is-empty-string";export*from"./is-equal";export*from"./is-error";export*from"./is-file-result";export*from"./is-float";export*from"./is-function";export*from"./is-integer";export*from"./is-mergeable-object";export*from"./is-not-empty";export*from"./is-null";export*from"./is-number";export*from"./is-object";export*from"./is-object-index";export*from"./is-plain-object";export*from"./is-primitive";export*from"./is-promise";export*from"./is-react-element";export*from"./is-ref";export*from"./is-regexp";export*from"./is-select-option";export*from"./is-set";export*from"./is-set-object";export*from"./is-set-string";export*from"./is-string";export*from"./is-symbol";export*from"./is-typed";export*from"./is-typed-array";export*from"./is-undefined";export*from"./property-exists";export*from"./type-detect";
|
|
1
|
+
export*from"./get-object-tag";export*from"./is-array-like";export*from"./is-async-iterable";export*from"./is-bigint";export*from"./is-boolean";export*from"./is-buffer";export*from"./is-collection";export*from"./is-date";export*from"./is-deep-key";export*from"./is-empty";export*from"./is-empty-object";export*from"./is-empty-string";export*from"./is-equal";export*from"./is-error";export*from"./is-file-result";export*from"./is-float";export*from"./is-function";export*from"./is-integer";export*from"./is-mergeable-object";export*from"./is-not-empty";export*from"./is-null";export*from"./is-number";export*from"./is-object";export*from"./is-object-index";export*from"./is-plain-object";export*from"./is-primitive";export*from"./is-promise";export*from"./is-react-element";export*from"./is-ref";export*from"./is-regexp";export*from"./is-select-option";export*from"./is-set";export*from"./is-set-object";export*from"./is-set-string";export*from"./is-string";export*from"./is-symbol";export*from"./is-typed";export*from"./is-typed-array";export*from"./is-undefined";export*from"./is-url";export*from"./property-exists";export*from"./type-detect";
|
package/dist/is-url.cjs
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.isURL = void 0;
|
|
7
|
+
var _isSetObject = require("./is-set-object.cjs");
|
|
8
|
+
var _isSetString = require("./is-set-string.cjs");
|
|
9
|
+
const isURL = s => (0, _isSetObject.isSetObject)(s) && (0, _isSetString.isSetString)(s.hash) && (0, _isSetString.isSetString)(s.host) && (0, _isSetString.isSetString)(s.hostname) && (0, _isSetString.isSetString)(s.href) && (0, _isSetString.isSetString)(s.origin) && (0, _isSetString.isSetString)(s.protocol);
|
|
10
|
+
exports.isURL = isURL;
|
package/dist/is-url.d.ts
ADDED
package/dist/is-url.mjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{isSetObject as t}from"./is-set-object";import{isSetString as o}from"./is-set-string";export const isURL=s=>t(s)&&o(s.hash)&&o(s.host)&&o(s.hostname)&&o(s.href)&&o(s.origin)&&o(s.protocol);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stryke/type-checks",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A package containing various type-check functions to validate TypeScript values.",
|
|
6
6
|
"repository": {
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
},
|
|
11
11
|
"private": false,
|
|
12
12
|
"publishConfig": { "access": "public" },
|
|
13
|
-
"dependencies": { "@stryke/types": "^0.10.
|
|
13
|
+
"dependencies": { "@stryke/types": "^0.10.9" },
|
|
14
14
|
"devDependencies": {},
|
|
15
15
|
"sideEffects": false,
|
|
16
16
|
"files": ["dist/**/*"],
|
|
@@ -83,6 +83,20 @@
|
|
|
83
83
|
"default": "./dist/property-exists.mjs"
|
|
84
84
|
}
|
|
85
85
|
},
|
|
86
|
+
"./is-url": {
|
|
87
|
+
"import": {
|
|
88
|
+
"types": "./dist/is-url.d.ts",
|
|
89
|
+
"default": "./dist/is-url.mjs"
|
|
90
|
+
},
|
|
91
|
+
"require": {
|
|
92
|
+
"types": "./dist/is-url.d.ts",
|
|
93
|
+
"default": "./dist/is-url.cjs"
|
|
94
|
+
},
|
|
95
|
+
"default": {
|
|
96
|
+
"types": "./dist/is-url.d.ts",
|
|
97
|
+
"default": "./dist/is-url.mjs"
|
|
98
|
+
}
|
|
99
|
+
},
|
|
86
100
|
"./is-undefined": {
|
|
87
101
|
"import": {
|
|
88
102
|
"types": "./dist/is-undefined.d.ts",
|
|
@@ -664,5 +678,5 @@
|
|
|
664
678
|
"main": "./dist/index.cjs",
|
|
665
679
|
"module": "./dist/index.mjs",
|
|
666
680
|
"types": "./dist/index.d.ts",
|
|
667
|
-
"gitHead": "
|
|
681
|
+
"gitHead": "cd16bb3da577f7adb6f5c4ca6f12b90b17fe7061"
|
|
668
682
|
}
|