new license file version [CI SKIP]
This commit is contained in:
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"window.js","sources":["../../src/add/operator/window.ts"],"names":[],"mappings":";;AAAA,2CAAyC"}
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"dematerialize.js","sources":["../src/operators/dematerialize.ts"],"names":[],"mappings":";;;;;AAAA,yDAAoD"}
|
||||
@@ -0,0 +1,12 @@
|
||||
/** PURE_IMPORTS_START _util_not,_filter PURE_IMPORTS_END */
|
||||
import { not } from '../util/not';
|
||||
import { filter } from './filter';
|
||||
export function partition(predicate, thisArg) {
|
||||
return function (source) {
|
||||
return [
|
||||
filter(predicate, thisArg)(source),
|
||||
filter(not(predicate, thisArg))(source)
|
||||
];
|
||||
};
|
||||
}
|
||||
//# sourceMappingURL=partition.js.map
|
||||
@@ -0,0 +1,74 @@
|
||||
'use strict';
|
||||
|
||||
Object.defineProperty(exports, '__esModule', { value: true });
|
||||
|
||||
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
|
||||
|
||||
var deprecation = require('deprecation');
|
||||
var once = _interopDefault(require('once'));
|
||||
|
||||
const logOnceCode = once(deprecation => console.warn(deprecation));
|
||||
const logOnceHeaders = once(deprecation => console.warn(deprecation));
|
||||
/**
|
||||
* Error with extra properties to help with debugging
|
||||
*/
|
||||
|
||||
class RequestError extends Error {
|
||||
constructor(message, statusCode, options) {
|
||||
super(message); // Maintains proper stack trace (only available on V8)
|
||||
|
||||
/* istanbul ignore next */
|
||||
|
||||
if (Error.captureStackTrace) {
|
||||
Error.captureStackTrace(this, this.constructor);
|
||||
}
|
||||
|
||||
this.name = "HttpError";
|
||||
this.status = statusCode;
|
||||
let headers;
|
||||
|
||||
if ("headers" in options && typeof options.headers !== "undefined") {
|
||||
headers = options.headers;
|
||||
}
|
||||
|
||||
if ("response" in options) {
|
||||
this.response = options.response;
|
||||
headers = options.response.headers;
|
||||
} // redact request credentials without mutating original request options
|
||||
|
||||
|
||||
const requestCopy = Object.assign({}, options.request);
|
||||
|
||||
if (options.request.headers.authorization) {
|
||||
requestCopy.headers = Object.assign({}, options.request.headers, {
|
||||
authorization: options.request.headers.authorization.replace(/ .*$/, " [REDACTED]")
|
||||
});
|
||||
}
|
||||
|
||||
requestCopy.url = requestCopy.url // client_id & client_secret can be passed as URL query parameters to increase rate limit
|
||||
// see https://developer.github.com/v3/#increasing-the-unauthenticated-rate-limit-for-oauth-applications
|
||||
.replace(/\bclient_secret=\w+/g, "client_secret=[REDACTED]") // OAuth tokens can be passed as URL query parameters, although it is not recommended
|
||||
// see https://developer.github.com/v3/#oauth2-token-sent-in-a-header
|
||||
.replace(/\baccess_token=\w+/g, "access_token=[REDACTED]");
|
||||
this.request = requestCopy; // deprecations
|
||||
|
||||
Object.defineProperty(this, "code", {
|
||||
get() {
|
||||
logOnceCode(new deprecation.Deprecation("[@octokit/request-error] `error.code` is deprecated, use `error.status`."));
|
||||
return statusCode;
|
||||
}
|
||||
|
||||
});
|
||||
Object.defineProperty(this, "headers", {
|
||||
get() {
|
||||
logOnceHeaders(new deprecation.Deprecation("[@octokit/request-error] `error.headers` is deprecated, use `error.response.headers`."));
|
||||
return headers || {};
|
||||
}
|
||||
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
exports.RequestError = RequestError;
|
||||
//# sourceMappingURL=index.js.map
|
||||
@@ -0,0 +1 @@
|
||||
{"name":"xdg-basedir","version":"4.0.0","files":{"license":{"checkedAt":1678887829653,"integrity":"sha512-nIst73auX/5NY2Fmv5Y116vWnNrEv4GaIUX3lpZG05rpXJY2S8EX+fpUS5hRjClCM0VdT2Za9DDHXXB5jdSrEw==","mode":420,"size":1109},"package.json":{"checkedAt":1678887830254,"integrity":"sha512-kdlzPKOUJBQf+UGbQmi3C7En3v+pMoJhc8FhFxvajo2Hqxd94AKXJwC07HmcvIGTEQhFSKDhHkn2FfRqgsSwrg==","mode":420,"size":642},"index.d.ts":{"checkedAt":1678887830254,"integrity":"sha512-1TX4iaCQNJkIV/cXHoB1qo1MxwUG1peCjez1Nnntf858uKEMS+YuJL/WL8RtmnL6QfrUINidsn2nWJkJjG31SA==","mode":420,"size":1566},"index.js":{"checkedAt":1678887830254,"integrity":"sha512-5ZtyisIT7KBpmeFShtjOj75b9Bh2VaUedYemwYCeXwB+/c9+6RSO2+yEUaq8SXd3Zoin7U1O9pZE3z4i3EywRA==","mode":420,"size":801},"readme.md":{"checkedAt":1678887830254,"integrity":"sha512-RcdcWQm2kCEcK+d4Im0jMQotcS53RAK+/+0BBSpsXxJovfxUQquAqJRfnXI7totPfTSTriVXXyl5c6IKhrvoJw==","mode":420,"size":1575}}}
|
||||
@@ -0,0 +1 @@
|
||||
export * from 'rxjs-compat/operator/timestamp';
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"bufferToggle.js","sources":["../../src/internal/operators/bufferToggle.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAGA,gDAA+C;AAC/C,+DAA8D;AAC9D,sDAAqD;AAkDrD,SAAgB,YAAY,CAC1B,QAAkC,EAClC,eAAyD;IAEzD,OAAO,SAAS,4BAA4B,CAAC,MAAqB;QAChE,OAAO,MAAM,CAAC,IAAI,CAAC,IAAI,oBAAoB,CAAO,QAAQ,EAAE,eAAe,CAAC,CAAC,CAAC;IAChF,CAAC,CAAC;AACJ,CAAC;AAPD,oCAOC;AAED;IAEE,8BAAoB,QAAkC,EAClC,eAAyD;QADzD,aAAQ,GAAR,QAAQ,CAA0B;QAClC,oBAAe,GAAf,eAAe,CAA0C;IAC7E,CAAC;IAED,mCAAI,GAAJ,UAAK,UAA2B,EAAE,MAAW;QAC3C,OAAO,MAAM,CAAC,SAAS,CAAC,IAAI,sBAAsB,CAAC,UAAU,EAAE,IAAI,CAAC,QAAQ,EAAE,IAAI,CAAC,eAAe,CAAC,CAAC,CAAC;IACvG,CAAC;IACH,2BAAC;AAAD,CAAC,AATD,IASC;AAYD;IAA2C,0CA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AAY,CAAC,CAAC;YAC1B,YAAY,CAAC,WAAW,EAAE,CAAC;SAC5B;IACH,CAAC;IAEO,6CAAY,GAApB,UAAqB,eAAoB;QACvC,IAAM,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC;QAE/B,IAAM,MAAM,GAAa,EAAE,CAAC;QAC5B,IAAM,YAAY,GAAG,IAAI,2BAAY,EAAE,CAAC;QACxC,IAAM,OAAO,GAAG,EAAE,MAAM,QAAA,EAAE,YAAY,cAAA,EAAE,CAAC;QACzC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAEvB,IAAM,iBAAiB,GAAG,qCAAiB,CAAC,IAAI,EAAE,eAAe,EAAE,OAAc,CAAC,CAAC;QAEnF,IAAI,CAAC,iBAAiB,IAAI,iBAAiB,CAAC,MAAM,EAAE;YAClD,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC;SAC3B;aAAM;YACJ,iBAAyB,CAAC,OAAO,GAAG,OAAO,CAAC;YAE7C,IAAI,CAAC,GAAG,CAAC,iBAAiB,CAAC,CAAC;YAC5B,YAAY,CAAC,GAAG,CAAC,iBAAiB,CAAC,CAAC;SACrC;IACH,CAAC;IACH,6BAAC;AAAD,CAAC,AA9FD,CAA2C,iCAAe,GA8FzD"}
|
||||
@@ -0,0 +1 @@
|
||||
module.exports={A:{A:{"2":"J E F G A B BC"},B:{"1":"H M N O P Q R S T U V W X Y Z a b c d f g h i j k l m n o p q r s D t","16":"C K L"},C:{"1":"1 2 3 4 5 6 7 8 9 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB uB ZB vB aB bB cB dB eB fB gB hB iB jB kB e lB mB nB oB pB P Q R wB S T U V W X Y Z a b c d f g h i j k l m n o p q r s D t xB yB","2":"0 CC tB I u J E F G A B C K L H M N O v w x y z DC EC"},D:{"1":"LB MB NB OB PB QB RB SB TB UB VB WB XB YB uB ZB vB aB bB cB dB eB fB gB hB iB jB kB e lB mB nB oB pB P Q R S T U V W X Y Z a b c d f g h i j k l m n o p q r s D t xB yB FC","2":"0 1 2 3 4 5 6 7 8 9 I u J E F G A B C K L H M N O v w x y z AB BB CB DB EB FB GB HB IB JB KB"},E:{"1":"F G A B C K L H JC KC 0B qB rB 1B LC MC 2B 3B 4B 5B sB 6B 7B 8B NC","2":"I u J E GC zB HC IC"},F:{"1":"8 9 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB e lB mB nB oB pB P Q R wB S T U V W X Y Z a b c d","2":"0 1 2 3 4 5 6 7 G B C H M N O v w x y z OC PC QC RC qB 9B SC rB"},G:{"1":"F XC YC ZC aC bC cC dC eC fC gC hC iC jC kC lC mC 2B 3B 4B 5B sB 6B 7B 8B","2":"zB TC AC UC VC WC"},H:{"2":"nC"},I:{"1":"D","2":"tB I oC pC qC rC AC sC tC"},J:{"2":"E","16":"A"},K:{"1":"e","2":"A B C qB 9B rB"},L:{"1":"D"},M:{"1":"D"},N:{"2":"A B"},O:{"1":"uC"},P:{"1":"vC wC xC yC zC 0B 0C 1C 2C 3C 4C sB 5C 6C 7C","2":"I"},Q:{"1":"1B"},R:{"1":"8C"},S:{"1":"9C"}},B:6,C:"Array.prototype.find"};
|
||||
@@ -0,0 +1,396 @@
|
||||
# Tinro Changelog
|
||||
|
||||
## unreleased
|
||||
|
||||
### Documentation
|
||||
|
||||
- 📝 Add notice about using meta() inside Route only [`bd2940de`](https://github.com/AlexxNB/tinro/commit/bd2940de42153fa29bd7e712c9ea401e4b007e0e)
|
||||
|
||||
## 0.6.1 - 2021-03-18
|
||||
|
||||
### Documentation
|
||||
|
||||
- 🚸 Add error message when use meta out of `Route` context. ([#58](https://github.com/AlexxNB/tinro/issues/58)) [`fc5d591b`](https://github.com/AlexxNB/tinro/commit/fc5d591bfa7cc2a2e3426c5c2d148bdc8d839dd6)
|
||||
|
||||
*[#58](https://github.com/AlexxNB/tinro/issues/58)*
|
||||
|
||||
### Other
|
||||
|
||||
- refactoring [`d2a818eb`](https://github.com/AlexxNB/tinro/commit/d2a818eb9c02a0598eee0c9e9ab3e260c2892439)
|
||||
|
||||
## 0.6.0 - 2021-03-06
|
||||
|
||||
### Features
|
||||
|
||||
- Add methods to set query and hash part of URL [`e84c4325`](https://github.com/AlexxNB/tinro/commit/e84c43259843445ded6cf00408ac684561b56c95)
|
||||
|
||||
## 0.5.15 - 2021-02-26
|
||||
|
||||
### Other
|
||||
|
||||
- refactroing merged PR workaround for redirects in hash mode [`3330c7de`](https://github.com/AlexxNB/tinro/commit/3330c7deddfec11bff37611c58a82e3292fd0919)
|
||||
|
||||
## 0.5.14 - 2021-02-26
|
||||
|
||||
### Other
|
||||
|
||||
- revert change to npmignore [`91413806`](https://github.com/AlexxNB/tinro/commit/91413806d0472d3257d0f9dd1bfa30b60befe367)
|
||||
- change to npmignore and gitignore [`7277b537`](https://github.com/AlexxNB/tinro/commit/7277b537609bec3ed2ce02f74299f3ec94c5480f)
|
||||
- removes dist files [`7c143dcf`](https://github.com/AlexxNB/tinro/commit/7c143dcf752f6342de0e71d9b4cdaf6b32e1f0d4)
|
||||
- build [`9439e9c5`](https://github.com/AlexxNB/tinro/commit/9439e9c5430b8531ac80b434e1c96f089f6d2704)
|
||||
- fix types, change goto behavior [`a349afcd`](https://github.com/AlexxNB/tinro/commit/a349afcd9709ef41ef61af0475e5d9f1086526e8)
|
||||
- Add "replace" option for routes (#1) [`d051eab3`](https://github.com/AlexxNB/tinro/commit/d051eab30a7f7957141c2d3dccc48ea010148129)
|
||||
|
||||
## 0.5.13 - 2021-02-25
|
||||
|
||||
### Other
|
||||
|
||||
- remove src from npmignore [`3e42a5f3`](https://github.com/AlexxNB/tinro/commit/3e42a5f34a6b94552d1eae29d44b613e8caf9300)
|
||||
- update deps [`6b2ec1a1`](https://github.com/AlexxNB/tinro/commit/6b2ec1a1585e3484ca277e81b7b721684a446587)
|
||||
- minor fixes [`36a64cab`](https://github.com/AlexxNB/tinro/commit/36a64cab857a1327008f1e4b3bae6fac0ea557ae)
|
||||
- Merge pull request #54 from mateomorris/master ([#54](https://github.com/AlexxNB/tinro/issues/54)) [`2c5b7484`](https://github.com/AlexxNB/tinro/commit/2c5b74840df973e4f1d1071c61ae1ea65d3fa4d3)
|
||||
|
||||
*Use 'meta' in example instead of 'params'*
|
||||
- Use 'meta' in example instead of 'params' [`01b840c6`](https://github.com/AlexxNB/tinro/commit/01b840c63d5d7c763804576c72719fe8a3aa022e)
|
||||
|
||||
## 0.5.12 - 2021-02-03
|
||||
|
||||
### Other
|
||||
|
||||
- separate meta from router [`7f6245c0`](https://github.com/AlexxNB/tinro/commit/7f6245c0916f519b932be7b5cc44b5f4cbc6dffc)
|
||||
|
||||
## 0.5.11 - 2021-01-29
|
||||
|
||||
### Other
|
||||
|
||||
- resolve [#50](https://github.com/AlexxNB/tinro/issues/50) ([#50](https://github.com/AlexxNB/tinro/issues/50)) [`823cdda0`](https://github.com/AlexxNB/tinro/commit/823cdda08091c0aa231419d3480fdd3975b3e84e)
|
||||
|
||||
## 0.5.10 - 2021-01-29
|
||||
|
||||
### Other
|
||||
|
||||
- fix [#50](https://github.com/AlexxNB/tinro/issues/50)#issuecomment-769808395 ([#50](https://github.com/AlexxNB/tinro/issues/50)) [`1af46ff0`](https://github.com/AlexxNB/tinro/commit/1af46ff061e74e28277773b56fe910ae4ee8cc7b)
|
||||
|
||||
## 0.5.9 - 2021-01-26
|
||||
|
||||
### Other
|
||||
|
||||
- resolve [#49](https://github.com/AlexxNB/tinro/issues/49) ([#49](https://github.com/AlexxNB/tinro/issues/49)) [`6ef56147`](https://github.com/AlexxNB/tinro/commit/6ef56147495cfac2d5cb911e61caed9a96c72d00)
|
||||
|
||||
## 0.5.8 - 2021-01-19
|
||||
|
||||
### Other
|
||||
|
||||
- fix parent in redirects [`cd481dca`](https://github.com/AlexxNB/tinro/commit/cd481dcadbcaaf8652ce99a0eb1163d02002ba22)
|
||||
- Merge pull request #48 from kindoflew/edit-readme ([#48](https://github.com/AlexxNB/tinro/issues/48)) [`a9526942`](https://github.com/AlexxNB/tinro/commit/a952694217e06d617a1a441048ff184718b66714)
|
||||
|
||||
*edit README and COMPARE*
|
||||
- edit README and COMPARE [`3adcf96c`](https://github.com/AlexxNB/tinro/commit/3adcf96c48211438a7095bc163c1cf217f12b29d)
|
||||
|
||||
## 0.5.7 - 2021-01-17
|
||||
|
||||
### Other
|
||||
|
||||
- make Route props reactive [`b095d10e`](https://github.com/AlexxNB/tinro/commit/b095d10e35c08ffa4f0375739bca65d31326c94b)
|
||||
|
||||
## 0.5.6 - 2021-01-08
|
||||
|
||||
### Other
|
||||
|
||||
- fix hash change listener [#42](https://github.com/AlexxNB/tinro/issues/42) ([#42](https://github.com/AlexxNB/tinro/issues/42)) [`495e294e`](https://github.com/AlexxNB/tinro/commit/495e294e71491785bfdb7e733cf271707875e71f)
|
||||
|
||||
## 0.5.5 - 2021-01-07
|
||||
|
||||
### Other
|
||||
|
||||
- fix format [`186782f0`](https://github.com/AlexxNB/tinro/commit/186782f07eb9e100c44c565b02265da0ac4995a5)
|
||||
|
||||
## 0.5.4 - 2021-01-07
|
||||
|
||||
### Other
|
||||
|
||||
- build correct module bundles [`754f4851`](https://github.com/AlexxNB/tinro/commit/754f48518e86065e6a49ab82c007c9e116a5c2ea)
|
||||
- add meta.query in contents [`dd96d17f`](https://github.com/AlexxNB/tinro/commit/dd96d17f936b9d365041ccc757e5c8e8db357424)
|
||||
|
||||
## 0.5.3 - 2021-01-04
|
||||
|
||||
### Other
|
||||
|
||||
- fix [`619f4ed2`](https://github.com/AlexxNB/tinro/commit/619f4ed26b010529dfb7a0fb3ea9725117aa5bf9)
|
||||
|
||||
## 0.5.2 - 2021-01-04
|
||||
|
||||
### Other
|
||||
|
||||
- refactoring [`10c925d9`](https://github.com/AlexxNB/tinro/commit/10c925d908ebcfb86b1a521c4fe4da6a8537c8cf)
|
||||
- added in memory navigation refactoring [`7474bce5`](https://github.com/AlexxNB/tinro/commit/7474bce5056d5149c5d8ab68360f3eda03bc1a29)
|
||||
- update API [`8fa450a8`](https://github.com/AlexxNB/tinro/commit/8fa450a8bc399e3dbc2ce9a539b123d50740bdab)
|
||||
|
||||
## 0.5.1 - 2021-01-02
|
||||
|
||||
### Other
|
||||
|
||||
- edit Readme [`a8245fa7`](https://github.com/AlexxNB/tinro/commit/a8245fa7ee52ec3140744706411b12d3354649f5)
|
||||
|
||||
## 0.5.0 - 2021-01-02
|
||||
|
||||
### Other
|
||||
|
||||
- new route meta data [`b7240a01`](https://github.com/AlexxNB/tinro/commit/b7240a01dab4ca510b0fd90fab098c5fc85757c5)
|
||||
|
||||
## 0.4.11 - 2021-01-02
|
||||
|
||||
### Other
|
||||
|
||||
- add params for slot definition [`273c2fdd`](https://github.com/AlexxNB/tinro/commit/273c2fdd46f38478d7ed7da9b535f1a74251eb17)
|
||||
|
||||
## 0.4.10 - 2020-12-30
|
||||
|
||||
### Other
|
||||
|
||||
- fix build [`a78de9f9`](https://github.com/AlexxNB/tinro/commit/a78de9f97066aecf8fc35a655aec8e97c0bcd7fb)
|
||||
|
||||
## 0.4.9 - 2020-12-30
|
||||
|
||||
### Other
|
||||
|
||||
- use esbuild for bundling instead rollup [`8f739831`](https://github.com/AlexxNB/tinro/commit/8f739831f9ae9a5e498f3cbda0f9dd3bc09a2f3c)
|
||||
- fix readme [`fd41f4a3`](https://github.com/AlexxNB/tinro/commit/fd41f4a3ec2f1f3c500032c51899e48a5c538f03)
|
||||
|
||||
## 0.4.8 - 2020-12-30
|
||||
|
||||
## 0.4.7 - 2020-12-30
|
||||
|
||||
### Other
|
||||
|
||||
- add firstmatch property resolve [#39](https://github.com/AlexxNB/tinro/issues/39) resolve [#31](https://github.com/AlexxNB/tinro/issues/31) resolve [#7](https://github.com/AlexxNB/tinro/issues/7) ([#39](https://github.com/AlexxNB/tinro/issues/39), [#31](https://github.com/AlexxNB/tinro/issues/31), [#7](https://github.com/AlexxNB/tinro/issues/7)) [`ec946494`](https://github.com/AlexxNB/tinro/commit/ec9464949b263de3f7723f7eb4800af25882fd7b)
|
||||
|
||||
## 0.4.6 - 2020-12-16
|
||||
|
||||
### Other
|
||||
|
||||
- fix links [`4978875d`](https://github.com/AlexxNB/tinro/commit/4978875d820010468a72c99730ba3f2faa6ba20d)
|
||||
|
||||
## 0.4.5 - 2020-12-09
|
||||
|
||||
### Other
|
||||
|
||||
- fix hashed links [`a416b2f8`](https://github.com/AlexxNB/tinro/commit/a416b2f8686e01cab26fbe1348bd86c41fee2838)
|
||||
|
||||
## 0.4.4 - 2020-12-09
|
||||
|
||||
### Other
|
||||
|
||||
- refactoring [`232eefeb`](https://github.com/AlexxNB/tinro/commit/232eefebbb831e0e21fc89ca4983b3daa8729522)
|
||||
- Merge pull request #30 from jacobmischka/fix-click-handler ([#30](https://github.com/AlexxNB/tinro/issues/30)) [`6eab81bb`](https://github.com/AlexxNB/tinro/commit/6eab81bb86931b49cff68606f74a6e3a785e47fb)
|
||||
|
||||
*Check for anchor before attempting to get href*
|
||||
- Check for anchor before attempting to get href [`073b8089`](https://github.com/AlexxNB/tinro/commit/073b8089714e742d67f7a00f8525c0d6e2c13c54)
|
||||
|
||||
## 0.4.3 - 2020-12-09
|
||||
|
||||
### Other
|
||||
|
||||
- fix relative links [`0cb4bd7e`](https://github.com/AlexxNB/tinro/commit/0cb4bd7eb2176b7bf2ac4ae279e450b4dd3452da)
|
||||
|
||||
## 0.4.2 - 2020-12-04
|
||||
|
||||
### Other
|
||||
|
||||
- add error messages [`5607bc7a`](https://github.com/AlexxNB/tinro/commit/5607bc7aa34b0416a4a8a6ac59f9af323b72fcf2)
|
||||
|
||||
## 0.4.1 - 2020-12-03
|
||||
|
||||
## 0.4.0 - 2020-12-03
|
||||
|
||||
### Other
|
||||
|
||||
- new routes matching conception [`a95094c0`](https://github.com/AlexxNB/tinro/commit/a95094c0215b9eccbb94550165df8bcdfe4754d1)
|
||||
|
||||
## 0.3.7 - 2020-09-30
|
||||
|
||||
### Other
|
||||
|
||||
- Merge pull request #26 from blissini/master ([#26](https://github.com/AlexxNB/tinro/issues/26)) [`95f4d393`](https://github.com/AlexxNB/tinro/commit/95f4d393efe53313c5bf5540dcc6bd4cb5fcedb8)
|
||||
|
||||
*fixed typos in README*
|
||||
|
||||
## 0.3.6 - 2020-09-30
|
||||
|
||||
### Other
|
||||
|
||||
- updtae Readme with key operator [`2f39df41`](https://github.com/AlexxNB/tinro/commit/2f39df41b9637ef8bfbe8432f5b75a7b639234f0)
|
||||
- update versions [`60cd977a`](https://github.com/AlexxNB/tinro/commit/60cd977ac2cf0711b8d72bd0370523958bf62806)
|
||||
- fixed some typos in README [`db37393e`](https://github.com/AlexxNB/tinro/commit/db37393e84110a3edd45bf875088809cb4e128ca)
|
||||
- Merge pull request #24 from AlexxNB/dependabot/npm_and_yarn/bl-4.0.3 ([#24](https://github.com/AlexxNB/tinro/issues/24)) [`ff68f135`](https://github.com/AlexxNB/tinro/commit/ff68f1356e23d6433241bbc2b303e2aec1b9c367)
|
||||
|
||||
*Bump bl from 4.0.2 to 4.0.3*
|
||||
- Bump bl from 4.0.2 to 4.0.3 [`1ba11784`](https://github.com/AlexxNB/tinro/commit/1ba11784100227b4575411d59109dfbcf0d48dd6)
|
||||
|
||||
*Bumps [bl](https://github.com/rvagg/bl) from 4.0.2 to 4.0.3. - [Release notes](https://github.com/rvagg/bl/releases) - [Commits](https://github.com/rvagg/bl/compare/v4.0.2...v4.0.3)*
|
||||
|
||||
## 0.3.5 - 2020-09-01
|
||||
|
||||
### Other
|
||||
|
||||
- oops [`1ec06fd1`](https://github.com/AlexxNB/tinro/commit/1ec06fd1ff3efbb39bbd5daab60439a5b9bca678)
|
||||
|
||||
## 0.3.4 - 2020-09-01
|
||||
|
||||
### Other
|
||||
|
||||
- type deffinition for the Router component [`d9effe09`](https://github.com/AlexxNB/tinro/commit/d9effe09ef0500f146c4501670f5a6ca03ac50b2)
|
||||
|
||||
## 0.3.3 - 2020-08-14
|
||||
|
||||
### Other
|
||||
|
||||
- fix [#16](https://github.com/AlexxNB/tinro/issues/16) ([#16](https://github.com/AlexxNB/tinro/issues/16)) [`4414f8ca`](https://github.com/AlexxNB/tinro/commit/4414f8ca44c568289c4ed3fcee52606361737a70)
|
||||
- update deps [`be3a6d4a`](https://github.com/AlexxNB/tinro/commit/be3a6d4a752380d55169adfffea4c68cc0a856d7)
|
||||
|
||||
## 0.3.2 - 2020-08-13
|
||||
|
||||
### Other
|
||||
|
||||
- update deps [`e3101958`](https://github.com/AlexxNB/tinro/commit/e310195840f971550003823c07249ed70437a5b6)
|
||||
|
||||
## 0.3.1 - 2020-07-29
|
||||
|
||||
### Other
|
||||
|
||||
- Merge pull request #19 from jnordberg/master ([#19](https://github.com/AlexxNB/tinro/issues/19)) [`e8f62c35`](https://github.com/AlexxNB/tinro/commit/e8f62c35e4685f475337f3128ba3986a396afabf)
|
||||
|
||||
*Improve TypeScript types*
|
||||
- Extension apparently has to be in separate declaration to be picked up [`503a9e3f`](https://github.com/AlexxNB/tinro/commit/503a9e3f3be2a523ba60606a35965ba8e50ab1f8)
|
||||
- Fix types [`1d33f7d5`](https://github.com/AlexxNB/tinro/commit/1d33f7d5f75ff60174fe5420faede85528c2c9cb)
|
||||
- add types [`f949285b`](https://github.com/AlexxNB/tinro/commit/f949285b0228da221bf3375b04bdcd15d9142c86)
|
||||
- add gzipped size in compare [`b53835d4`](https://github.com/AlexxNB/tinro/commit/b53835d4f36e7b0cea3ec0577b8bb3b366b44ae7)
|
||||
- add error handling [`4ed8f1ca`](https://github.com/AlexxNB/tinro/commit/4ed8f1ca2936263db2ddf73d0b66e35f6c029711)
|
||||
|
||||
## 0.3.0 - 2020-07-27
|
||||
|
||||
### Other
|
||||
|
||||
- add relative redirects [`6f34dd09`](https://github.com/AlexxNB/tinro/commit/6f34dd09745d4f8a68593da6a4457fd78ed56502)
|
||||
- huge refactoring, use store for routes logic [`f8eb0b7f`](https://github.com/AlexxNB/tinro/commit/f8eb0b7f95736532955078c3be1ac8d8fe1309e3)
|
||||
|
||||
## 0.2.10 - 2020-05-26
|
||||
|
||||
### Other
|
||||
|
||||
- fix [#15](https://github.com/AlexxNB/tinro/issues/15) ([#15](https://github.com/AlexxNB/tinro/issues/15)) [`0642b36f`](https://github.com/AlexxNB/tinro/commit/0642b36f1ab964ef02273da0fb9e1c769d555440)
|
||||
|
||||
## 0.2.9 - 2020-05-16
|
||||
|
||||
### Other
|
||||
|
||||
- remove browser bundle [`ed0bc4b5`](https://github.com/AlexxNB/tinro/commit/ed0bc4b5fd15456333c29cae0bd0b8a7383bcdc4)
|
||||
- Merge pull request #13 from ronthecookie/patch-1 ([#13](https://github.com/AlexxNB/tinro/issues/13)) [`9d07484a`](https://github.com/AlexxNB/tinro/commit/9d07484a3d77b4e666b527a2bb8bfea9d9c8f584)
|
||||
|
||||
*Fix typo in README*
|
||||
- Fix typo in README [`f0f6ace9`](https://github.com/AlexxNB/tinro/commit/f0f6ace9ac6c6f395ad85b53a669a79f622535ec)
|
||||
|
||||
## 0.2.8 - 2020-05-14
|
||||
|
||||
### Other
|
||||
|
||||
- fix [#12](https://github.com/AlexxNB/tinro/issues/12) ([#12](https://github.com/AlexxNB/tinro/issues/12)) [`49898c1d`](https://github.com/AlexxNB/tinro/commit/49898c1d7962d5fce0cbdcd2455c508481cb7bb1)
|
||||
|
||||
## 0.2.7 - 2020-05-12
|
||||
|
||||
### Other
|
||||
|
||||
- fix ignore attribute remove after first click [`6b5ad033`](https://github.com/AlexxNB/tinro/commit/6b5ad03374b5e19b215d6e733b27bc5d4f355de4)
|
||||
|
||||
## 0.2.6 - 2020-05-10
|
||||
|
||||
### Other
|
||||
|
||||
- add guarded routes recipe from [#9](https://github.com/AlexxNB/tinro/issues/9) ([#9](https://github.com/AlexxNB/tinro/issues/9)) [`575e332a`](https://github.com/AlexxNB/tinro/commit/575e332a0700f8d45d4867af70278380afad7bc8)
|
||||
|
||||
## 0.2.5 - 2020-05-09
|
||||
|
||||
### Other
|
||||
|
||||
- add tinro-ignore options propsed at [#11](https://github.com/AlexxNB/tinro/issues/11) ([#11](https://github.com/AlexxNB/tinro/issues/11)) [`cb9b844f`](https://github.com/AlexxNB/tinro/commit/cb9b844f9d15501aec444364ddf0a00869273c77)
|
||||
|
||||
## 0.2.4 - 2020-04-28
|
||||
|
||||
### Other
|
||||
|
||||
- add [#4](https://github.com/AlexxNB/tinro/issues/4) ([#4](https://github.com/AlexxNB/tinro/issues/4)) [`e35eacd1`](https://github.com/AlexxNB/tinro/commit/e35eacd1b942a79dcc15d16fa9720653eddb3f39)
|
||||
- More universal Lazy component [`dd4022e7`](https://github.com/AlexxNB/tinro/commit/dd4022e77e71af1a70cf9c696cc11f6a52b98a6a)
|
||||
- Merge pull request #6 from frederikhors/patch-2 ([#6](https://github.com/AlexxNB/tinro/issues/6)) [`160beebe`](https://github.com/AlexxNB/tinro/commit/160beebea4f1255a7239976b3ff085cd42f9c606)
|
||||
|
||||
*Misprints*
|
||||
- Merge pull request #5 from frederikhors/patch-1 ([#5](https://github.com/AlexxNB/tinro/issues/5)) [`908f82bf`](https://github.com/AlexxNB/tinro/commit/908f82bfe6e09f0bffb846bd71f6cd2285d0068b)
|
||||
|
||||
*Misprint*
|
||||
- Misprints [`55f8d8a6`](https://github.com/AlexxNB/tinro/commit/55f8d8a6e2932dc4b5d047edadcccb63cb131798)
|
||||
- Misprint [`285792fe`](https://github.com/AlexxNB/tinro/commit/285792fe89cfc8c36a49ff533af9c42637d4a670)
|
||||
- minor edits in readme [`9e40c0c8`](https://github.com/AlexxNB/tinro/commit/9e40c0c8729bd98a5092721cac9ec05d7b7b0ac7)
|
||||
- fix link [`eae49955`](https://github.com/AlexxNB/tinro/commit/eae499558f0fee83fa369d81ba98de6f704cb008)
|
||||
- fix typo [`4b1edab7`](https://github.com/AlexxNB/tinro/commit/4b1edab7466b6750da847adbce726ea0ee62d9ed)
|
||||
|
||||
## 0.2.3 - 2020-04-27
|
||||
|
||||
### Other
|
||||
|
||||
- Add recipies [`6649173b`](https://github.com/AlexxNB/tinro/commit/6649173b5d46f8be90c85b101eec4e9dcc72ead2)
|
||||
|
||||
## 0.2.2 - 2020-04-25
|
||||
|
||||
### Other
|
||||
|
||||
- fix, active action doesn't work with hashed style path [`dd3cb07d`](https://github.com/AlexxNB/tinro/commit/dd3cb07d0976fa24d9ce4763c68cf6c2e2efa700)
|
||||
- fix typo [`f4147883`](https://github.com/AlexxNB/tinro/commit/f4147883efae0d9843f3cce27d5a18283af5d806)
|
||||
|
||||
## 0.2.1 - 2020-04-25
|
||||
|
||||
### Other
|
||||
|
||||
- add active action to mark active links [`74bb6603`](https://github.com/AlexxNB/tinro/commit/74bb660397b6876955d62631a1dab810e4dbc381)
|
||||
- add tests [`758453a6`](https://github.com/AlexxNB/tinro/commit/758453a6bfeb83bfe68440fa0062317e167c119d)
|
||||
- fix build bage [`bd9221bf`](https://github.com/AlexxNB/tinro/commit/bd9221bfe0a7b075b2a8e704c2d708d267c432dd)
|
||||
- fix test [`e6ba03bb`](https://github.com/AlexxNB/tinro/commit/e6ba03bb78b09df125d83f9f9e042ef932f7aa56)
|
||||
- add badges [`df575f66`](https://github.com/AlexxNB/tinro/commit/df575f66958267d5b69a4e00f698fcfe4e0a64fb)
|
||||
- add REPL example [`cb5f6e38`](https://github.com/AlexxNB/tinro/commit/cb5f6e3898f53c6f83915c4d08360caedcd2cbd1)
|
||||
- add test for hash navigation [`296f8778`](https://github.com/AlexxNB/tinro/commit/296f87788e6ef28942f857a85f37f6a0d2cf22f4)
|
||||
- add hash feature in list [`d94717b0`](https://github.com/AlexxNB/tinro/commit/d94717b05e624b4af2b576bce93dbe69d6bbb276)
|
||||
|
||||
## 0.2.0 - 2020-04-18
|
||||
|
||||
### Other
|
||||
|
||||
- add hash navigation method [`aa762d19`](https://github.com/AlexxNB/tinro/commit/aa762d191def32f5f1498f1c37c11ece3dee4a89)
|
||||
- edit Readme [`1aee13cd`](https://github.com/AlexxNB/tinro/commit/1aee13cd6c53c2bfb2e786d17b98aad5fd678f79)
|
||||
- fix error message [`5238fb2b`](https://github.com/AlexxNB/tinro/commit/5238fb2b03fc83465a9e6e96c9a652adeab8c8b4)
|
||||
- impliment unholded rejection in script [`a7a0ba5d`](https://github.com/AlexxNB/tinro/commit/a7a0ba5d8d41654afe22bfe9fa14046fdfb1d3b5)
|
||||
- fix unkilled dev server [`caa51846`](https://github.com/AlexxNB/tinro/commit/caa518466080edd78e00d99f940fd74d0a01961f)
|
||||
- fail test on error with promises [`134a40b2`](https://github.com/AlexxNB/tinro/commit/134a40b2887433c7f0a321a73345806caa5d568e)
|
||||
- add npm publish workflow [`084170d9`](https://github.com/AlexxNB/tinro/commit/084170d90fd34fb98b99c67f5e714169a3daccb5)
|
||||
- fix import for Route [`110aae33`](https://github.com/AlexxNB/tinro/commit/110aae3313da8eac89cba0a28a0fc6750f065cad)
|
||||
- add table of contents [`58b8e5bb`](https://github.com/AlexxNB/tinro/commit/58b8e5bb8abcd66e0c8b565bc27886bbf1f29223)
|
||||
- add install chapter [`0566a886`](https://github.com/AlexxNB/tinro/commit/0566a8864b5de3e4200be8fb4c3ad5e94a079ab1)
|
||||
- add readme [`b21c2fd6`](https://github.com/AlexxNB/tinro/commit/b21c2fd6aa2e8607e5c8616b2b6168f1539f33e7)
|
||||
- add fallback tests [`26e1d8ec`](https://github.com/AlexxNB/tinro/commit/26e1d8ec9f43b3e634c19c7496acb8100137a5f4)
|
||||
- add links test [`8544cad1`](https://github.com/AlexxNB/tinro/commit/8544cad1cf2a3522b1f53213eb9864f686c30e3b)
|
||||
- add helpers in page object [`1bcb3754`](https://github.com/AlexxNB/tinro/commit/1bcb3754efa115df5d4d32b35f724f7477640114)
|
||||
- add some tests [`5c749e36`](https://github.com/AlexxNB/tinro/commit/5c749e3698fd98050df8cb967cc998c994f84f65)
|
||||
- new tests stack using tape-modern+puppeteer [`148e0940`](https://github.com/AlexxNB/tinro/commit/148e0940335a9c94d419145b0f197176811bd6df)
|
||||
- Move redirect to separate test [`f8e0eafb`](https://github.com/AlexxNB/tinro/commit/f8e0eafb57266307266d4a3244d2dff0255ab8eb)
|
||||
- make compare result generation [`45743cf1`](https://github.com/AlexxNB/tinro/commit/45743cf12e5fb5576d7e76017929aeb9118c131b)
|
||||
- add test for page loading [`1113a4b0`](https://github.com/AlexxNB/tinro/commit/1113a4b0e7f2d3828379f9f994798ae398677b2e)
|
||||
- break test on pieces in set directory [`df6d3c2b`](https://github.com/AlexxNB/tinro/commit/df6d3c2bf5bdb4accbeb03cfa7a730b1ff18021c)
|
||||
- setup test tooling [`38ecfce6`](https://github.com/AlexxNB/tinro/commit/38ecfce6913aa00316e6e34b8197e6eb2c6d9b46)
|
||||
- compare setup to determine the value of the tinro [`6ca0989a`](https://github.com/AlexxNB/tinro/commit/6ca0989a82b1830961935f5bbec7f08f8223dcd6)
|
||||
- add some tests [`9236630d`](https://github.com/AlexxNB/tinro/commit/9236630da261a5324199886707b68a98fa79b5d5)
|
||||
- fix non exact redirects [`66ce24e1`](https://github.com/AlexxNB/tinro/commit/66ce24e11f9db4d26ad22c2c290b5fdfb3773e55)
|
||||
- fix redirect [`3a0f1727`](https://github.com/AlexxNB/tinro/commit/3a0f1727dce6662abadff5518dae64da4a877e3e)
|
||||
- add redirect property [`86804cca`](https://github.com/AlexxNB/tinro/commit/86804cca7a7c700514f8cca4fceabf4043791478)
|
||||
- remove test bundles from git [`84a70394`](https://github.com/AlexxNB/tinro/commit/84a703941e2699c91c1cd71358d806f1b3fadd9b)
|
||||
- add params in router [`a6bcb8ae`](https://github.com/AlexxNB/tinro/commit/a6bcb8ae6a64b20d53fa6a7942156031d831a470)
|
||||
- some refactoring [`e3bec591`](https://github.com/AlexxNB/tinro/commit/e3bec59181670cb5a3ec43959f6f268c1db90609)
|
||||
- rebrending [`3dd8f2b9`](https://github.com/AlexxNB/tinro/commit/3dd8f2b9ce930d75cfca3aa13814421a96267b2e)
|
||||
- initial commit [`d192b741`](https://github.com/AlexxNB/tinro/commit/d192b741306d5ee9a6ce1590379c73548bb8716c)
|
||||
- Initial commit [`c9a025a2`](https://github.com/AlexxNB/tinro/commit/c9a025a21b61201326271e0a93767bf0e7bfd60f)
|
||||
@@ -0,0 +1,262 @@
|
||||
# validator.js
|
||||
|
||||
[![NPM version][npm-image]][npm-url]
|
||||
[](https://travis-ci.org/validatorjs/validator.js)
|
||||
[](https://codecov.io/gh/validatorjs/validator.js)
|
||||
[![Downloads][downloads-image]][npm-url]
|
||||
[](#backers)
|
||||
[](#sponsors)
|
||||
|
||||
A library of string validators and sanitizers.
|
||||
|
||||
## Strings only
|
||||
|
||||
**This library validates and sanitizes strings only.**
|
||||
|
||||
If you're not sure if your input is a string, coerce it using `input + ''`.
|
||||
Passing anything other than a string is an error.
|
||||
|
||||
## Installation and Usage
|
||||
|
||||
### Server-side usage
|
||||
|
||||
Install the library with `npm install validator`
|
||||
|
||||
#### No ES6
|
||||
|
||||
```javascript
|
||||
var validator = require('validator');
|
||||
|
||||
validator.isEmail('foo@bar.com'); //=> true
|
||||
```
|
||||
|
||||
#### ES6
|
||||
|
||||
```javascript
|
||||
import validator from 'validator';
|
||||
```
|
||||
|
||||
Or, import only a subset of the library:
|
||||
|
||||
```javascript
|
||||
import isEmail from 'validator/lib/isEmail';
|
||||
```
|
||||
|
||||
#### Tree-shakeable ES imports
|
||||
|
||||
```javascript
|
||||
import isEmail from 'validator/es/lib/isEmail';
|
||||
```
|
||||
|
||||
### Client-side usage
|
||||
|
||||
The library can be loaded either as a standalone script, or through an [AMD][amd]-compatible loader
|
||||
|
||||
```html
|
||||
<script type="text/javascript" src="validator.min.js"></script>
|
||||
<script type="text/javascript">
|
||||
validator.isEmail('foo@bar.com'); //=> true
|
||||
</script>
|
||||
```
|
||||
|
||||
The library can also be installed through [bower][bower]
|
||||
|
||||
```bash
|
||||
$ bower install validator-js
|
||||
```
|
||||
|
||||
## Contributors
|
||||
|
||||
[Become a backer](https://opencollective.com/validatorjs#backer)
|
||||
|
||||
[Become a sponsor](https://opencollective.com/validatorjs#sponsor)
|
||||
|
||||
Thank you to the people who have already contributed:
|
||||
|
||||
<a href="https://github.com/validatorjs/validator.js/graphs/contributors"><img src="https://opencollective.com/validatorjs/contributors.svg?width=890" /></a>
|
||||
|
||||
## Validators
|
||||
|
||||
Here is a list of the validators currently available.
|
||||
|
||||
Validator | Description
|
||||
--------------------------------------- | --------------------------------------
|
||||
**contains(str, seed [, options ])** | check if the string contains the seed.<br/><br/>`options` is an object that defaults to `{ ignoreCase: false}`.<br/>`ignoreCase` specified whether the case of the substring be same or not.
|
||||
**equals(str, comparison)** | check if the string matches the comparison.
|
||||
**isAfter(str [, date])** | check if the string is a date that's after the specified date (defaults to now).
|
||||
**isAlpha(str [, locale, options])** | check if the string contains only letters (a-zA-Z).<br/><br/>Locale is one of `['ar', 'ar-AE', 'ar-BH', 'ar-DZ', 'ar-EG', 'ar-IQ', 'ar-JO', 'ar-KW', 'ar-LB', 'ar-LY', 'ar-MA', 'ar-QA', 'ar-QM', 'ar-SA', 'ar-SD', 'ar-SY', 'ar-TN', 'ar-YE', 'bg-BG', 'cs-CZ', 'da-DK', 'de-DE', 'el-GR', 'en-AU', 'en-GB', 'en-HK', 'en-IN', 'en-NZ', 'en-US', 'en-ZA', 'en-ZM', 'es-ES', 'fa-IR', 'fr-CA', 'fr-FR', 'he', 'hu-HU', 'it-IT', 'ku-IQ', 'nb-NO', 'nl-NL', 'nn-NO', 'pl-PL', 'pt-BR', 'pt-PT', 'ru-RU', 'sl-SI', 'sk-SK', 'sr-RS', 'sr-RS@latin', 'sv-SE', 'tr-TR', 'uk-UA']`) and defaults to `en-US`. Locale list is `validator.isAlphaLocales`. options is an optional object that can be supplied with the following key(s): ignore which can either be a String or RegExp of characters to be ignored e.g. " -" will ignore spaces and -'s.
|
||||
**isAlphanumeric(str [, locale])** | check if the string contains only letters and numbers.<br/><br/>Locale is one of `['ar', 'ar-AE', 'ar-BH', 'ar-DZ', 'ar-EG', 'ar-IQ', 'ar-JO', 'ar-KW', 'ar-LB', 'ar-LY', 'ar-MA', 'ar-QA', 'ar-QM', 'ar-SA', 'ar-SD', 'ar-SY', 'ar-TN', 'ar-YE', 'bg-BG', 'cs-CZ', 'da-DK', 'de-DE', 'el-GR', 'en-AU', 'en-GB', 'en-HK', 'en-IN', 'en-NZ', 'en-US', 'en-ZA', 'en-ZM', 'es-ES', 'fa-IR', 'fr-CA', 'fr-FR', 'he', 'hu-HU', 'it-IT', 'ku-IQ', 'nb-NO', 'nl-NL', 'nn-NO', 'pl-PL', 'pt-BR', 'pt-PT', 'ru-RU', 'sl-SI', 'sk-SK', 'sr-RS', 'sr-RS@latin', 'sv-SE', 'tr-TR', 'uk-UA']`) and defaults to `en-US`. Locale list is `validator.isAlphanumericLocales`.
|
||||
**isAscii(str)** | check if the string contains ASCII chars only.
|
||||
**isBase32(str)** | check if a string is base32 encoded.
|
||||
**isBase58(str)** | check if a string is base58 encoded.
|
||||
**isBase64(str [, options])** | check if a string is base64 encoded. options is optional and defaults to `{urlSafe: false}`<br/> when `urlSafe` is true it tests the given base64 encoded string is [url safe](https://base64.guru/standards/base64url)
|
||||
**isBefore(str [, date])** | check if the string is a date that's before the specified date.
|
||||
**isBIC(str)** | check if a string is a BIC (Bank Identification Code) or SWIFT code.
|
||||
**isBoolean(str)** | check if a string is a boolean.
|
||||
**isBtcAddress(str)** | check if the string is a valid BTC address.
|
||||
**isByteLength(str [, options])** | check if the string's length (in UTF-8 bytes) falls in a range.<br/><br/>`options` is an object which defaults to `{min:0, max: undefined}`.
|
||||
**isCreditCard(str)** | check if the string is a credit card.
|
||||
**isCurrency(str [, options])** | check if the string is a valid currency amount.<br/><br/>`options` is an object which defaults to `{symbol: '$', require_symbol: false, allow_space_after_symbol: false, symbol_after_digits: false, allow_negatives: true, parens_for_negatives: false, negative_sign_before_digits: false, negative_sign_after_digits: false, allow_negative_sign_placeholder: false, thousands_separator: ',', decimal_separator: '.', allow_decimal: true, require_decimal: false, digits_after_decimal: [2], allow_space_after_digits: false}`.<br/>**Note:** The array `digits_after_decimal` is filled with the exact number of digits allowed not a range, for example a range 1 to 3 will be given as [1, 2, 3].
|
||||
**isDataURI(str)** | check if the string is a [data uri format](https://developer.mozilla.org/en-US/docs/Web/HTTP/data_URIs).
|
||||
**isDate(input [, options])** | Check if the input is a valid date. e.g. [`2002-07-15`, new Date()].<br/><br/> `options` is an object which can contain the keys `format`, `strictMode` and/or `delimiters`<br/><br/>`format` is a string and defaults to `YYYY/MM/DD`.<br/><br/>`strictMode` is a boolean and defaults to `false`. If `strictMode` is set to true, the validator will reject inputs different from `format`.<br/><br/> `delimiters` is an array of allowed date delimiters and defaults to `['/', '-']`.
|
||||
**isDecimal(str [, options])** | check if the string represents a decimal number, such as 0.1, .3, 1.1, 1.00003, 4.0, etc.<br/><br/>`options` is an object which defaults to `{force_decimal: false, decimal_digits: '1,', locale: 'en-US'}`<br/><br/>`locale` determine the decimal separator and is one of `['ar', 'ar-AE', 'ar-BH', 'ar-DZ', 'ar-EG', 'ar-IQ', 'ar-JO', 'ar-KW', 'ar-LB', 'ar-LY', 'ar-MA', 'ar-QA', 'ar-QM', 'ar-SA', 'ar-SD', 'ar-SY', 'ar-TN', 'ar-YE', 'bg-BG', 'cs-CZ', 'da-DK', 'de-DE', 'el-GR', 'en-AU', 'en-GB', 'en-HK', 'en-IN', 'en-NZ', 'en-US', 'en-ZA', 'en-ZM', 'es-ES', 'fa', 'fa-AF', 'fa-IR', 'fr-FR', 'fr-CA', 'hu-HU', 'id-ID', 'it-IT', 'ku-IQ', 'nb-NO', 'nl-NL', 'nn-NO', 'pl-PL', 'pl-Pl', 'pt-BR', 'pt-PT', 'ru-RU', 'sl-SI', 'sr-RS', 'sr-RS@latin', 'sv-SE', 'tr-TR', 'uk-UA', 'vi-VN']`.<br/>**Note:** `decimal_digits` is given as a range like '1,3', a specific value like '3' or min like '1,'.
|
||||
**isDivisibleBy(str, number)** | check if the string is a number that's divisible by another.
|
||||
**isEAN(str)** | check if the string is an EAN (European Article Number).
|
||||
**isEmail(str [, options])** | check if the string is an email.<br/><br/>`options` is an object which defaults to `{ allow_display_name: false, require_display_name: false, allow_utf8_local_part: true, require_tld: true, allow_ip_domain: false, domain_specific_validation: false, blacklisted_chars: '' }`. If `allow_display_name` is set to true, the validator will also match `Display Name <email-address>`. If `require_display_name` is set to true, the validator will reject strings without the format `Display Name <email-address>`. If `allow_utf8_local_part` is set to false, the validator will not allow any non-English UTF8 character in email address' local part. If `require_tld` is set to false, e-mail addresses without having TLD in their domain will also be matched. If `ignore_max_length` is set to true, the validator will not check for the standard max length of an email. If `allow_ip_domain` is set to true, the validator will allow IP addresses in the host part. If `domain_specific_validation` is true, some additional validation will be enabled, e.g. disallowing certain syntactically valid email addresses that are rejected by GMail. If `blacklisted_chars` recieves a string,then the validator will reject emails that include any of the characters in the string, in the name part.
|
||||
**isEmpty(str [, options])** | check if the string has a length of zero.<br/><br/>`options` is an object which defaults to `{ ignore_whitespace:false }`.
|
||||
**isEthereumAddress(str)** | check if the string is an [Ethereum](https://ethereum.org/) address using basic regex. Does not validate address checksums.
|
||||
**isFloat(str [, options])** | check if the string is a float.<br/><br/>`options` is an object which can contain the keys `min`, `max`, `gt`, and/or `lt` to validate the float is within boundaries (e.g. `{ min: 7.22, max: 9.55 }`) it also has `locale` as an option.<br/><br/>`min` and `max` are equivalent to 'greater or equal' and 'less or equal', respectively while `gt` and `lt` are their strict counterparts.<br/><br/>`locale` determine the decimal separator and is one of `['ar', 'ar-AE', 'ar-BH', 'ar-DZ', 'ar-EG', 'ar-IQ', 'ar-JO', 'ar-KW', 'ar-LB', 'ar-LY', 'ar-MA', 'ar-QA', 'ar-QM', 'ar-SA', 'ar-SD', 'ar-SY', 'ar-TN', 'ar-YE', 'bg-BG', 'cs-CZ', 'da-DK', 'de-DE', 'en-AU', 'en-GB', 'en-HK', 'en-IN', 'en-NZ', 'en-US', 'en-ZA', 'en-ZM', 'es-ES', 'fr-CA', 'fr-FR', 'hu-HU', 'it-IT', 'nb-NO', 'nl-NL', 'nn-NO', 'pl-PL', 'pt-BR', 'pt-PT', 'ru-RU', 'sl-SI', 'sr-RS', 'sr-RS@latin', 'sv-SE', 'tr-TR', 'uk-UA']`. Locale list is `validator.isFloatLocales`.
|
||||
**isFQDN(str [, options])** | check if the string is a fully qualified domain name (e.g. domain.com).<br/><br/>`options` is an object which defaults to `{ require_tld: true, allow_underscores: false, allow_trailing_dot: false , allow_numeric_tld: false }`.
|
||||
**isFullWidth(str)** | check if the string contains any full-width chars.
|
||||
**isHalfWidth(str)** | check if the string contains any half-width chars.
|
||||
**isHash(str, algorithm)** | check if the string is a hash of type algorithm.<br/><br/>Algorithm is one of `['md4', 'md5', 'sha1', 'sha256', 'sha384', 'sha512', 'ripemd128', 'ripemd160', 'tiger128', 'tiger160', 'tiger192', 'crc32', 'crc32b']`
|
||||
**isHexadecimal(str)** | check if the string is a hexadecimal number.
|
||||
**isHexColor(str)** | check if the string is a hexadecimal color.
|
||||
**isHSL(str)** | check if the string is an HSL (hue, saturation, lightness, optional alpha) color based on [CSS Colors Level 4 specification](https://developer.mozilla.org/en-US/docs/Web/CSS/color_value).<br/><br/>Comma-separated format supported. Space-separated format supported with the exception of a few edge cases (ex: `hsl(200grad+.1%62%/1)`).
|
||||
**isIBAN(str)** | check if a string is a IBAN (International Bank Account Number).
|
||||
**isIdentityCard(str [, locale])** | check if the string is a valid identity card code.<br/><br/>`locale` is one of `['ES', 'IN', 'IT', 'NO', 'zh-TW', 'he-IL', 'ar-TN', 'zh-CN']` OR `'any'`. If 'any' is used, function will check if any of the locals match.<br/><br/>Defaults to 'any'.
|
||||
**isIMEI(str [, options]))** | check if the string is a valid IMEI number. Imei should be of format `###############` or `##-######-######-#`.<br/><br/>`options` is an object which can contain the keys `allow_hyphens`. Defaults to first format . If allow_hyphens is set to true, the validator will validate the second format.
|
||||
**isIn(str, values)** | check if the string is in a array of allowed values.
|
||||
**isInt(str [, options])** | check if the string is an integer.<br/><br/>`options` is an object which can contain the keys `min` and/or `max` to check the integer is within boundaries (e.g. `{ min: 10, max: 99 }`). `options` can also contain the key `allow_leading_zeroes`, which when set to false will disallow integer values with leading zeroes (e.g. `{ allow_leading_zeroes: false }`). Finally, `options` can contain the keys `gt` and/or `lt` which will enforce integers being greater than or less than, respectively, the value provided (e.g. `{gt: 1, lt: 4}` for a number between 1 and 4).
|
||||
**isIP(str [, version])** | check if the string is an IP (version 4 or 6).
|
||||
**isIPRange(str)** | check if the string is an IP Range(version 4 only).
|
||||
**isISBN(str [, version])** | check if the string is an ISBN (version 10 or 13).
|
||||
**isISIN(str)** | check if the string is an [ISIN][ISIN] (stock/security identifier).
|
||||
**isISO8601(str)** | check if the string is a valid [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date. <br/>`options` is an object which defaults to `{ strict: false, strictSeparator: false }`. If `strict` is true, date strings with invalid dates like `2009-02-29` will be invalid. If `strictSeparator` is true, date strings with date and time separated by anything other than a T will be invalid.
|
||||
**isISO31661Alpha2(str)** | check if the string is a valid [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) officially assigned country code.
|
||||
**isISO31661Alpha3(str)** | check if the string is a valid [ISO 3166-1 alpha-3](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) officially assigned country code.
|
||||
**isISRC(str)** | check if the string is a [ISRC](https://en.wikipedia.org/wiki/International_Standard_Recording_Code).
|
||||
**isISSN(str [, options])** | check if the string is an [ISSN](https://en.wikipedia.org/wiki/International_Standard_Serial_Number).<br/><br/>`options` is an object which defaults to `{ case_sensitive: false, require_hyphen: false }`. If `case_sensitive` is true, ISSNs with a lowercase `'x'` as the check digit are rejected.
|
||||
**isJSON(str [, options])** | check if the string is valid JSON (note: uses JSON.parse).<br/><br/>`options` is an object which defaults to `{ allow_primitives: false }`. If `allow_primitives` is true, the primitives 'true', 'false' and 'null' are accepted as valid JSON values.
|
||||
**isJWT(str)** | check if the string is valid JWT token.
|
||||
**isLatLong(str [, options])** | check if the string is a valid latitude-longitude coordinate in the format `lat,long` or `lat, long`.<br/><br/>`options` is an object that defaults to `{ checkDMS: false }`. Pass `checkDMS` as `true` to validate DMS(degrees, minutes, and seconds) latitude-longitude format.
|
||||
**isLength(str [, options])** | check if the string's length falls in a range.<br/><br/>`options` is an object which defaults to `{min:0, max: undefined}`. Note: this function takes into account surrogate pairs.
|
||||
**isLocale(str)** | check if the string is a locale
|
||||
**isLowercase(str)** | check if the string is lowercase.
|
||||
**isMACAddress(str)** | check if the string is a MAC address.<br/><br/>`options` is an object which defaults to `{no_colons: false}`. If `no_colons` is true, the validator will allow MAC addresses without the colons. Also, it allows the use of hyphens, spaces or dots e.g '01 02 03 04 05 ab', '01-02-03-04-05-ab' or '0102.0304.05ab'.
|
||||
**isMagnetURI(str)** | check if the string is a [magnet uri format](https://en.wikipedia.org/wiki/Magnet_URI_scheme).
|
||||
**isMD5(str)** | check if the string is a MD5 hash.<br/><br/>Please note that you can also use the `isHash(str, 'md5')` function. Keep in mind that MD5 has some collision weaknesses compared to other algorithms (e.g., SHA).
|
||||
**isMimeType(str)** | check if the string matches to a valid [MIME type](https://en.wikipedia.org/wiki/Media_type) format
|
||||
**isMobilePhone(str [, locale [, options]])** | check if the string is a mobile phone number,<br/><br/>(locale is either an array of locales (e.g `['sk-SK', 'sr-RS']`) OR one of `['am-Am', 'ar-AE', 'ar-BH', 'ar-DZ', 'ar-EG', 'ar-IQ', ar-JO', 'ar-KW', 'ar-MA', 'ar-SA', 'ar-SY', 'ar-TN', 'az-AZ', 'az-LY', 'az-LB', 'bs-BA', 'be-BY', 'bg-BG', 'bn-BD', 'ca-AD', 'cs-CZ', 'da-DK', 'de-DE', 'de-AT', 'de-CH', 'de-LU', 'el-GR', 'en-AU', 'en-CA', 'en-GB', 'en-GG', 'en-GH', 'en-HK', 'en-MO', 'en-IE', 'en-IN', 'en-KE', 'en-MT', 'en-MU', 'en-NG', 'en-NZ', 'en-PK', 'en-PH', 'en-RW', 'en-SG', 'en-SL', 'en-UG', 'en-US', 'en-TZ', 'en-ZA', 'en-ZM', 'en-ZW', 'es-AR', 'es-BO', 'es-CL', 'es-CO', 'es-CR', 'es-DO', 'es-HN', 'es-PE', 'es-EC', 'es-ES', 'es-MX', 'es-PA', 'es-PY', 'es-UY', 'et-EE', 'fa-IR', 'fi-FI', 'fj-FJ', 'fo-FO', 'fr-BE', 'fr-CA', 'fr-FR', 'fr-GF', 'fr-GP', 'fr-MQ', 'fr-RE', 'ga-IE', 'he-IL', 'hu-HU', 'id-ID', 'it-IT', 'it-SM', 'ja-JP', 'ka-GE', 'kk-KZ', 'kl-GL', 'ko-KR', 'lt-LT', 'ms-MY', 'nb-NO', 'ne-NP', 'nl-BE', 'nl-NL', 'nn-NO', 'pl-PL', 'pt-BR', 'pt-PT', 'ro-RO', 'ru-RU', 'sl-SI', 'sk-SK', 'sq-AL', 'sr-RS', 'sv-SE', 'th-TH', 'tr-TR', 'uk-UA', 'uz-UZ', 'vi-VN', 'zh-CN', 'zh-HK', 'zh-MO', 'zh-TW']` OR defaults to 'any'. If 'any' or a falsey value is used, function will check if any of the locales match).<br/><br/>`options` is an optional object that can be supplied with the following keys: `strictMode`, if this is set to `true`, the mobile phone number must be supplied with the country code and therefore must start with `+`. Locale list is `validator.isMobilePhoneLocales`.
|
||||
**isMongoId(str)** | check if the string is a valid hex-encoded representation of a [MongoDB ObjectId][mongoid].
|
||||
**isMultibyte(str)** | check if the string contains one or more multibyte chars.
|
||||
**isNumeric(str [, options])** | check if the string contains only numbers.<br/><br/>`options` is an object which defaults to `{no_symbols: false}` it also has locale as an option. If `no_symbols` is true, the validator will reject numeric strings that feature a symbol (e.g. `+`, `-`, or `.`).<br/><br/>`locale` determine the decimal separator and is one of `['ar', 'ar-AE', 'ar-BH', 'ar-DZ', 'ar-EG', 'ar-IQ', 'ar-JO', 'ar-KW', 'ar-LB', 'ar-LY', 'ar-MA', 'ar-QA', 'ar-QM', 'ar-SA', 'ar-SD', 'ar-SY', 'ar-TN', 'ar-YE', 'bg-BG', 'cs-CZ', 'da-DK', 'de-DE', 'en-AU', 'en-GB', 'en-HK', 'en-IN', 'en-NZ', 'en-US', 'en-ZA', 'en-ZM', 'es-ES', 'fr-FR', 'fr-CA', 'hu-HU', 'it-IT', 'nb-NO', 'nl-NL', 'nn-NO', 'pl-PL', 'pt-BR', 'pt-PT', 'ru-RU', 'sl-SI', 'sr-RS', 'sr-RS@latin', 'sv-SE', 'tr-TR', 'uk-UA']`.
|
||||
**isOctal(str)** | check if the string is a valid octal number.
|
||||
**isPassportNumber(str, countryCode)** | check if the string is a valid passport number.<br/><br/>(countryCode is one of `[ 'AM', 'AR', 'AT', 'AU', 'BE', 'BG', 'BY', 'CA', 'CH', 'CN', 'CY', 'CZ', 'DE', 'DK', 'DZ', 'EE', 'ES', 'FI', 'FR', 'GB', 'GR', 'HR', 'HU', 'IE' 'IN', 'IS', 'IT', 'JP', 'KR', 'LT', 'LU', 'LV', 'MT', 'NL', 'PO', 'PT', 'RO', 'RU', 'SE', 'SL', 'SK', 'TR', 'UA', 'US' ]`.
|
||||
**isPort(str)** | check if the string is a valid port number.
|
||||
**isPostalCode(str, locale)** | check if the string is a postal code,<br/><br/>(locale is one of `[ 'AD', 'AT', 'AU', 'AZ', 'BE', 'BG', 'BR', 'BY', 'CA', 'CH', 'CN', 'CZ', 'DE', 'DK', 'DO', 'DZ', 'EE', 'ES', 'FI', 'FR', 'GB', 'GR', 'HR', 'HT', 'HU', 'ID', 'IE' 'IL', 'IN', 'IR', 'IS', 'IT', 'JP', 'KE', 'LI', 'LT', 'LU', 'LV', 'MT', 'MX', 'MY', 'NL', 'NO', 'NP', 'NZ', 'PL', 'PR', 'PT', 'RO', 'RU', 'SA', 'SE', 'SG', 'SI', 'TH', 'TN', 'TW', 'UA', 'US', 'ZA', 'ZM' ]` OR 'any'. If 'any' is used, function will check if any of the locals match. Locale list is `validator.isPostalCodeLocales`.).
|
||||
**isRFC3339(str)** | check if the string is a valid [RFC 3339](https://tools.ietf.org/html/rfc3339) date.
|
||||
**isRgbColor(str [, includePercentValues])** | check if the string is a rgb or rgba color.<br/><br/>`includePercentValues` defaults to `true`. If you don't want to allow to set `rgb` or `rgba` values with percents, like `rgb(5%,5%,5%)`, or `rgba(90%,90%,90%,.3)`, then set it to false.
|
||||
**isSemVer(str)** | check if the string is a Semantic Versioning Specification (SemVer).
|
||||
**isSurrogatePair(str)** | check if the string contains any surrogate pairs chars.
|
||||
**isUppercase(str)** | check if the string is uppercase.
|
||||
**isSlug** | Check if the string is of type slug. `Options` allow a single hyphen between string. e.g. [`cn-cn`, `cn-c-c`]
|
||||
**isStrongPassword(str [, options])** | Check if a password is strong or not. Allows for custom requirements or scoring rules. If `returnScore` is true, then the function returns an integer score for the password rather than a boolean.<br/>Default options: <br/>`{ minLength: 8, minLowercase: 1, minUppercase: 1, minNumbers: 1, minSymbols: 1, returnScore: false, pointsPerUnique: 1, pointsPerRepeat: 0.5, pointsForContainingLower: 10, pointsForContainingUpper: 10, pointsForContainingNumber: 10, pointsForContainingSymbol: 10 }`
|
||||
**isTaxID(str, locale)** | Check if the given value is a valid Tax Identification Number. Default locale is `en-US`.<br/><br/>More info about exact TIN support can be found in `src/lib/isTaxID.js`<br/><br/>Supported locales: `[ 'bg-BG', 'cs-CZ', 'de-AT', 'de-DE', 'dk-DK', 'el-CY', 'el-GR', 'en-GB', 'en-IE', 'en-US', 'es-ES', 'et-EE', 'fi-FI', 'fr-BE', 'fr-FR', 'fr-LU', 'hr-HR', 'hu-HU', 'it-IT', 'lb-LU', 'lt-LT', 'lv-LV' 'mt-MT', 'nl-BE', 'nl-NL', 'pl-PL', 'pt-PT', 'ro-RO', 'sk-SK', 'sl-SI', 'sv-SE' ]`
|
||||
**isURL(str [, options])** | check if the string is an URL.<br/><br/>`options` is an object which defaults to `{ protocols: ['http','https','ftp'], require_tld: true, require_protocol: false, require_host: true, require_valid_protocol: true, allow_underscores: false, host_whitelist: false, host_blacklist: false, allow_trailing_dot: false, allow_protocol_relative_urls: false, disallow_auth: false }`.<br/><br/>require_protocol - if set as true isURL will return false if protocol is not present in the URL.<br/>require_valid_protocol - isURL will check if the URL's protocol is present in the protocols option.<br/>protocols - valid protocols can be modified with this option.<br/>require_host - if set as false isURL will not check if host is present in the URL.<br/>require_port - if set as true isURL will check if port is present in the URL.<br/>allow_protocol_relative_urls - if set as true protocol relative URLs will be allowed.<br/>validate_length - if set as false isURL will skip string length validation (2083 characters is IE max URL length).
|
||||
**isUUID(str [, version])** | check if the string is a UUID (version 3, 4 or 5).
|
||||
**isVariableWidth(str)** | check if the string contains a mixture of full and half-width chars.
|
||||
**isVAT(str, countryCode)** | checks that the string is a [valid VAT number](https://en.wikipedia.org/wiki/VAT_identification_number) if validation is available for the given country code matching [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2). <br/><br/>Available country codes: `[ 'GB' ]`.
|
||||
**isWhitelisted(str, chars)** | checks characters if they appear in the whitelist.
|
||||
**matches(str, pattern [, modifiers])** | check if string matches the pattern.<br/><br/>Either `matches('foo', /foo/i)` or `matches('foo', 'foo', 'i')`.
|
||||
|
||||
## Sanitizers
|
||||
|
||||
Here is a list of the sanitizers currently available.
|
||||
|
||||
Sanitizer | Description
|
||||
-------------------------------------- | -------------------------------
|
||||
**blacklist(input, chars)** | remove characters that appear in the blacklist. The characters are used in a RegExp and so you will need to escape some chars, e.g. `blacklist(input, '\\[\\]')`.
|
||||
**escape(input)** | replace `<`, `>`, `&`, `'`, `"` and `/` with HTML entities.
|
||||
**ltrim(input [, chars])** | trim characters from the left-side of the input.
|
||||
**normalizeEmail(email [, options])** | canonicalizes an email address. (This doesn't validate that the input is an email, if you want to validate the email use isEmail beforehand)<br/><br/>`options` is an object with the following keys and default values:<br/><ul><li>*all_lowercase: true* - Transforms the local part (before the @ symbol) of all email addresses to lowercase. Please note that this may violate RFC 5321, which gives providers the possibility to treat the local part of email addresses in a case sensitive way (although in practice most - yet not all - providers don't). The domain part of the email address is always lowercased, as it's case insensitive per RFC 1035.</li><li>*gmail_lowercase: true* - GMail addresses are known to be case-insensitive, so this switch allows lowercasing them even when *all_lowercase* is set to false. Please note that when *all_lowercase* is true, GMail addresses are lowercased regardless of the value of this setting.</li><li>*gmail_remove_dots: true*: Removes dots from the local part of the email address, as GMail ignores them (e.g. "john.doe" and "johndoe" are considered equal).</li><li>*gmail_remove_subaddress: true*: Normalizes addresses by removing "sub-addresses", which is the part following a "+" sign (e.g. "foo+bar@gmail.com" becomes "foo@gmail.com").</li><li>*gmail_convert_googlemaildotcom: true*: Converts addresses with domain @googlemail.com to @gmail.com, as they're equivalent.</li><li>*outlookdotcom_lowercase: true* - Outlook.com addresses (including Windows Live and Hotmail) are known to be case-insensitive, so this switch allows lowercasing them even when *all_lowercase* is set to false. Please note that when *all_lowercase* is true, Outlook.com addresses are lowercased regardless of the value of this setting.</li><li>*outlookdotcom_remove_subaddress: true*: Normalizes addresses by removing "sub-addresses", which is the part following a "+" sign (e.g. "foo+bar@outlook.com" becomes "foo@outlook.com").</li><li>*yahoo_lowercase: true* - Yahoo Mail addresses are known to be case-insensitive, so this switch allows lowercasing them even when *all_lowercase* is set to false. Please note that when *all_lowercase* is true, Yahoo Mail addresses are lowercased regardless of the value of this setting.</li><li>*yahoo_remove_subaddress: true*: Normalizes addresses by removing "sub-addresses", which is the part following a "-" sign (e.g. "foo-bar@yahoo.com" becomes "foo@yahoo.com").</li><li>*icloud_lowercase: true* - iCloud addresses (including MobileMe) are known to be case-insensitive, so this switch allows lowercasing them even when *all_lowercase* is set to false. Please note that when *all_lowercase* is true, iCloud addresses are lowercased regardless of the value of this setting.</li><li>*icloud_remove_subaddress: true*: Normalizes addresses by removing "sub-addresses", which is the part following a "+" sign (e.g. "foo+bar@icloud.com" becomes "foo@icloud.com").</li></ul>
|
||||
**rtrim(input [, chars])** | trim characters from the right-side of the input.
|
||||
**stripLow(input [, keep_new_lines])** | remove characters with a numerical value < 32 and 127, mostly control characters. If `keep_new_lines` is `true`, newline characters are preserved (`\n` and `\r`, hex `0xA` and `0xD`). Unicode-safe in JavaScript.
|
||||
**toBoolean(input [, strict])** | convert the input string to a boolean. Everything except for `'0'`, `'false'` and `''` returns `true`. In strict mode only `'1'` and `'true'` return `true`.
|
||||
**toDate(input)** | convert the input string to a date, or `null` if the input is not a date.
|
||||
**toFloat(input)** | convert the input string to a float, or `NaN` if the input is not a float.
|
||||
**toInt(input [, radix])** | convert the input string to an integer, or `NaN` if the input is not an integer.
|
||||
**trim(input [, chars])** | trim characters (whitespace by default) from both sides of the input.
|
||||
**unescape(input)** | replaces HTML encoded entities with `<`, `>`, `&`, `'`, `"` and `/`.
|
||||
**whitelist(input, chars)** | remove characters that do not appear in the whitelist. The characters are used in a RegExp and so you will need to escape some chars, e.g. `whitelist(input, '\\[\\]')`.
|
||||
|
||||
### XSS Sanitization
|
||||
|
||||
XSS sanitization was removed from the library in [2d5d6999](https://github.com/chriso/validator.js/commit/2d5d6999541add350fb396ef02dc42ca3215049e).
|
||||
|
||||
For an alternative, have a look at Yahoo's [xss-filters library](https://github.com/yahoo/xss-filters) or at [DOMPurify](https://github.com/cure53/DOMPurify).
|
||||
|
||||
## Contributing
|
||||
|
||||
In general, we follow the "fork-and-pull" Git workflow.
|
||||
|
||||
1. Fork the repo on GitHub
|
||||
2. Clone the project to your own machine
|
||||
3. Work on your fork
|
||||
1. Make your changes and additions
|
||||
- Most of your changes should be focused on `src/` and `test/` folders and/or `README.md`.
|
||||
- Files such as `validator.js`, `validator.min.js` and files in `lib/` folder are autogenerated when running tests (`npm test`) and need not to be changed **manually**.
|
||||
2. Change or add tests if needed
|
||||
3. Run tests and make sure they pass
|
||||
4. Add changes to README.md if needed
|
||||
4. Commit changes to your own branch
|
||||
5. **Make sure** you merge the latest from "upstream" and resolve conflicts if there is any
|
||||
6. Repeat step 3(3) above
|
||||
7. Push your work back up to your fork
|
||||
8. Submit a Pull request so that we can review your changes
|
||||
|
||||
## Tests
|
||||
|
||||
Tests are using mocha, to run the tests use:
|
||||
|
||||
```sh
|
||||
$ npm test
|
||||
```
|
||||
|
||||
## Maintainers
|
||||
|
||||
- [chriso](https://github.com/chriso) - **Chris O'Hara** (author)
|
||||
- [profnandaa](https://github.com/profnandaa) - **Anthony Nandaa**
|
||||
|
||||
## Reading
|
||||
|
||||
Remember, validating can be troublesome sometimes. See [A list of articles about programming assumptions commonly made that aren't true](https://github.com/jameslk/awesome-falsehoods).
|
||||
|
||||
## License (MIT)
|
||||
|
||||
```
|
||||
Copyright (c) 2018 Chris O'Hara <cohara87@gmail.com>
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining
|
||||
a copy of this software and associated documentation files (the
|
||||
"Software"), to deal in the Software without restriction, including
|
||||
without limitation the rights to use, copy, modify, merge, publish,
|
||||
distribute, sublicense, and/or sell copies of the Software, and to
|
||||
permit persons to whom the Software is furnished to do so, subject to
|
||||
the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be
|
||||
included in all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||||
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
||||
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
||||
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||||
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
```
|
||||
|
||||
[downloads-image]: http://img.shields.io/npm/dm/validator.svg
|
||||
|
||||
[npm-url]: https://npmjs.org/package/validator
|
||||
[npm-image]: http://img.shields.io/npm/v/validator.svg
|
||||
|
||||
[travis-url]: https://travis-ci.org/chriso/validator.js
|
||||
[travis-image]: http://img.shields.io/travis/chriso/validator.js.svg
|
||||
|
||||
[amd]: http://requirejs.org/docs/whyamd.html
|
||||
[bower]: http://bower.io/
|
||||
|
||||
[mongoid]: http://docs.mongodb.org/manual/reference/object-id/
|
||||
[ISIN]: https://en.wikipedia.org/wiki/International_Securities_Identification_Number
|
||||
@@ -0,0 +1,43 @@
|
||||
/** PURE_IMPORTS_START tslib,_Subscriber PURE_IMPORTS_END */
|
||||
import * as tslib_1 from "tslib";
|
||||
import { Subscriber } from '../Subscriber';
|
||||
export function filter(predicate, thisArg) {
|
||||
return function filterOperatorFunction(source) {
|
||||
return source.lift(new FilterOperator(predicate, thisArg));
|
||||
};
|
||||
}
|
||||
var FilterOperator = /*@__PURE__*/ (function () {
|
||||
function FilterOperator(predicate, thisArg) {
|
||||
this.predicate = predicate;
|
||||
this.thisArg = thisArg;
|
||||
}
|
||||
FilterOperator.prototype.call = function (subscriber, source) {
|
||||
return source.subscribe(new FilterSubscriber(subscriber, this.predicate, this.thisArg));
|
||||
};
|
||||
return FilterOperator;
|
||||
}());
|
||||
var FilterSubscriber = /*@__PURE__*/ (function (_super) {
|
||||
tslib_1.__extends(FilterSubscriber, _super);
|
||||
function FilterSubscriber(destination, predicate, thisArg) {
|
||||
var _this = _super.call(this, destination) || this;
|
||||
_this.predicate = predicate;
|
||||
_this.thisArg = thisArg;
|
||||
_this.count = 0;
|
||||
return _this;
|
||||
}
|
||||
FilterSubscriber.prototype._next = function (value) {
|
||||
var result;
|
||||
try {
|
||||
result = this.predicate.call(this.thisArg, value, this.count++);
|
||||
}
|
||||
catch (err) {
|
||||
this.destination.error(err);
|
||||
return;
|
||||
}
|
||||
if (result) {
|
||||
this.destination.next(value);
|
||||
}
|
||||
};
|
||||
return FilterSubscriber;
|
||||
}(Subscriber));
|
||||
//# sourceMappingURL=filter.js.map
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"observable.js","sources":["../src/symbol/observable.ts"],"names":[],"mappings":";;;;;AAAA,mDAA8C"}
|
||||
@@ -0,0 +1,51 @@
|
||||
/** PURE_IMPORTS_START tslib,_Subscriber PURE_IMPORTS_END */
|
||||
import * as tslib_1 from "tslib";
|
||||
import { Subscriber } from '../Subscriber';
|
||||
export function every(predicate, thisArg) {
|
||||
return function (source) { return source.lift(new EveryOperator(predicate, thisArg, source)); };
|
||||
}
|
||||
var EveryOperator = /*@__PURE__*/ (function () {
|
||||
function EveryOperator(predicate, thisArg, source) {
|
||||
this.predicate = predicate;
|
||||
this.thisArg = thisArg;
|
||||
this.source = source;
|
||||
}
|
||||
EveryOperator.prototype.call = function (observer, source) {
|
||||
return source.subscribe(new EverySubscriber(observer, this.predicate, this.thisArg, this.source));
|
||||
};
|
||||
return EveryOperator;
|
||||
}());
|
||||
var EverySubscriber = /*@__PURE__*/ (function (_super) {
|
||||
tslib_1.__extends(EverySubscriber, _super);
|
||||
function EverySubscriber(destination, predicate, thisArg, source) {
|
||||
var _this = _super.call(this, destination) || this;
|
||||
_this.predicate = predicate;
|
||||
_this.thisArg = thisArg;
|
||||
_this.source = source;
|
||||
_this.index = 0;
|
||||
_this.thisArg = thisArg || _this;
|
||||
return _this;
|
||||
}
|
||||
EverySubscriber.prototype.notifyComplete = function (everyValueMatch) {
|
||||
this.destination.next(everyValueMatch);
|
||||
this.destination.complete();
|
||||
};
|
||||
EverySubscriber.prototype._next = function (value) {
|
||||
var result = false;
|
||||
try {
|
||||
result = this.predicate.call(this.thisArg, value, this.index++, this.source);
|
||||
}
|
||||
catch (err) {
|
||||
this.destination.error(err);
|
||||
return;
|
||||
}
|
||||
if (!result) {
|
||||
this.notifyComplete(false);
|
||||
}
|
||||
};
|
||||
EverySubscriber.prototype._complete = function () {
|
||||
this.notifyComplete(true);
|
||||
};
|
||||
return EverySubscriber;
|
||||
}(Subscriber));
|
||||
//# sourceMappingURL=every.js.map
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"filter.js","sources":["../../src/internal/operators/filter.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AACA,4C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3C"}
|
||||
@@ -0,0 +1 @@
|
||||
export * from 'rxjs-compat/operators/windowTime';
|
||||
@@ -0,0 +1 @@
|
||||
module.exports={A:{A:{"2":"G A B BC","8":"J E F"},B:{"2":"C K L H M N O","8":"P Q R S T U V W X Y Z a b c d f g","584":"h i j k l m n o p q r s","1025":"D t"},C:{"1":"0 1 2 3 4 5 6 7 8 9 I u J E F G A B C K L H M N O v w x y z AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB uB ZB vB aB bB cB dB eB fB gB hB iB jB kB e lB mB nB oB pB P Q R wB S T U V W X Y Z a b c d f g h i j k l m n o p q r s D t xB yB","129":"CC tB DC EC"},D:{"1":"0","8":"1 2 3 4 5 6 7 8 9 I u J E F G A B C K L H M N O v w x y z AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB uB ZB vB aB bB cB dB eB fB gB hB iB jB kB e lB mB nB oB pB P Q R S T U V W X Y Z a b c d f g","584":"h i j k l m n o p q r s","1025":"D t xB yB FC"},E:{"1":"A B C K L H 0B qB rB 1B LC MC 2B 3B 4B 5B sB 6B 7B 8B NC","260":"I u J E F G GC zB HC IC JC KC"},F:{"2":"G","8":"0 1 2 3 4 5 6 7 8 9 H M N O v w x y z AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB e lB mB nB oB pB P Q R wB","584":"S T U V W X Y Z a b c d","2052":"B C OC PC QC RC qB 9B SC rB"},G:{"1":"F UC VC WC XC YC ZC aC bC cC dC eC fC gC hC iC jC kC lC mC 2B 3B 4B 5B sB 6B 7B 8B","8":"zB TC AC"},H:{"8":"nC"},I:{"8":"tB I oC pC qC rC AC sC tC","1025":"D"},J:{"1":"A","8":"E"},K:{"8":"A B C e qB 9B rB"},L:{"1025":"D"},M:{"1":"D"},N:{"2":"A B"},O:{"8":"uC"},P:{"8":"I vC wC xC yC zC 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AnB,oBAAA,GAAG,CAAA;AACZ,uCAAsC;AAA7B,8BAAA,QAAQ,CAAA;AACjB,+CAA8C;AAArC,sCAAA,YAAY,CAAA;AACrB,+CAA8C;AAArC,sCAAA,YAAY,CAAA;AACrB,qCAAoC;AAA3B,4BAAA,OAAO,CAAA;AAChB,6CAA4C;AAAnC,oCAAA,WAAW,CAAA;AACpB,yCAAwC;AAA/B,gCAAA,SAAS,CAAA;AAClB,qCAAoC;AAA3B,4BAAA,OAAO,CAAA;AAChB,mCAAkC;AAAzB,0BAAA,MAAM,CAAA;AACf,6CAA4C;AAAnC,oCAAA,WAAW,CAAA;AACpB,2CAA0C;AAAjC,kCAAA,UAAU,CAAA;AACnB,+CAA8C;AAArC,sCAAA,YAAY,CAAA;AACrB,2CAA0C;AAAjC,kCAAA,UAAU,CAAA;AACnB,mDAAkD;AAAzC,0CAAA,cAAc,CAAA;AACvB,6BAA4B;AAAnB,oBAAA,GAAG,CAAA;AACZ,mCAAkC;AAAzB,0BAAA,MAAM,CAAA"}
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1 @@
|
||||
module.exports={C:{"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0,"15":0,"16":0,"17":0,"18":0,"19":0,"20":0,"21":0,"22":0,"23":0,"24":0,"25":0,"26":0,"27":0,"28":0,"29":0,"30":0,"31":0,"32":0,"33":0,"34":0,"35":0,"36":0,"37":0,"38":0,"39":0,"40":0,"41":0,"42":0,"43":0,"44":0,"45":0.2503,"46":0,"47":0,"48":0,"49":0,"50":0,"51":0,"52":0.04302,"53":0,"54":0,"55":0,"56":0,"57":0,"58":0,"59":0,"60":0,"61":0,"62":0,"63":0,"64":0,"65":0,"66":0,"67":0,"68":0.00782,"69":0,"70":0,"71":0,"72":0,"73":0,"74":0,"75":0,"76":0,"77":0,"78":0.00782,"79":0,"80":0,"81":0,"82":0,"83":0,"84":0,"85":0,"86":0,"87":0,"88":0.00391,"89":0,"90":0.01564,"91":0,"92":0,"93":0,"94":0,"95":0,"96":0,"97":0.00782,"98":0,"99":0.01564,"100":0,"101":0,"102":0.00782,"103":0.00391,"104":0.00391,"105":0.00782,"106":0.01564,"107":0.01956,"108":0.66878,"109":0.40283,"110":0.00391,"111":0,"3.5":0,"3.6":0},D:{"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0,"15":0,"16":0,"17":0,"18":0,"19":0,"20":0,"21":0,"22":0,"23":0,"24":0,"25":0,"26":0.00391,"27":0,"28":0,"29":0,"30":0.01173,"31":0,"32":0,"33":0,"34":0,"35":0,"36":0,"37":0,"38":0.00391,"39":0,"40":0.00391,"41":0,"42":0,"43":0.00391,"44":0,"45":0,"46":0,"47":0.00391,"48":0,"49":0.04693,"50":0,"51":0,"52":0,"53":0.01173,"54":0,"55":0.00391,"56":0,"57":0,"58":0,"59":0.00391,"60":0,"61":0,"62":0,"63":0.00391,"64":0,"65":0.00782,"66":0,"67":0,"68":0.00782,"69":0,"70":0.00782,"71":0.00391,"72":0,"73":0.00391,"74":0.00391,"75":0,"76":0.00782,"77":0.00391,"78":0.00391,"79":0.15253,"80":0.00391,"81":0.00782,"83":0.01173,"84":0.02347,"85":0.01173,"86":0.00782,"87":0.01956,"88":0.00782,"89":0.02347,"90":0.00782,"91":0.02347,"92":0.01956,"93":0.00782,"94":0.01564,"95":0.00782,"96":0.00782,"97":0.01173,"98":0.02347,"99":0.01564,"100":0.00782,"101":0.00782,"102":0.02738,"103":0.04302,"104":0.0352,"105":0.05084,"106":0.04302,"107":0.12124,"108":5.15079,"109":5.1547,"110":0.00391,"111":0,"112":0},F:{"9":0,"11":0,"12":0,"15":0,"16":0,"17":0,"18":0,"19":0,"20":0,"21":0,"22":0,"23":0,"24":0,"25":0,"26":0,"27":0,"28":0.0352,"29":0,"30":0,"31":0,"32":0,"33":0,"34":0,"35":0,"36":0.00391,"37":0,"38":0,"39":0,"40":0.00391,"41":0,"42":0,"43":0,"44":0,"45":0,"46":0.01564,"47":0,"48":0,"49":0,"50":0,"51":0,"52":0,"53":0,"54":0,"55":0,"56":0,"57":0,"58":0,"60":0,"62":0,"63":0,"64":0,"65":0,"66":0,"67":0,"68":0,"69":0,"70":0,"71":0,"72":0,"73":0.00391,"74":0,"75":0,"76":0,"77":0,"78":0,"79":0,"80":0,"81":0,"82":0,"83":0,"84":0,"85":0.00782,"86":0.00391,"87":0,"88":0,"89":0,"90":0,"91":0,"92":0,"93":0.26986,"94":0.41848,"9.5-9.6":0,"10.0-10.1":0,"10.5":0,"10.6":0,"11.1":0,"11.5":0,"11.6":0,"12.1":0},B:{"12":0,"13":0,"14":0,"15":0.00391,"16":0,"17":0,"18":0.00391,"79":0,"80":0,"81":0,"83":0,"84":0,"85":0.00782,"86":0,"87":0,"88":0,"89":0,"90":0,"91":0,"92":0.00782,"93":0,"94":0,"95":0,"96":0,"97":0,"98":0,"99":0,"100":0,"101":0,"102":0,"103":0.00391,"104":0,"105":0,"106":0.00391,"107":0.01173,"108":0.48105,"109":0.48105},E:{"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0.00782,"14":0.00782,"15":0,_:"0","3.1":0,"3.2":0,"5.1":0,"6.1":0,"7.1":0,"9.1":0,"10.1":0,"11.1":0,"12.1":0.00391,"13.1":0.01173,"14.1":0.02738,"15.1":0.00782,"15.2-15.3":0.00391,"15.4":0.01173,"15.5":0.01564,"15.6":0.08604,"16.0":0.00782,"16.1":0.03129,"16.2":0.06649,"16.3":0.00391},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0,"5.0-5.1":0.00317,"6.0-6.1":0.00317,"7.0-7.1":0.01162,"8.1-8.4":0.00211,"9.0-9.2":0,"9.3":0.14689,"10.0-10.2":0.00317,"10.3":0.093,"11.0-11.2":0.00211,"11.3-11.4":0.00423,"12.0-12.1":0.00423,"12.2-12.5":0.26314,"13.0-13.1":0.00317,"13.2":0.00106,"13.3":0.00951,"13.4-13.7":0.0465,"14.0-14.4":0.09405,"14.5-14.8":0.40792,"15.0-15.1":0.07186,"15.2-15.3":0.11625,"15.4":0.1004,"15.5":0.29062,"15.6":1.27343,"16.0":1.36749,"16.1":3.33841,"16.2":1.96246,"16.3":0.18494},P:{"4":0.55261,"5.0-5.4":0.01023,"6.2-6.4":0,"7.2-7.4":0.07163,"8.2":0,"9.2":0.01023,"10.1":0,"11.1-11.2":0.07163,"12.0":0.01023,"13.0":0.05117,"14.0":0.05117,"15.0":0.02047,"16.0":0.05117,"17.0":0.0614,"18.0":0.13304,"19.0":3.29519},I:{"0":0,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0.02348,"4.2-4.3":0.02348,"4.4":0,"4.4.3-4.4.4":0.16042},K:{_:"0 10 11 12 11.1 11.5 12.1"},A:{"6":0,"7":0,"8":0.00391,"9":0,"10":0,"11":0.01564,"5.5":0},J:{"7":0,"10":0},N:{"10":0,"11":0},R:{_:"0"},M:{"0":0.40796},Q:{"13.1":0},O:{"0":0.01218},H:{"0":0.23635},L:{"0":68.06688},S:{"2.5":0}};
|
||||
@@ -0,0 +1 @@
|
||||
import 'rxjs-compat/add/operator/audit';
|
||||
@@ -0,0 +1,30 @@
|
||||
/** PURE_IMPORTS_START _map PURE_IMPORTS_END */
|
||||
import { map } from './map';
|
||||
export function pluck() {
|
||||
var properties = [];
|
||||
for (var _i = 0; _i < arguments.length; _i++) {
|
||||
properties[_i] = arguments[_i];
|
||||
}
|
||||
var length = properties.length;
|
||||
if (length === 0) {
|
||||
throw new Error('list of properties cannot be empty.');
|
||||
}
|
||||
return function (source) { return map(plucker(properties, length))(source); };
|
||||
}
|
||||
function plucker(props, length) {
|
||||
var mapper = function (x) {
|
||||
var currentProp = x;
|
||||
for (var i = 0; i < length; i++) {
|
||||
var p = currentProp != null ? currentProp[props[i]] : undefined;
|
||||
if (p !== void 0) {
|
||||
currentProp = p;
|
||||
}
|
||||
else {
|
||||
return undefined;
|
||||
}
|
||||
}
|
||||
return currentProp;
|
||||
};
|
||||
return mapper;
|
||||
}
|
||||
//# sourceMappingURL=pluck.js.map
|
||||
@@ -0,0 +1 @@
|
||||
export * from 'rxjs-compat/operators/debounceTime';
|
||||
@@ -0,0 +1,46 @@
|
||||
"use strict";
|
||||
var __extends = (this && this.__extends) || (function () {
|
||||
var extendStatics = function (d, b) {
|
||||
extendStatics = Object.setPrototypeOf ||
|
||||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
||||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
||||
return extendStatics(d, b);
|
||||
}
|
||||
return function (d, b) {
|
||||
extendStatics(d, b);
|
||||
function __() { this.constructor = d; }
|
||||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
||||
};
|
||||
})();
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
var AsyncScheduler_1 = require("./AsyncScheduler");
|
||||
var AsapScheduler = (function (_super) {
|
||||
__extends(AsapScheduler, _super);
|
||||
function AsapScheduler() {
|
||||
return _super !== null && _super.apply(this, arguments) || this;
|
||||
}
|
||||
AsapScheduler.prototype.flush = function (action) {
|
||||
this.active = true;
|
||||
this.scheduled = undefined;
|
||||
var actions = this.actions;
|
||||
var error;
|
||||
var index = -1;
|
||||
var count = actions.length;
|
||||
action = action || actions.shift();
|
||||
do {
|
||||
if (error = action.execute(action.state, action.delay)) {
|
||||
break;
|
||||
}
|
||||
} while (++index < count && (action = actions.shift()));
|
||||
this.active = false;
|
||||
if (error) {
|
||||
while (++index < count && (action = actions.shift())) {
|
||||
action.unsubscribe();
|
||||
}
|
||||
throw error;
|
||||
}
|
||||
};
|
||||
return AsapScheduler;
|
||||
}(AsyncScheduler_1.AsyncScheduler));
|
||||
exports.AsapScheduler = AsapScheduler;
|
||||
//# sourceMappingURL=AsapScheduler.js.map
|
||||
@@ -0,0 +1,4 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
require("rxjs-compat/add/observable/pairs");
|
||||
//# sourceMappingURL=pairs.js.map
|
||||
Reference in New Issue
Block a user