@comparaonline/ui-form-errors
Advanced tools
Comparing version 2.16.2-alpha.2 to 2.17.4
@@ -1,149 +0,2 @@ | ||
module.exports = | ||
/******/ (function(modules) { // webpackBootstrap | ||
/******/ // The module cache | ||
/******/ var installedModules = {}; | ||
/******/ | ||
/******/ // The require function | ||
/******/ function __webpack_require__(moduleId) { | ||
/******/ | ||
/******/ // Check if module is in cache | ||
/******/ if(installedModules[moduleId]) { | ||
/******/ return installedModules[moduleId].exports; | ||
/******/ } | ||
/******/ // Create a new module (and put it into the cache) | ||
/******/ var module = installedModules[moduleId] = { | ||
/******/ i: moduleId, | ||
/******/ l: false, | ||
/******/ exports: {} | ||
/******/ }; | ||
/******/ | ||
/******/ // Execute the module function | ||
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); | ||
/******/ | ||
/******/ // Flag the module as loaded | ||
/******/ module.l = true; | ||
/******/ | ||
/******/ // Return the exports of the module | ||
/******/ return module.exports; | ||
/******/ } | ||
/******/ | ||
/******/ | ||
/******/ // expose the modules object (__webpack_modules__) | ||
/******/ __webpack_require__.m = modules; | ||
/******/ | ||
/******/ // expose the module cache | ||
/******/ __webpack_require__.c = installedModules; | ||
/******/ | ||
/******/ // define getter function for harmony exports | ||
/******/ __webpack_require__.d = function(exports, name, getter) { | ||
/******/ if(!__webpack_require__.o(exports, name)) { | ||
/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter }); | ||
/******/ } | ||
/******/ }; | ||
/******/ | ||
/******/ // define __esModule on exports | ||
/******/ __webpack_require__.r = function(exports) { | ||
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { | ||
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); | ||
/******/ } | ||
/******/ Object.defineProperty(exports, '__esModule', { value: true }); | ||
/******/ }; | ||
/******/ | ||
/******/ // create a fake namespace object | ||
/******/ // mode & 1: value is a module id, require it | ||
/******/ // mode & 2: merge all properties of value into the ns | ||
/******/ // mode & 4: return value when already ns object | ||
/******/ // mode & 8|1: behave like require | ||
/******/ __webpack_require__.t = function(value, mode) { | ||
/******/ if(mode & 1) value = __webpack_require__(value); | ||
/******/ if(mode & 8) return value; | ||
/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value; | ||
/******/ var ns = Object.create(null); | ||
/******/ __webpack_require__.r(ns); | ||
/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); | ||
/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key)); | ||
/******/ return ns; | ||
/******/ }; | ||
/******/ | ||
/******/ // getDefaultExport function for compatibility with non-harmony modules | ||
/******/ __webpack_require__.n = function(module) { | ||
/******/ var getter = module && module.__esModule ? | ||
/******/ function getDefault() { return module['default']; } : | ||
/******/ function getModuleExports() { return module; }; | ||
/******/ __webpack_require__.d(getter, 'a', getter); | ||
/******/ return getter; | ||
/******/ }; | ||
/******/ | ||
/******/ // Object.prototype.hasOwnProperty.call | ||
/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; | ||
/******/ | ||
/******/ // __webpack_public_path__ | ||
/******/ __webpack_require__.p = ""; | ||
/******/ | ||
/******/ | ||
/******/ // Load entry module and return exports | ||
/******/ return __webpack_require__(__webpack_require__.s = 0); | ||
/******/ }) | ||
/************************************************************************/ | ||
/******/ ([ | ||
/* 0 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var ErrorMessages_1 = __webpack_require__(1); | ||
Object.defineProperty(exports, "ErrorMessagesConsumer", { enumerable: true, get: function () { return ErrorMessages_1.ErrorMessagesConsumer; } }); | ||
Object.defineProperty(exports, "ErrorMessagesProvider", { enumerable: true, get: function () { return ErrorMessages_1.ErrorMessagesProvider; } }); | ||
var replacer_1 = __webpack_require__(3); | ||
Object.defineProperty(exports, "replacer", { enumerable: true, get: function () { return replacer_1.replacer; } }); | ||
/***/ }), | ||
/* 1 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.ErrorMessagesConsumer = exports.ErrorMessagesProvider = void 0; | ||
var react_1 = __webpack_require__(2); | ||
var _a = react_1.createContext({ | ||
errorMessages: {} | ||
}), ErrorMessagesProvider = _a.Provider, ErrorMessagesConsumer = _a.Consumer; | ||
exports.ErrorMessagesProvider = ErrorMessagesProvider; | ||
exports.ErrorMessagesConsumer = ErrorMessagesConsumer; | ||
/***/ }), | ||
/* 2 */ | ||
/***/ (function(module, exports) { | ||
module.exports = require("react"); | ||
/***/ }), | ||
/* 3 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.replacer = void 0; | ||
var toBeReplaced = function (word) { return ({ | ||
word: word, | ||
regexp: new RegExp("{{" + word + "}}", 'gm') | ||
}); }; | ||
var replacerReducer = function (params) { return function (accum, curr) { | ||
return accum.replace(curr.regexp, params[curr.word]); | ||
}; }; | ||
exports.replacer = function (text, params) { | ||
if (text === void 0) { text = ''; } | ||
return Object.keys(params) | ||
.map(toBeReplaced) | ||
.reduce(replacerReducer(params), text); | ||
}; | ||
/***/ }) | ||
/******/ ]); | ||
module.exports=function(e){var r={};function t(n){if(r[n])return r[n].exports;var o=r[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,t),o.l=!0,o.exports}return t.m=e,t.c=r,t.d=function(e,r,n){t.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:n})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,r){if(1&r&&(e=t(e)),8&r)return e;if(4&r&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(t.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var o in e)t.d(n,o,function(r){return e[r]}.bind(null,o));return n},t.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(r,"a",r),r},t.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},t.p="",t(t.s=0)}([function(e,r,t){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=t(1);Object.defineProperty(r,"ErrorMessagesConsumer",{enumerable:!0,get:function(){return n.ErrorMessagesConsumer}}),Object.defineProperty(r,"ErrorMessagesProvider",{enumerable:!0,get:function(){return n.ErrorMessagesProvider}});var o=t(3);Object.defineProperty(r,"replacer",{enumerable:!0,get:function(){return o.replacer}})},function(e,r,t){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.ErrorMessagesConsumer=r.ErrorMessagesProvider=void 0;var n=t(2).createContext({errorMessages:{}}),o=n.Provider,u=n.Consumer;r.ErrorMessagesProvider=o,r.ErrorMessagesConsumer=u},function(e,r){e.exports=require("react")},function(e,r,t){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.replacer=void 0;var n=function(e){return{word:e,regexp:new RegExp("{{"+e+"}}","gm")}};r.replacer=function(e,r){return void 0===e&&(e=""),Object.keys(r).map(n).reduce(function(e){return function(r,t){return r.replace(t.regexp,e[t.word])}}(r),e)}}]); | ||
//# sourceMappingURL=ui-form-errors.js.map |
{ | ||
"name": "@comparaonline/ui-form-errors", | ||
"author": "ComparaOnline.com", | ||
"version": "2.16.2-alpha.2", | ||
"version": "2.17.4", | ||
"main": "dist/ui-form-errors.js", | ||
@@ -20,3 +20,3 @@ "types": "dist/index.d.ts", | ||
"@comparaonline/ui-config-jest-ts": "^0.27.0", | ||
"@comparaonline/ui-forms-config": "^2.16.2-alpha.2", | ||
"@comparaonline/ui-forms-config": "^2.17.4", | ||
"@comparaonline/ui-tsconfig": "^0.27.0", | ||
@@ -36,3 +36,3 @@ "@types/enzyme": "^3.1.14", | ||
"@types/react": "^16.8.0", | ||
"tslib": "^1.10.0" | ||
"tslib": "^2.0.0" | ||
}, | ||
@@ -43,3 +43,3 @@ "peerDependencies": { | ||
}, | ||
"gitHead": "8ad668b1a76789df1e479b26e4e2be5508007e5f" | ||
"gitHead": "e295f83be61afff1f758350d49f6575acc7b388d" | ||
} |
Sorry, the diff of this file is not supported yet
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
0
11316
31
+ Addedtslib@2.8.1(transitive)
- Removedtslib@1.14.1(transitive)
Updatedtslib@^2.0.0