anyone 1.0.1 → 1.0.2-dev-afe5de
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/CHANGELOG.md +0 -4
- package/all/package.json +2 -0
- package/any/package.json +2 -0
- package/dist/cjs/anyone.development.js +10 -10
- package/dist/cjs/anyone.production.js +1 -1
- package/dist/es/anyone.development.js +10 -10
- package/dist/es/anyone.production.js +1 -1
- package/dist/umd/anyone.development.js +10 -10
- package/dist/umd/anyone.production.js +1 -1
- package/none/package.json +2 -0
- package/one/package.json +2 -0
- package/package.json +4 -2
package/CHANGELOG.md
CHANGED
|
@@ -4,10 +4,6 @@ All notable changes to this project will be documented in this file.
|
|
|
4
4
|
|
|
5
5
|
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
|
|
6
6
|
|
|
7
|
-
## 1.0.1 - 2021-12-24
|
|
8
|
-
### Fixed and improved
|
|
9
|
-
- 7e8d48d Update changelog (ealush)
|
|
10
|
-
|
|
11
7
|
## 2.0.0 - 2021-12-24
|
|
12
8
|
|
|
13
9
|
- Use named exports
|
package/all/package.json
CHANGED
package/any/package.json
CHANGED
|
@@ -2,6 +2,16 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
+
function bindNot(fn) {
|
|
6
|
+
return function () {
|
|
7
|
+
var args = [];
|
|
8
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
9
|
+
args[_i] = arguments[_i];
|
|
10
|
+
}
|
|
11
|
+
return !fn.apply(void 0, args);
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
|
|
5
15
|
function isFunction(value) {
|
|
6
16
|
return typeof value === 'function';
|
|
7
17
|
}
|
|
@@ -47,16 +57,6 @@ function any() {
|
|
|
47
57
|
return args.some(run);
|
|
48
58
|
}
|
|
49
59
|
|
|
50
|
-
function bindNot(fn) {
|
|
51
|
-
return function () {
|
|
52
|
-
var args = [];
|
|
53
|
-
for (var _i = 0; _i < arguments.length; _i++) {
|
|
54
|
-
args[_i] = arguments[_i];
|
|
55
|
-
}
|
|
56
|
-
return !fn.apply(void 0, args);
|
|
57
|
-
};
|
|
58
|
-
}
|
|
59
|
-
|
|
60
60
|
/**
|
|
61
61
|
* Checks that at none of the passed arguments evaluate to a truthy value.
|
|
62
62
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";function r(r){if(function(r){return"function"==typeof r}(r))try{return
|
|
1
|
+
"use strict";function r(r){return function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];return!r.apply(void 0,n)}}function n(r){if(function(r){return"function"==typeof r}(r))try{return t(r())}catch(r){return!1}return t(r)}function t(r){return!!Array.isArray(r)||0!=r&&!!r}Object.defineProperty(exports,"__esModule",{value:!0}),exports.all=function(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];return r.every(n)},exports.any=function(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];return r.some(n)},exports.none=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return t.every(r(n))},exports.one=function(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];for(var e=t=0;e<r.length;e++)if(n(r[e])&&t++,1<t)return!1;return 1===t};
|
|
@@ -1,3 +1,13 @@
|
|
|
1
|
+
function bindNot(fn) {
|
|
2
|
+
return function () {
|
|
3
|
+
var args = [];
|
|
4
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
5
|
+
args[_i] = arguments[_i];
|
|
6
|
+
}
|
|
7
|
+
return !fn.apply(void 0, args);
|
|
8
|
+
};
|
|
9
|
+
}
|
|
10
|
+
|
|
1
11
|
function isFunction(value) {
|
|
2
12
|
return typeof value === 'function';
|
|
3
13
|
}
|
|
@@ -43,16 +53,6 @@ function any() {
|
|
|
43
53
|
return args.some(run);
|
|
44
54
|
}
|
|
45
55
|
|
|
46
|
-
function bindNot(fn) {
|
|
47
|
-
return function () {
|
|
48
|
-
var args = [];
|
|
49
|
-
for (var _i = 0; _i < arguments.length; _i++) {
|
|
50
|
-
args[_i] = arguments[_i];
|
|
51
|
-
}
|
|
52
|
-
return !fn.apply(void 0, args);
|
|
53
|
-
};
|
|
54
|
-
}
|
|
55
|
-
|
|
56
56
|
/**
|
|
57
57
|
* Checks that at none of the passed arguments evaluate to a truthy value.
|
|
58
58
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function r(r){if("function"==typeof r)try{return
|
|
1
|
+
function r(r){return function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];return!r.apply(void 0,n)}}function n(r){if("function"==typeof r)try{return t(r())}catch(r){return!1}return t(r)}function t(r){return!!Array.isArray(r)||0!=r&&!!r}function e(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];return r.every(n)}function u(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];return r.some(n)}function o(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return t.every(r(n))}function f(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];for(var e=t=0;e<r.length;e++)if(n(r[e])&&t++,1<t)return!1;return 1===t}export{e as all,u as any,o as none,f as one};
|
|
@@ -4,6 +4,16 @@
|
|
|
4
4
|
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.anyone = {}));
|
|
5
5
|
}(this, (function (exports) { 'use strict';
|
|
6
6
|
|
|
7
|
+
function bindNot(fn) {
|
|
8
|
+
return function () {
|
|
9
|
+
var args = [];
|
|
10
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
11
|
+
args[_i] = arguments[_i];
|
|
12
|
+
}
|
|
13
|
+
return !fn.apply(void 0, args);
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
|
|
7
17
|
function isFunction(value) {
|
|
8
18
|
return typeof value === 'function';
|
|
9
19
|
}
|
|
@@ -49,16 +59,6 @@
|
|
|
49
59
|
return args.some(run);
|
|
50
60
|
}
|
|
51
61
|
|
|
52
|
-
function bindNot(fn) {
|
|
53
|
-
return function () {
|
|
54
|
-
var args = [];
|
|
55
|
-
for (var _i = 0; _i < arguments.length; _i++) {
|
|
56
|
-
args[_i] = arguments[_i];
|
|
57
|
-
}
|
|
58
|
-
return !fn.apply(void 0, args);
|
|
59
|
-
};
|
|
60
|
-
}
|
|
61
|
-
|
|
62
62
|
/**
|
|
63
63
|
* Checks that at none of the passed arguments evaluate to a truthy value.
|
|
64
64
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";!function(n,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((n="undefined"!=typeof globalThis?globalThis:n||self).anyone={})}(this,(function(n){function e(n){if("function"==typeof n)try{return
|
|
1
|
+
"use strict";!function(n,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((n="undefined"!=typeof globalThis?globalThis:n||self).anyone={})}(this,(function(n){function e(n){return function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return!n.apply(void 0,e)}}function r(n){if("function"==typeof n)try{return t(n())}catch(n){return!1}return t(n)}function t(n){return!!Array.isArray(n)||0!=n&&!!n}n.all=function(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];return n.every(r)},n.any=function(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];return n.some(r)},n.none=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];return n.every(e(r))},n.one=function(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];for(var t=e=0;t<n.length;t++)if(r(n[t])&&e++,1<e)return!1;return 1===e},Object.defineProperty(n,"__esModule",{value:!0})}));
|
package/none/package.json
CHANGED
package/one/package.json
CHANGED
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"license": "MIT",
|
|
4
4
|
"main": "./dist/cjs/anyone.js",
|
|
5
5
|
"types": "./types/anyone.d.ts",
|
|
6
|
-
"version": "1.0.
|
|
6
|
+
"version": "1.0.2-dev-afe5de",
|
|
7
7
|
"author": "ealush",
|
|
8
8
|
"scripts": {
|
|
9
9
|
"test": "vx test",
|
|
@@ -162,5 +162,7 @@
|
|
|
162
162
|
},
|
|
163
163
|
"bugs": {
|
|
164
164
|
"url": "https://github.com/ealush/vest.git/issues"
|
|
165
|
-
}
|
|
165
|
+
},
|
|
166
|
+
"unpkg": "./dist/umd/anyone.production.js",
|
|
167
|
+
"jsdelivr": "./dist/umd/anyone.production.js"
|
|
166
168
|
}
|