makerspace-react-rails 0.2.3 → 0.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 626a692e4a3f694cdc207597233bc43f2c317c560dcf3ee6eec56b7a347333a4
|
4
|
+
data.tar.gz: 3d49da274d7455c2be02dee25439740baf56567c83d20f178c3e37e69183d3f6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '09fec8b43bf389297900c6c2d7d2c70578624e3791e0e4c7e19644a281f46f00c1d12ac431974389bf3775cdb554851085f28159eee19c15c10a38e1d67c817a'
|
7
|
+
data.tar.gz: 3dc5d52cb9c2d62cec2d381032abd5fbb69952e97d7084a529897f3a27ed00dace3fc0e62ad9517b152381d1680e2a9c5b07059fcb6731d75ab8bdcbafb62aa7
|
@@ -78206,16 +78206,10 @@ function baseClone(value, bitmask, customizer, key, object, stack) {
|
|
78206
78206
|
value.forEach(function(subValue) {
|
78207
78207
|
result.add(baseClone(subValue, bitmask, customizer, subValue, value, stack));
|
78208
78208
|
});
|
78209
|
-
|
78210
|
-
return result;
|
78211
|
-
}
|
78212
|
-
|
78213
|
-
if (Object(_isMap_js__WEBPACK_IMPORTED_MODULE_17__["default"])(value)) {
|
78209
|
+
} else if (Object(_isMap_js__WEBPACK_IMPORTED_MODULE_17__["default"])(value)) {
|
78214
78210
|
value.forEach(function(subValue, key) {
|
78215
78211
|
result.set(key, baseClone(subValue, bitmask, customizer, key, value, stack));
|
78216
78212
|
});
|
78217
|
-
|
78218
|
-
return result;
|
78219
78213
|
}
|
78220
78214
|
|
78221
78215
|
var keysFunc = isFull
|
@@ -80435,8 +80429,8 @@ function baseMerge(object, source, srcIndex, customizer, stack) {
|
|
80435
80429
|
return;
|
80436
80430
|
}
|
80437
80431
|
Object(_baseFor_js__WEBPACK_IMPORTED_MODULE_2__["default"])(source, function(srcValue, key) {
|
80432
|
+
stack || (stack = new _Stack_js__WEBPACK_IMPORTED_MODULE_0__["default"]);
|
80438
80433
|
if (Object(_isObject_js__WEBPACK_IMPORTED_MODULE_4__["default"])(srcValue)) {
|
80439
|
-
stack || (stack = new _Stack_js__WEBPACK_IMPORTED_MODULE_0__["default"]);
|
80440
80434
|
Object(_baseMergeDeep_js__WEBPACK_IMPORTED_MODULE_3__["default"])(object, source, key, srcIndex, baseMerge, customizer, stack);
|
80441
80435
|
}
|
80442
80436
|
else {
|
@@ -84201,15 +84195,18 @@ function createRelationalOperation(operator) {
|
|
84201
84195
|
|
84202
84196
|
"use strict";
|
84203
84197
|
__webpack_require__.r(__webpack_exports__);
|
84204
|
-
/* harmony import */ var
|
84205
|
-
/* harmony import */ var
|
84206
|
-
/* harmony import */ var
|
84198
|
+
/* harmony import */ var _root_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./_root.js */ "./node_modules/lodash-es/_root.js");
|
84199
|
+
/* harmony import */ var _toInteger_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./toInteger.js */ "./node_modules/lodash-es/toInteger.js");
|
84200
|
+
/* harmony import */ var _toNumber_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./toNumber.js */ "./node_modules/lodash-es/toNumber.js");
|
84201
|
+
/* harmony import */ var _toString_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./toString.js */ "./node_modules/lodash-es/toString.js");
|
84202
|
+
|
84207
84203
|
|
84208
84204
|
|
84209
84205
|
|
84210
84206
|
|
84211
84207
|
/* Built-in method references for those with the same name as other `lodash` methods. */
|
84212
|
-
var
|
84208
|
+
var nativeIsFinite = _root_js__WEBPACK_IMPORTED_MODULE_0__["default"].isFinite,
|
84209
|
+
nativeMin = Math.min;
|
84213
84210
|
|
84214
84211
|
/**
|
84215
84212
|
* Creates a function like `_.round`.
|
@@ -84221,15 +84218,15 @@ var nativeMin = Math.min;
|
|
84221
84218
|
function createRound(methodName) {
|
84222
84219
|
var func = Math[methodName];
|
84223
84220
|
return function(number, precision) {
|
84224
|
-
number = Object(
|
84225
|
-
precision = precision == null ? 0 : nativeMin(Object(
|
84226
|
-
if (precision) {
|
84221
|
+
number = Object(_toNumber_js__WEBPACK_IMPORTED_MODULE_2__["default"])(number);
|
84222
|
+
precision = precision == null ? 0 : nativeMin(Object(_toInteger_js__WEBPACK_IMPORTED_MODULE_1__["default"])(precision), 292);
|
84223
|
+
if (precision && nativeIsFinite(number)) {
|
84227
84224
|
// Shift with exponential notation to avoid floating-point issues.
|
84228
84225
|
// See [MDN](https://mdn.io/round#Examples) for more details.
|
84229
|
-
var pair = (Object(
|
84226
|
+
var pair = (Object(_toString_js__WEBPACK_IMPORTED_MODULE_3__["default"])(number) + 'e').split('e'),
|
84230
84227
|
value = func(pair[0] + 'e' + (+pair[1] + precision));
|
84231
84228
|
|
84232
|
-
pair = (Object(
|
84229
|
+
pair = (Object(_toString_js__WEBPACK_IMPORTED_MODULE_3__["default"])(value) + 'e').split('e');
|
84233
84230
|
return +(pair[0] + 'e' + (+pair[1] - precision));
|
84234
84231
|
}
|
84235
84232
|
return func(number);
|
@@ -87828,7 +87825,7 @@ var root = _freeGlobal_js__WEBPACK_IMPORTED_MODULE_0__["default"] || freeSelf ||
|
|
87828
87825
|
"use strict";
|
87829
87826
|
__webpack_require__.r(__webpack_exports__);
|
87830
87827
|
/**
|
87831
|
-
* Gets the value at `key`, unless `key` is "__proto__".
|
87828
|
+
* Gets the value at `key`, unless `key` is "__proto__" or "constructor".
|
87832
87829
|
*
|
87833
87830
|
* @private
|
87834
87831
|
* @param {Object} object The object to query.
|
@@ -87836,6 +87833,10 @@ __webpack_require__.r(__webpack_exports__);
|
|
87836
87833
|
* @returns {*} Returns the property value.
|
87837
87834
|
*/
|
87838
87835
|
function safeGet(object, key) {
|
87836
|
+
if (key === 'constructor' && typeof object[key] === 'function') {
|
87837
|
+
return;
|
87838
|
+
}
|
87839
|
+
|
87839
87840
|
if (key == '__proto__') {
|
87840
87841
|
return;
|
87841
87842
|
}
|
@@ -91684,6 +91685,7 @@ function debounce(func, wait, options) {
|
|
91684
91685
|
}
|
91685
91686
|
if (maxing) {
|
91686
91687
|
// Handle invocations in a tight loop.
|
91688
|
+
clearTimeout(timerId);
|
91687
91689
|
timerId = setTimeout(timerExpired, wait);
|
91688
91690
|
return invokeFunc(lastCallTime);
|
91689
91691
|
}
|
@@ -98007,7 +98009,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
98007
98009
|
* @license
|
98008
98010
|
* Lodash (Custom Build) <https://lodash.com/>
|
98009
98011
|
* Build: `lodash modularize exports="es" -o ./`
|
98010
|
-
* Copyright
|
98012
|
+
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
98011
98013
|
* Released under MIT license <https://lodash.com/license>
|
98012
98014
|
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
98013
98015
|
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
@@ -98050,7 +98052,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
98050
98052
|
|
98051
98053
|
|
98052
98054
|
/** Used as the semantic version number. */
|
98053
|
-
var VERSION = '4.17.
|
98055
|
+
var VERSION = '4.17.14';
|
98054
98056
|
|
98055
98057
|
/** Used to compose bitmasks for function metadata. */
|
98056
98058
|
var WRAP_BIND_KEY_FLAG = 2;
|
@@ -98611,10 +98613,11 @@ Object(_arrayEach_js__WEBPACK_IMPORTED_MODULE_14__["default"])(['pop', 'push', '
|
|
98611
98613
|
Object(_baseForOwn_js__WEBPACK_IMPORTED_MODULE_16__["default"])(_LazyWrapper_js__WEBPACK_IMPORTED_MODULE_11__["default"].prototype, function(func, methodName) {
|
98612
98614
|
var lodashFunc = _wrapperLodash_js__WEBPACK_IMPORTED_MODULE_35__["default"][methodName];
|
98613
98615
|
if (lodashFunc) {
|
98614
|
-
var key =
|
98615
|
-
|
98616
|
-
|
98617
|
-
|
98616
|
+
var key = lodashFunc.name + '';
|
98617
|
+
if (!hasOwnProperty.call(_realNames_js__WEBPACK_IMPORTED_MODULE_32__["default"], key)) {
|
98618
|
+
_realNames_js__WEBPACK_IMPORTED_MODULE_32__["default"][key] = [];
|
98619
|
+
}
|
98620
|
+
_realNames_js__WEBPACK_IMPORTED_MODULE_32__["default"][key].push({ 'name': methodName, 'func': lodashFunc });
|
98618
98621
|
}
|
98619
98622
|
});
|
98620
98623
|
|
@@ -99623,7 +99626,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
99623
99626
|
* @license
|
99624
99627
|
* Lodash (Custom Build) <https://lodash.com/>
|
99625
99628
|
* Build: `lodash modularize exports="es" -o ./`
|
99626
|
-
* Copyright
|
99629
|
+
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
99627
99630
|
* Released under MIT license <https://lodash.com/license>
|
99628
99631
|
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
99629
99632
|
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
@@ -106154,6 +106157,12 @@ var reNoMatch = /($^)/;
|
|
106154
106157
|
/** Used to match unescaped characters in compiled string literals. */
|
106155
106158
|
var reUnescapedString = /['\n\r\u2028\u2029\\]/g;
|
106156
106159
|
|
106160
|
+
/** Used for built-in method references. */
|
106161
|
+
var objectProto = Object.prototype;
|
106162
|
+
|
106163
|
+
/** Used to check objects for own properties. */
|
106164
|
+
var hasOwnProperty = objectProto.hasOwnProperty;
|
106165
|
+
|
106157
106166
|
/**
|
106158
106167
|
* Creates a compiled template function that can interpolate data properties
|
106159
106168
|
* in "interpolate" delimiters, HTML-escape interpolated data properties in
|
@@ -106289,7 +106298,14 @@ function template(string, options, guard) {
|
|
106289
106298
|
, 'g');
|
106290
106299
|
|
106291
106300
|
// Use a sourceURL for easier debugging.
|
106292
|
-
|
106301
|
+
// The sourceURL gets injected into the source that's eval-ed, so be careful
|
106302
|
+
// with lookup (in case of e.g. prototype pollution), and strip newlines if any.
|
106303
|
+
// A newline wouldn't be a valid sourceURL anyway, and it'd enable code injection.
|
106304
|
+
var sourceURL = hasOwnProperty.call(options, 'sourceURL')
|
106305
|
+
? ('//# sourceURL=' +
|
106306
|
+
(options.sourceURL + '').replace(/[\r\n]/g, ' ') +
|
106307
|
+
'\n')
|
106308
|
+
: '';
|
106293
106309
|
|
106294
106310
|
string.replace(reDelimiters, function(match, escapeValue, interpolateValue, esTemplateValue, evaluateValue, offset) {
|
106295
106311
|
interpolateValue || (interpolateValue = esTemplateValue);
|
@@ -106320,7 +106336,9 @@ function template(string, options, guard) {
|
|
106320
106336
|
|
106321
106337
|
// If `variable` is not specified wrap a with-statement around the generated
|
106322
106338
|
// code to add the data object to the top of the scope chain.
|
106323
|
-
|
106339
|
+
// Like with sourceURL, we take care to not check the option's prototype,
|
106340
|
+
// as this configuration is a code injection vector.
|
106341
|
+
var variable = hasOwnProperty.call(options, 'variable') && options.variable;
|
106324
106342
|
if (!variable) {
|
106325
106343
|
source = 'with (obj) {\n' + source + '\n}\n';
|
106326
106344
|
}
|
@@ -203586,7 +203604,7 @@ var Receipt = /** @class */ (function (_super) {
|
|
203586
203604
|
React.createElement(TableCell_1.default, null,
|
203587
203605
|
invoiceType,
|
203588
203606
|
" expiration"),
|
203589
|
-
React.createElement(TableCell_1.default, null, invoice_1.isMemberInvoice(invoice) ?
|
203607
|
+
React.createElement(TableCell_1.default, null, invoice_1.isMemberInvoice(invoice) ? utils_1.displayMemberExpiration(invoice.member) : invoice.rental.expiration)),
|
203590
203608
|
React.createElement(TableRow_1.default, null,
|
203591
203609
|
React.createElement(TableCell_1.default, null, "Description"),
|
203592
203610
|
React.createElement(TableCell_1.default, null, invoice.name)))),
|
@@ -207787,7 +207805,10 @@ var MemberDetail = /** @class */ (function (_super) {
|
|
207787
207805
|
_this.openEditModal = function () { return _this.setState({ isEditOpen: true }); };
|
207788
207806
|
_this.closeEditModal = function () { return _this.setState({ isEditOpen: false }); };
|
207789
207807
|
_this.openCardModal = function () { return _this.setState({ isCardOpen: true }); };
|
207790
|
-
_this.closeCardModal = function () {
|
207808
|
+
_this.closeCardModal = function () {
|
207809
|
+
_this.props.getMember();
|
207810
|
+
_this.setState({ isCardOpen: false });
|
207811
|
+
};
|
207791
207812
|
_this.renderMemberInfo = function () {
|
207792
207813
|
var _a = _this.props, member = _a.member, billingEnabled = _a.billingEnabled;
|
207793
207814
|
var details = constants_4.getDetailsForMember(member);
|
@@ -207884,13 +207905,14 @@ var MemberDetail = /** @class */ (function (_super) {
|
|
207884
207905
|
React.createElement(UpdateMemberContainer_1.default, { operation: constants_2.CrudOperation.Update, isOpen: isEditOpen, member: member, closeHandler: _this.closeEditModal, render: editForm }),
|
207885
207906
|
isCardOpen && React.createElement(AccessCardForm_1.default, { member: member, onClose: _this.closeCardModal })));
|
207886
207907
|
};
|
207887
|
-
|
207888
|
-
var ownProfile = member && currentUserId === member.id;
|
207889
|
-
_this.state = __assign({}, defaultState, { displayNotification: ownProfile && !member.memberContractOnFile ? NotificationModal_1.Notification.Welcome : undefined });
|
207908
|
+
_this.state = __assign({}, defaultState);
|
207890
207909
|
return _this;
|
207891
207910
|
}
|
207892
207911
|
MemberDetail.prototype.componentDidMount = function () {
|
207893
|
-
this.props.getMember
|
207912
|
+
var _a = this.props, member = _a.member, currentUserId = _a.currentUserId, getMember = _a.getMember;
|
207913
|
+
var ownProfile = member && currentUserId === member.id;
|
207914
|
+
getMember();
|
207915
|
+
this.setState(function (state) { return (__assign({}, state, { displayNotification: ownProfile && !member.memberContractOnFile ? NotificationModal_1.Notification.Welcome : undefined })); });
|
207894
207916
|
};
|
207895
207917
|
MemberDetail.prototype.componentDidUpdate = function (prevProps) {
|
207896
207918
|
var oldMemberId = prevProps.match.params.memberId;
|
@@ -207906,9 +207928,7 @@ var MemberDetail = /** @class */ (function (_super) {
|
|
207906
207928
|
if (resource) {
|
207907
207929
|
!allowedResources.has(resource) && history.push(constants_2.Routing.Profile.replace(constants_2.Routing.PathPlaceholder.MemberId, currentUserId));
|
207908
207930
|
}
|
207909
|
-
|
207910
|
-
this.setState({ displayNotification: NotificationModal_1.Notification.Welcome });
|
207911
|
-
}
|
207931
|
+
this.setState(function (state) { return (__assign({}, state, { displayNotification: ownProfile && !member.memberContractOnFile ? NotificationModal_1.Notification.Welcome : undefined })); });
|
207912
207932
|
if (member.earnedMembershipId && (ownProfile || admin)) {
|
207913
207933
|
this.props.getEarnedMembership(member.earnedMembershipId);
|
207914
207934
|
}
|