Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

bahmniapps-commons

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bahmniapps-commons - npm Package Compare versions

Comparing version 0.0.1-beta.2 to 0.0.1-beta.3

dist/4c3715497ed9517e0e3a9c81552c509b.png

4

dist/authentication.js

@@ -76,3 +76,3 @@ (function webpackUniversalModuleDefinition(root, factory) {

/******/ // Load entry module and return exports
/******/ return __webpack_require__(__webpack_require__.s = 147);
/******/ return __webpack_require__(__webpack_require__.s = 158);
/******/ })

@@ -321,3 +321,3 @@ /************************************************************************/

/***/ 147:
/***/ 158:
/***/ (function(module, exports, __webpack_require__) {

@@ -324,0 +324,0 @@

@@ -76,3 +76,3 @@ (function webpackUniversalModuleDefinition(root, factory) {

/******/ // Load entry module and return exports
/******/ return __webpack_require__(__webpack_require__.s = 148);
/******/ return __webpack_require__(__webpack_require__.s = 159);
/******/ })

@@ -82,3 +82,3 @@ /************************************************************************/

/***/ 148:
/***/ 159:
/***/ (function(module, exports, __webpack_require__) {

@@ -85,0 +85,0 @@

@@ -76,3 +76,3 @@ (function webpackUniversalModuleDefinition(root, factory) {

/******/ // Load entry module and return exports
/******/ return __webpack_require__(__webpack_require__.s = 150);
/******/ return __webpack_require__(__webpack_require__.s = 161);
/******/ })

@@ -82,3 +82,3 @@ /************************************************************************/

/***/ 150:
/***/ 161:
/***/ (function(module, exports, __webpack_require__) {

@@ -85,0 +85,0 @@

@@ -76,3 +76,3 @@ (function webpackUniversalModuleDefinition(root, factory) {

/******/ // Load entry module and return exports
/******/ return __webpack_require__(__webpack_require__.s = 152);
/******/ return __webpack_require__(__webpack_require__.s = 163);
/******/ })

@@ -108,3 +108,3 @@ /************************************************************************/

/***/ 152:
/***/ 163:
/***/ (function(module, exports, __webpack_require__) {

@@ -111,0 +111,0 @@

@@ -76,3 +76,3 @@ (function webpackUniversalModuleDefinition(root, factory) {

/******/ // Load entry module and return exports
/******/ return __webpack_require__(__webpack_require__.s = 153);
/******/ return __webpack_require__(__webpack_require__.s = 165);
/******/ })

@@ -82,3 +82,3 @@ /************************************************************************/

/***/ 153:
/***/ 165:
/***/ (function(module, exports, __webpack_require__) {

@@ -88,15 +88,15 @@

__webpack_require__(68);
__webpack_require__(69);
__webpack_require__(70);
__webpack_require__(71);
__webpack_require__(72);
__webpack_require__(73);
__webpack_require__(74);
__webpack_require__(75);
__webpack_require__(76);
__webpack_require__(77);
__webpack_require__(78);
__webpack_require__(79);
__webpack_require__(80);
__webpack_require__(81);
__webpack_require__(82);
__webpack_require__(83);
__webpack_require__(84);
/***/ }),
/***/ 166:
/***/ 178:
/***/ (function(module, exports) {

@@ -108,3 +108,3 @@

/***/ 68:
/***/ 76:
/***/ (function(module, exports, __webpack_require__) {

@@ -127,3 +127,3 @@

/***/ 69:
/***/ 77:
/***/ (function(module, exports, __webpack_require__) {

@@ -150,3 +150,3 @@

restrict: 'E',
template: __webpack_require__(166),
template: __webpack_require__(178),
link: link,

@@ -164,3 +164,3 @@ required: 'patient',

/***/ 70:
/***/ 78:
/***/ (function(module, exports, __webpack_require__) {

@@ -185,3 +185,3 @@

/***/ 71:
/***/ 79:
/***/ (function(module, exports, __webpack_require__) {

@@ -216,3 +216,3 @@

/***/ 72:
/***/ 80:
/***/ (function(module, exports, __webpack_require__) {

@@ -234,3 +234,3 @@

/***/ 73:
/***/ 81:
/***/ (function(module, exports, __webpack_require__) {

@@ -252,3 +252,3 @@

/***/ 74:
/***/ 82:
/***/ (function(module, exports, __webpack_require__) {

@@ -290,3 +290,3 @@

/***/ 75:
/***/ 83:
/***/ (function(module, exports, __webpack_require__) {

@@ -422,3 +422,3 @@

/***/ 76:
/***/ 84:
/***/ (function(module, exports, __webpack_require__) {

@@ -425,0 +425,0 @@

@@ -76,3 +76,3 @@ (function webpackUniversalModuleDefinition(root, factory) {

/******/ // Load entry module and return exports
/******/ return __webpack_require__(__webpack_require__.s = 154);
/******/ return __webpack_require__(__webpack_require__.s = 166);
/******/ })

@@ -108,3 +108,3 @@ /************************************************************************/

/***/ 141:
/***/ 152:
/***/ (function(module, exports) {

@@ -116,17 +116,17 @@

/***/ 154:
/***/ 166:
/***/ (function(module, exports, __webpack_require__) {
angular.module('bahmni.common.patientSearch', ['bahmni.common.patient', 'infinite-scroll']).run(function ($templateCache) {
$templateCache.put('template-patient-search-patient-list', __webpack_require__(141));
$templateCache.put('template-patient-search-patient-list', __webpack_require__(152));
});
__webpack_require__(77);
__webpack_require__(78);
__webpack_require__(79);
__webpack_require__(80);
__webpack_require__(85);
__webpack_require__(86);
__webpack_require__(87);
__webpack_require__(88);
/***/ }),
/***/ 77:
/***/ 85:
/***/ (function(module, exports, __webpack_require__) {

@@ -153,3 +153,3 @@

/***/ 78:
/***/ 86:
/***/ (function(module, exports, __webpack_require__) {

@@ -362,3 +362,3 @@

/***/ 79:
/***/ 87:
/***/ (function(module, exports, __webpack_require__) {

@@ -423,3 +423,3 @@

/***/ 80:
/***/ 88:
/***/ (function(module, exports, __webpack_require__) {

@@ -426,0 +426,0 @@

@@ -76,3 +76,3 @@ (function webpackUniversalModuleDefinition(root, factory) {

/******/ // Load entry module and return exports
/******/ return __webpack_require__(__webpack_require__.s = 155);
/******/ return __webpack_require__(__webpack_require__.s = 167);
/******/ })

@@ -108,3 +108,70 @@ /************************************************************************/

/***/ 146:
/***/ 100:
/***/ (function(module, exports, __webpack_require__) {
"use strict";
Bahmni.Common.Util.ValidationUtil = function () {
var isAcceptableType = function (propertyToCheck) {
return _.includes(["string", "boolean", "number", "object"], typeof propertyToCheck);
};
var flattenObject = function (ob) {
var toReturn = {};
for (var i in ob) {
if (!ob.hasOwnProperty(i) || !isAcceptableType(ob[i])) {
continue;
}
if (typeof ob[i] == 'object' && !(ob[i] instanceof Date)) {
var flatObject = flattenObject(ob[i]);
for (var x in flatObject) {
if (!flatObject.hasOwnProperty(x) || !isAcceptableType(flatObject[x])) {
continue;
}
toReturn[i + '.' + x] = flatObject[x];
}
} else {
toReturn[i] = ob[i];
}
}
return toReturn;
};
// This will work only for patient attributes, since we are passing concept behind the attribute.
// To have a generic one, we need to remove the concept dependency.. And concept will be null for non concept fields
var validate = function (complexObject, objectConfiguration) {
var allCustomValidators = Bahmni.Registration.customValidator;
if (!allCustomValidators) {
return [];
}
var dataArray = flattenObject(complexObject);
var errorMessages = [];
_.every(dataArray, function (value, field) {
var isValid = true;
var fieldSpecificValidator = allCustomValidators[field];
if (!fieldSpecificValidator) {
return isValid;
}
if (typeof fieldSpecificValidator.method == 'function' && value) {
var personAttributeTypeConfig = _.find(objectConfiguration, { name: field });
isValid = fieldSpecificValidator.method(field, value, personAttributeTypeConfig);
if (!isValid) {
errorMessages.push(fieldSpecificValidator.errorMessage);
isValid = true;
}
}
return isValid;
});
return errorMessages;
};
return {
validate: validate
};
}();
/***/ }),
/***/ 157:
/***/ (function(module, exports) {

@@ -188,3 +255,3 @@

/***/ 155:
/***/ 167:
/***/ (function(module, exports, __webpack_require__) {

@@ -234,12 +301,4 @@

__webpack_require__(146);
__webpack_require__(157);
__webpack_require__(81);
__webpack_require__(82);
__webpack_require__(83);
__webpack_require__(84);
__webpack_require__(85);
__webpack_require__(86);
__webpack_require__(87);
__webpack_require__(88);
__webpack_require__(89);

@@ -249,2 +308,10 @@ __webpack_require__(90);

__webpack_require__(92);
__webpack_require__(93);
__webpack_require__(94);
__webpack_require__(95);
__webpack_require__(96);
__webpack_require__(97);
__webpack_require__(98);
__webpack_require__(99);
__webpack_require__(100);
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))

@@ -254,3 +321,3 @@

/***/ 81:
/***/ 89:
/***/ (function(module, exports, __webpack_require__) {

@@ -304,3 +371,3 @@

/***/ 82:
/***/ 90:
/***/ (function(module, exports, __webpack_require__) {

@@ -342,3 +409,3 @@

/***/ 83:
/***/ 91:
/***/ (function(module, exports, __webpack_require__) {

@@ -358,3 +425,3 @@

/***/ 84:
/***/ 92:
/***/ (function(module, exports, __webpack_require__) {

@@ -645,3 +712,3 @@

/***/ 85:
/***/ 93:
/***/ (function(module, exports, __webpack_require__) {

@@ -671,3 +738,3 @@

/***/ 86:
/***/ 94:
/***/ (function(module, exports, __webpack_require__) {

@@ -690,3 +757,3 @@

/***/ 87:
/***/ 95:
/***/ (function(module, exports, __webpack_require__) {

@@ -771,3 +838,3 @@

/***/ 88:
/***/ 96:
/***/ (function(module, exports, __webpack_require__) {

@@ -797,3 +864,3 @@

/***/ 89:
/***/ 97:
/***/ (function(module, exports, __webpack_require__) {

@@ -814,3 +881,3 @@

/***/ 90:
/***/ 98:
/***/ (function(module, exports, __webpack_require__) {

@@ -860,3 +927,3 @@

/***/ 91:
/***/ 99:
/***/ (function(module, exports, __webpack_require__) {

@@ -883,69 +950,2 @@

/***/ }),
/***/ 92:
/***/ (function(module, exports, __webpack_require__) {
"use strict";
Bahmni.Common.Util.ValidationUtil = function () {
var isAcceptableType = function (propertyToCheck) {
return _.includes(["string", "boolean", "number", "object"], typeof propertyToCheck);
};
var flattenObject = function (ob) {
var toReturn = {};
for (var i in ob) {
if (!ob.hasOwnProperty(i) || !isAcceptableType(ob[i])) {
continue;
}
if (typeof ob[i] == 'object' && !(ob[i] instanceof Date)) {
var flatObject = flattenObject(ob[i]);
for (var x in flatObject) {
if (!flatObject.hasOwnProperty(x) || !isAcceptableType(flatObject[x])) {
continue;
}
toReturn[i + '.' + x] = flatObject[x];
}
} else {
toReturn[i] = ob[i];
}
}
return toReturn;
};
// This will work only for patient attributes, since we are passing concept behind the attribute.
// To have a generic one, we need to remove the concept dependency.. And concept will be null for non concept fields
var validate = function (complexObject, objectConfiguration) {
var allCustomValidators = Bahmni.Registration.customValidator;
if (!allCustomValidators) {
return [];
}
var dataArray = flattenObject(complexObject);
var errorMessages = [];
_.every(dataArray, function (value, field) {
var isValid = true;
var fieldSpecificValidator = allCustomValidators[field];
if (!fieldSpecificValidator) {
return isValid;
}
if (typeof fieldSpecificValidator.method == 'function' && value) {
var personAttributeTypeConfig = _.find(objectConfiguration, { name: field });
isValid = fieldSpecificValidator.method(field, value, personAttributeTypeConfig);
if (!isValid) {
errorMessages.push(fieldSpecificValidator.errorMessage);
isValid = true;
}
}
return isValid;
});
return errorMessages;
};
return {
validate: validate
};
}();
/***/ })

@@ -952,0 +952,0 @@

@@ -76,3 +76,3 @@ (function webpackUniversalModuleDefinition(root, factory) {

/******/ // Load entry module and return exports
/******/ return __webpack_require__(__webpack_require__.s = 156);
/******/ return __webpack_require__(__webpack_require__.s = 168);
/******/ })

@@ -82,3 +82,3 @@ /************************************************************************/

/***/ 156:
/***/ 101:
/***/ (function(module, exports, __webpack_require__) {

@@ -89,2 +89,21 @@

var Bahmni = Bahmni || {};
Bahmni.Common = Bahmni.Common || {};
Bahmni.Common.DisplayControl = Bahmni.Common.DisplayControl || {};
Bahmni.Common.DisplayControl.PatientProfile = Bahmni.Common.DisplayControl.PatientProfile || {};
angular.module('bahmni.common.displaycontrol.patientprofile', []);
__webpack_require__(169);
__webpack_require__(170);
__webpack_require__(171);
/***/ }),
/***/ 168:
/***/ (function(module, exports, __webpack_require__) {
"use strict";
window.Bahmni = Bahmni || {};

@@ -96,7 +115,7 @@ Bahmni.Common = Bahmni.Common || {};

__webpack_require__(93);
__webpack_require__(101);
/***/ }),
/***/ 157:
/***/ 169:
/***/ (function(module, exports, __webpack_require__) {

@@ -202,3 +221,3 @@

},
template: __webpack_require__(167)
template: __webpack_require__(179)
};

@@ -210,3 +229,3 @@ }]);

/***/ 158:
/***/ 170:
/***/ (function(module, exports, __webpack_require__) {

@@ -230,3 +249,3 @@

/***/ 159:
/***/ 171:
/***/ (function(module, exports, __webpack_require__) {

@@ -248,3 +267,3 @@

/***/ 167:
/***/ 179:
/***/ (function(module, exports) {

@@ -254,21 +273,2 @@

/***/ }),
/***/ 93:
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var Bahmni = Bahmni || {};
Bahmni.Common = Bahmni.Common || {};
Bahmni.Common.DisplayControl = Bahmni.Common.DisplayControl || {};
Bahmni.Common.DisplayControl.PatientProfile = Bahmni.Common.DisplayControl.PatientProfile || {};
angular.module('bahmni.common.displaycontrol.patientprofile', []);
__webpack_require__(157);
__webpack_require__(158);
__webpack_require__(159);
/***/ })

@@ -275,0 +275,0 @@

{
"name": "bahmniapps-commons",
"version": "0.0.1-beta.2",
"version": "0.0.1-beta.3",
"description": "Common Modules carved out from bahmniapps.",

@@ -15,4 +15,6 @@ "scripts": {

"exports-loader": "^0.7.0",
"file-loader": "^4.0.0",
"html-loader": "^0.5.5",
"imports-loader": "^0.8.0",
"url-loader": "^2.0.1",
"webpack": "^2.7.0"

@@ -19,0 +21,0 @@ },

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc