Latest updates from IceHrmPro
This commit is contained in:
83
web/node_modules/warning/CHANGELOG.md
generated
vendored
Normal file
83
web/node_modules/warning/CHANGELOG.md
generated
vendored
Normal file
@@ -0,0 +1,83 @@
|
||||
<a name="4.0.3"></a>
|
||||
## [4.0.3](https://github.com/BerkeleyTrue/warning/compare/v4.0.2...v4.0.3) (2019-02-09)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* incorrect formatting of message with arguments ([b188176](https://github.com/BerkeleyTrue/warning/commit/b188176))
|
||||
|
||||
|
||||
|
||||
<a name="4.0.2"></a>
|
||||
## [4.0.2](https://github.com/BerkeleyTrue/warning/compare/v4.0.1...v4.0.2) (2018-08-17)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* **use jest instead of tap:** tap is a PITA to debug ([c4c026b](https://github.com/BerkeleyTrue/warning/commit/c4c026b))
|
||||
* remove [@provides](https://github.com/provides)Module annotation ([1d808f1](https://github.com/BerkeleyTrue/warning/commit/1d808f1))
|
||||
|
||||
|
||||
|
||||
# Change Log
|
||||
|
||||
All notable changes to this project will be documented in this file.
|
||||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||
|
||||
<a name="4.0.1"></a>
|
||||
## [4.0.1](https://github.com/BerkeleyTrue/warning/compare/v4.0.0...v4.0.1) (2018-05-30)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* add `var printWarning =` to comply with ES5 strict mode ([677dcfa](https://github.com/BerkeleyTrue/warning/commit/677dcfa)), closes [#25](https://github.com/BerkeleyTrue/warning/issues/25)
|
||||
|
||||
<a name="4.0.0"></a>
|
||||
## [4.0.0](https://github.com/BerkeleyTrue/warning/compare/v3.0.0...v4.0.0) (2018-05-22)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* Remove "browser" version ([521f5f5](https://github.com/BerkeleyTrue/warning/commit/521f5f5)), closes [#18](https://github.com/BerkeleyTrue/warning/issues/18) [/github.com/facebook/fbjs/pull/86#issuecomment-285204734](https://github.com//github.com/facebook/fbjs/pull/86/issues/issuecomment-285204734)
|
||||
* Update warning to use the latest version from facebook/fbjs ([0572ddd](https://github.com/BerkeleyTrue/warning/commit/0572ddd))
|
||||
|
||||
|
||||
### Chores
|
||||
|
||||
* **LICENSE:** Change from BSD modified to MIT ([5a63a1b](https://github.com/BerkeleyTrue/warning/commit/5a63a1b))
|
||||
|
||||
|
||||
### BREAKING CHANGES
|
||||
|
||||
* **LICENSE:** Change License to MIT from BSD+patents
|
||||
* This changes the internal workings. A major release is
|
||||
made to ensure minimal effect on downstream users.
|
||||
|
||||
|
||||
<a name="3.0.0"></a>
|
||||
## [3.0.0](https://github.com/BerkeleyTrue/warning/compare/v2.1.0...v3.0.0) (2015-10-04)
|
||||
|
||||
### BREAKING CHANGE
|
||||
|
||||
* **package.json** correct license field ([6bd7ad5](https://github.com/BerkeleyTrue/warning/commit/6bd7ad5))
|
||||
|
||||
<a name="2.1.0"></a>
|
||||
## [2.1.0](https://github.com/BerkeleyTrue/warning/compare/v2.0.0...v2.1.0) (2015-10-04)
|
||||
|
||||
### Features
|
||||
|
||||
* switch to loose-envify ([dacc2da](https://github.com/BerkeleyTrue/warning/commit/dacc2da))
|
||||
|
||||
<a name="2.0.0"></a>
|
||||
## [2.0.0](https://github.com/BerkeleyTrue/warning/compare/v1.0.2...v2.0.0) (2015-07-11)
|
||||
|
||||
### BREAKING CHANGE
|
||||
|
||||
* add browser(ify) friendly version ([1a33d40fa1](https://github.com/BerkeleyTrue/warning/commit/1a33d40fa1))
|
||||
|
||||
<a name="1.0.2"></a>
|
||||
## [1.0.2](https://github.com/BerkeleyTrue/warning/compare/v1.0.1...v1.0.2) (2015-05-30)
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* return args in replace ([2ac6962](https://github.com/BerkeleyTrue/warning/commit/2ac6962263))
|
||||
21
web/node_modules/warning/LICENSE.md
generated
vendored
Normal file
21
web/node_modules/warning/LICENSE.md
generated
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) 2013-present, Facebook, Inc.
|
||||
|
||||
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.
|
||||
69
web/node_modules/warning/README.md
generated
vendored
Normal file
69
web/node_modules/warning/README.md
generated
vendored
Normal file
@@ -0,0 +1,69 @@
|
||||
# Warning [](https://badge.fury.io/js/warning)
|
||||
|
||||
[](https://greenkeeper.io/)
|
||||
A mirror of Facebook's [Warning](https://github.com/facebook/fbjs/blob/master/packages/fbjs/src/__forks__/warning.js)
|
||||
|
||||
|
||||
## Usage
|
||||
```
|
||||
npm install warning
|
||||
```
|
||||
|
||||
```
|
||||
// some script
|
||||
var warning = require('warning');
|
||||
|
||||
var ShouldBeTrue = false;
|
||||
|
||||
warning(
|
||||
ShouldBeTrue,
|
||||
'This thing should be true but you set to false. No soup for you!'
|
||||
);
|
||||
// 'This thing should be true but you set to false. No soup for you!'
|
||||
```
|
||||
|
||||
Similar to Facebook's (FB) invariant but only logs a warning if the condition is not met.
|
||||
This can be used to log issues in development environments in critical
|
||||
paths. Removing the logging code for production environments will keep the
|
||||
same logic and follow the same code paths.
|
||||
|
||||
## FAQ (READ before opening an issue)
|
||||
|
||||
> Why do you use `console.error` instead of `console.warn` ?
|
||||
|
||||
This is a mirror of Facebook's (FB) [warning](https://github.com/facebook/fbjs/blob/master/packages/fbjs/src/__forks__/warning.js) module used within React's source code (and other FB software).
|
||||
As such this module will mirror their code as much as possible.
|
||||
|
||||
The descision to use `error` over `warn` was made a long time ago by the FB team and isn't going to change anytime soon.
|
||||
|
||||
The source can be found here: https://github.com/facebook/fbjs/blob/master/packages/fbjs/src/__forks__/warning.js
|
||||
The reasoning can be found here and elsewhere: https://github.com/facebook/fbjs/pull/94#issuecomment-168332326
|
||||
|
||||
> Can I add X feature?
|
||||
|
||||
This is a mirror of Facebook's (FB) [warning](https://github.com/facebook/fbjs/blob/master/packages/fbjs/src/__forks__/warning.js) and as such the source and signature will mirror that module.
|
||||
|
||||
If you believe a feature is missing than please open a feature request [there](https://github.com/facebook/fbjs).
|
||||
If it is approved and merged in that this module will be updated to reflect that change, otherwise this module will not change.
|
||||
|
||||
## Use in Production
|
||||
|
||||
It is recommended to add [babel-plugin-dev-expression](https://github.com/4Catalyzer/babel-plugin-dev-expression) with this module to remove warning messages in production.
|
||||
<br>
|
||||
<br>
|
||||
<br>
|
||||
<br>
|
||||
<br>
|
||||
<br>
|
||||
<br>
|
||||
<br>
|
||||
<br>
|
||||
<br>
|
||||
<br>
|
||||
<br>
|
||||
<br>
|
||||
<br>
|
||||
<br>
|
||||
<br>
|
||||
<br>
|
||||
<small>Don't Forget To Be Awesome</small>
|
||||
89
web/node_modules/warning/package.json
generated
vendored
Normal file
89
web/node_modules/warning/package.json
generated
vendored
Normal file
@@ -0,0 +1,89 @@
|
||||
{
|
||||
"_from": "warning@~4.0.3",
|
||||
"_id": "warning@4.0.3",
|
||||
"_inBundle": false,
|
||||
"_integrity": "sha512-rpJyN222KWIvHJ/F53XSZv0Zl/accqHR8et1kpaMTD/fLCRxtV8iX8czMzY7sVZupTI3zcUTg8eycS2kNF9l6w==",
|
||||
"_location": "/warning",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"type": "range",
|
||||
"registry": true,
|
||||
"raw": "warning@~4.0.3",
|
||||
"name": "warning",
|
||||
"escapedName": "warning",
|
||||
"rawSpec": "~4.0.3",
|
||||
"saveSpec": null,
|
||||
"fetchSpec": "~4.0.3"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"/antd",
|
||||
"/rc-cascader",
|
||||
"/rc-field-form",
|
||||
"/rc-select",
|
||||
"/rc-slider",
|
||||
"/rc-tabs"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/warning/-/warning-4.0.3.tgz",
|
||||
"_shasum": "16e9e077eb8a86d6af7d64aa1e05fd85b4678ca3",
|
||||
"_spec": "warning@~4.0.3",
|
||||
"_where": "/Users/thilina/TestProjects/icehrm-pro/web/node_modules/antd",
|
||||
"author": {
|
||||
"name": "Berkeley Martinez",
|
||||
"email": "berkeley@berkeleytrue.com",
|
||||
"url": "http://www.berkeleytrue.com"
|
||||
},
|
||||
"browserify": {
|
||||
"transform": [
|
||||
"loose-envify"
|
||||
]
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/BerkeleyTrue/warning/issues"
|
||||
},
|
||||
"bundleDependencies": false,
|
||||
"config": {
|
||||
"commitizen": {
|
||||
"path": "cz-conventional-changelog"
|
||||
}
|
||||
},
|
||||
"dependencies": {
|
||||
"loose-envify": "^1.0.0"
|
||||
},
|
||||
"deprecated": false,
|
||||
"description": "A mirror of Facebook's Warning",
|
||||
"devDependencies": {
|
||||
"@commitlint/cli": "^6.2.0",
|
||||
"@commitlint/config-conventional": "^6.1.3",
|
||||
"browserify": "^16.2.2",
|
||||
"commitizen": "^2.10.1",
|
||||
"cz-conventional-changelog": "^2.1.0",
|
||||
"husky": "^0.14.3",
|
||||
"jest": "^23.1.0",
|
||||
"uglify-js": "^3.3.25"
|
||||
},
|
||||
"files": [
|
||||
"warning.js"
|
||||
],
|
||||
"homepage": "https://github.com/BerkeleyTrue/warning",
|
||||
"keywords": [
|
||||
"warning",
|
||||
"facebook",
|
||||
"react",
|
||||
"invariant"
|
||||
],
|
||||
"license": "MIT",
|
||||
"main": "warning.js",
|
||||
"name": "warning",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/BerkeleyTrue/warning.git"
|
||||
},
|
||||
"scripts": {
|
||||
"commit": "git cz",
|
||||
"commitmsg": "commitlint -e $GIT_PARAMS",
|
||||
"test": "npm run test:dev && npm run test:prod",
|
||||
"test:dev": "NODE_ENV=development jest",
|
||||
"test:prod": "NODE_ENV=production jest"
|
||||
},
|
||||
"version": "4.0.3"
|
||||
}
|
||||
62
web/node_modules/warning/warning.js
generated
vendored
Normal file
62
web/node_modules/warning/warning.js
generated
vendored
Normal file
@@ -0,0 +1,62 @@
|
||||
/**
|
||||
* Copyright (c) 2014-present, Facebook, Inc.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/
|
||||
|
||||
'use strict';
|
||||
|
||||
/**
|
||||
* Similar to invariant but only logs a warning if the condition is not met.
|
||||
* This can be used to log issues in development environments in critical
|
||||
* paths. Removing the logging code for production environments will keep the
|
||||
* same logic and follow the same code paths.
|
||||
*/
|
||||
|
||||
var __DEV__ = process.env.NODE_ENV !== 'production';
|
||||
|
||||
var warning = function() {};
|
||||
|
||||
if (__DEV__) {
|
||||
var printWarning = function printWarning(format, args) {
|
||||
var len = arguments.length;
|
||||
args = new Array(len > 1 ? len - 1 : 0);
|
||||
for (var key = 1; key < len; key++) {
|
||||
args[key - 1] = arguments[key];
|
||||
}
|
||||
var argIndex = 0;
|
||||
var message = 'Warning: ' +
|
||||
format.replace(/%s/g, function() {
|
||||
return args[argIndex++];
|
||||
});
|
||||
if (typeof console !== 'undefined') {
|
||||
console.error(message);
|
||||
}
|
||||
try {
|
||||
// --- Welcome to debugging React ---
|
||||
// This error was thrown as a convenience so that you can use this stack
|
||||
// to find the callsite that caused this warning to fire.
|
||||
throw new Error(message);
|
||||
} catch (x) {}
|
||||
}
|
||||
|
||||
warning = function(condition, format, args) {
|
||||
var len = arguments.length;
|
||||
args = new Array(len > 2 ? len - 2 : 0);
|
||||
for (var key = 2; key < len; key++) {
|
||||
args[key - 2] = arguments[key];
|
||||
}
|
||||
if (format === undefined) {
|
||||
throw new Error(
|
||||
'`warning(condition, format, ...args)` requires a warning ' +
|
||||
'message argument'
|
||||
);
|
||||
}
|
||||
if (!condition) {
|
||||
printWarning.apply(null, [format].concat(args));
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
module.exports = warning;
|
||||
Reference in New Issue
Block a user