handlebars-source 4.7.0 → 4.7.1

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of handlebars-source might be problematic. Click here for more details.

Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/handlebars.js +149 -123
  3. data/handlebars.runtime.js +148 -122
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '0539ea3c6630b1168bfcae1500a9ebe412a6cd9514c927e850f7fff6d078c6e4'
4
- data.tar.gz: 8274c670c732b9ac6214eee157353e77e4eac6be78bb83d1c28b3ba3e1c0eeb1
3
+ metadata.gz: a13263398d0e53639120d42116ba35c8a840e417854c66b186f3abac131d749b
4
+ data.tar.gz: c8be6359738fbd8994a57865100ce93f53f769d53090858411bffaa65b1c3085
5
5
  SHA512:
6
- metadata.gz: cfedc665313be1ba5df12d125ef60494b3e5526339ad017d07783db1be0658eaeb2664d6f3719ac47a07ab77a85f8009d35bdc810e7bec744bce9285c6ff71b7
7
- data.tar.gz: 5114f41be7afc851c58064b62e70dc187c67e65307f6b0ee0d78a0b3b1cec9121cb8cf2aec92db2f525eb797cd1f2a99e089df868a9d46c03657222ac3f9eaa6
6
+ metadata.gz: f1c625192ad9d38bb588ecaea7eac84961e4fcb5accc9d383902ab001d0ac56e8dd5eaf75945a0576502cde1685907b2383f084e7f4ac2f43223ac8d4cad9892
7
+ data.tar.gz: 7ccc4cf61e02ac6083b2fb4aec84997d570609a0b6e325d37a2077b00c5a070d1034490abc5164f93c1cfab6de276e957afa82bb8b5041068d2fdbe9fbb6281f
@@ -1,7 +1,7 @@
1
1
  /**!
2
2
 
3
3
  @license
4
- handlebars v4.7.0
4
+ handlebars v4.7.1
5
5
 
6
6
  Copyright (C) 2011-2019 by Yehuda Katz
7
7
 
@@ -178,7 +178,7 @@ return /******/ (function(modules) { // webpackBootstrap
178
178
  // Each of these augment the Handlebars object. No need to setup here.
179
179
  // (This is done to easily share code between commonjs and browse envs)
180
180
 
181
- var _handlebarsSafeString = __webpack_require__(33);
181
+ var _handlebarsSafeString = __webpack_require__(37);
182
182
 
183
183
  var _handlebarsSafeString2 = _interopRequireDefault(_handlebarsSafeString);
184
184
 
@@ -190,7 +190,7 @@ return /******/ (function(modules) { // webpackBootstrap
190
190
 
191
191
  var Utils = _interopRequireWildcard(_handlebarsUtils);
192
192
 
193
- var _handlebarsRuntime = __webpack_require__(34);
193
+ var _handlebarsRuntime = __webpack_require__(38);
194
194
 
195
195
  var runtime = _interopRequireWildcard(_handlebarsRuntime);
196
196
 
@@ -276,7 +276,9 @@ return /******/ (function(modules) { // webpackBootstrap
276
276
 
277
277
  var _logger2 = _interopRequireDefault(_logger);
278
278
 
279
- var VERSION = '4.7.0';
279
+ var _internalProtoAccess = __webpack_require__(33);
280
+
281
+ var VERSION = '4.7.1';
280
282
  exports.VERSION = VERSION;
281
283
  var COMPILER_REVISION = 8;
282
284
  exports.COMPILER_REVISION = COMPILER_REVISION;
@@ -352,6 +354,13 @@ return /******/ (function(modules) { // webpackBootstrap
352
354
  },
353
355
  unregisterDecorator: function unregisterDecorator(name) {
354
356
  delete this.decorators[name];
357
+ },
358
+ /**
359
+ * Reset the memory of illegal property accesses that have already been logged.
360
+ * @deprecated should only be used in handlebars test-cases
361
+ */
362
+ resetLoggedPropertyAccesses: function resetLoggedPropertyAccesses() {
363
+ _internalProtoAccess.resetLoggedProperties();
355
364
  }
356
365
  };
357
366
 
@@ -1256,6 +1265,129 @@ return /******/ (function(modules) { // webpackBootstrap
1256
1265
 
1257
1266
  /***/ }),
1258
1267
  /* 33 */
1268
+ /***/ (function(module, exports, __webpack_require__) {
1269
+
1270
+ 'use strict';
1271
+
1272
+ var _Object$create = __webpack_require__(34)['default'];
1273
+
1274
+ var _Object$keys = __webpack_require__(13)['default'];
1275
+
1276
+ var _interopRequireWildcard = __webpack_require__(3)['default'];
1277
+
1278
+ exports.__esModule = true;
1279
+ exports.createProtoAccessControl = createProtoAccessControl;
1280
+ exports.resultIsAllowed = resultIsAllowed;
1281
+ exports.resetLoggedProperties = resetLoggedProperties;
1282
+
1283
+ var _createNewLookupObject = __webpack_require__(36);
1284
+
1285
+ var _logger = __webpack_require__(32);
1286
+
1287
+ var logger = _interopRequireWildcard(_logger);
1288
+
1289
+ var loggedProperties = _Object$create(null);
1290
+
1291
+ function createProtoAccessControl(runtimeOptions) {
1292
+ var defaultMethodWhiteList = _Object$create(null);
1293
+ defaultMethodWhiteList['constructor'] = false;
1294
+ defaultMethodWhiteList['__defineGetter__'] = false;
1295
+ defaultMethodWhiteList['__defineSetter__'] = false;
1296
+ defaultMethodWhiteList['__lookupGetter__'] = false;
1297
+
1298
+ var defaultPropertyWhiteList = _Object$create(null);
1299
+ // eslint-disable-next-line no-proto
1300
+ defaultPropertyWhiteList['__proto__'] = false;
1301
+
1302
+ return {
1303
+ properties: {
1304
+ whitelist: _createNewLookupObject.createNewLookupObject(defaultPropertyWhiteList, runtimeOptions.allowedProtoProperties),
1305
+ defaultValue: runtimeOptions.allowProtoPropertiesByDefault
1306
+ },
1307
+ methods: {
1308
+ whitelist: _createNewLookupObject.createNewLookupObject(defaultMethodWhiteList, runtimeOptions.allowedProtoMethods),
1309
+ defaultValue: runtimeOptions.allowProtoMethodsByDefault
1310
+ }
1311
+ };
1312
+ }
1313
+
1314
+ function resultIsAllowed(result, protoAccessControl, propertyName) {
1315
+ if (typeof result === 'function') {
1316
+ return checkWhiteList(protoAccessControl.methods, propertyName);
1317
+ } else {
1318
+ return checkWhiteList(protoAccessControl.properties, propertyName);
1319
+ }
1320
+ }
1321
+
1322
+ function checkWhiteList(protoAccessControlForType, propertyName) {
1323
+ if (protoAccessControlForType.whitelist[propertyName] !== undefined) {
1324
+ return protoAccessControlForType.whitelist[propertyName] === true;
1325
+ }
1326
+ if (protoAccessControlForType.defaultValue !== undefined) {
1327
+ return protoAccessControlForType.defaultValue;
1328
+ }
1329
+ logUnexpecedPropertyAccessOnce(propertyName);
1330
+ return false;
1331
+ }
1332
+
1333
+ function logUnexpecedPropertyAccessOnce(propertyName) {
1334
+ if (loggedProperties[propertyName] !== true) {
1335
+ loggedProperties[propertyName] = true;
1336
+ logger.log('error', 'Handlebars: Access has been denied to resolve the property "' + propertyName + '" because it is not an "own property" of its parent.\n' + 'You can add a runtime option to disable the check or this warning:\n' + 'See https://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details');
1337
+ }
1338
+ }
1339
+
1340
+ function resetLoggedProperties() {
1341
+ _Object$keys(loggedProperties).forEach(function (propertyName) {
1342
+ delete loggedProperties[propertyName];
1343
+ });
1344
+ }
1345
+
1346
+ /***/ }),
1347
+ /* 34 */
1348
+ /***/ (function(module, exports, __webpack_require__) {
1349
+
1350
+ module.exports = { "default": __webpack_require__(35), __esModule: true };
1351
+
1352
+ /***/ }),
1353
+ /* 35 */
1354
+ /***/ (function(module, exports, __webpack_require__) {
1355
+
1356
+ var $ = __webpack_require__(9);
1357
+ module.exports = function create(P, D){
1358
+ return $.create(P, D);
1359
+ };
1360
+
1361
+ /***/ }),
1362
+ /* 36 */
1363
+ /***/ (function(module, exports, __webpack_require__) {
1364
+
1365
+ 'use strict';
1366
+
1367
+ var _Object$create = __webpack_require__(34)['default'];
1368
+
1369
+ exports.__esModule = true;
1370
+ exports.createNewLookupObject = createNewLookupObject;
1371
+
1372
+ var _utils = __webpack_require__(5);
1373
+
1374
+ /**
1375
+ * Create a new object with "null"-prototype to avoid truthy results on prototype properties.
1376
+ * The resulting object can be used with "object[property]" to check if a property exists
1377
+ * @param {...object} sources a varargs parameter of source objects that will be merged
1378
+ * @returns {object}
1379
+ */
1380
+
1381
+ function createNewLookupObject() {
1382
+ for (var _len = arguments.length, sources = Array(_len), _key = 0; _key < _len; _key++) {
1383
+ sources[_key] = arguments[_key];
1384
+ }
1385
+
1386
+ return _utils.extend.apply(undefined, [_Object$create(null)].concat(sources));
1387
+ }
1388
+
1389
+ /***/ }),
1390
+ /* 37 */
1259
1391
  /***/ (function(module, exports) {
1260
1392
 
1261
1393
  // Build out our basic SafeString type
@@ -1274,12 +1406,12 @@ return /******/ (function(modules) { // webpackBootstrap
1274
1406
  module.exports = exports['default'];
1275
1407
 
1276
1408
  /***/ }),
1277
- /* 34 */
1409
+ /* 38 */
1278
1410
  /***/ (function(module, exports, __webpack_require__) {
1279
1411
 
1280
1412
  'use strict';
1281
1413
 
1282
- var _Object$seal = __webpack_require__(35)['default'];
1414
+ var _Object$seal = __webpack_require__(39)['default'];
1283
1415
 
1284
1416
  var _Object$keys = __webpack_require__(13)['default'];
1285
1417
 
@@ -1307,9 +1439,9 @@ return /******/ (function(modules) { // webpackBootstrap
1307
1439
 
1308
1440
  var _helpers = __webpack_require__(10);
1309
1441
 
1310
- var _internalWrapHelper = __webpack_require__(39);
1442
+ var _internalWrapHelper = __webpack_require__(43);
1311
1443
 
1312
- var _internalProtoAccess = __webpack_require__(40);
1444
+ var _internalProtoAccess = __webpack_require__(33);
1313
1445
 
1314
1446
  function checkRevision(compilerInfo) {
1315
1447
  var compilerRevision = compilerInfo && compilerInfo[0] || 1,
@@ -1651,24 +1783,24 @@ return /******/ (function(modules) { // webpackBootstrap
1651
1783
  }
1652
1784
 
1653
1785
  /***/ }),
1654
- /* 35 */
1786
+ /* 39 */
1655
1787
  /***/ (function(module, exports, __webpack_require__) {
1656
1788
 
1657
- module.exports = { "default": __webpack_require__(36), __esModule: true };
1789
+ module.exports = { "default": __webpack_require__(40), __esModule: true };
1658
1790
 
1659
1791
  /***/ }),
1660
- /* 36 */
1792
+ /* 40 */
1661
1793
  /***/ (function(module, exports, __webpack_require__) {
1662
1794
 
1663
- __webpack_require__(37);
1795
+ __webpack_require__(41);
1664
1796
  module.exports = __webpack_require__(21).Object.seal;
1665
1797
 
1666
1798
  /***/ }),
1667
- /* 37 */
1799
+ /* 41 */
1668
1800
  /***/ (function(module, exports, __webpack_require__) {
1669
1801
 
1670
1802
  // 19.1.2.17 Object.seal(O)
1671
- var isObject = __webpack_require__(38);
1803
+ var isObject = __webpack_require__(42);
1672
1804
 
1673
1805
  __webpack_require__(18)('seal', function($seal){
1674
1806
  return function seal(it){
@@ -1677,7 +1809,7 @@ return /******/ (function(modules) { // webpackBootstrap
1677
1809
  });
1678
1810
 
1679
1811
  /***/ }),
1680
- /* 38 */
1812
+ /* 42 */
1681
1813
  /***/ (function(module, exports) {
1682
1814
 
1683
1815
  module.exports = function(it){
@@ -1685,7 +1817,7 @@ return /******/ (function(modules) { // webpackBootstrap
1685
1817
  };
1686
1818
 
1687
1819
  /***/ }),
1688
- /* 39 */
1820
+ /* 43 */
1689
1821
  /***/ (function(module, exports) {
1690
1822
 
1691
1823
  "use strict";
@@ -1702,112 +1834,6 @@ return /******/ (function(modules) { // webpackBootstrap
1702
1834
  return wrapper;
1703
1835
  }
1704
1836
 
1705
- /***/ }),
1706
- /* 40 */
1707
- /***/ (function(module, exports, __webpack_require__) {
1708
-
1709
- 'use strict';
1710
-
1711
- var _Object$create = __webpack_require__(41)['default'];
1712
-
1713
- var _interopRequireWildcard = __webpack_require__(3)['default'];
1714
-
1715
- exports.__esModule = true;
1716
- exports.createProtoAccessControl = createProtoAccessControl;
1717
- exports.resultIsAllowed = resultIsAllowed;
1718
-
1719
- var _createNewLookupObject = __webpack_require__(43);
1720
-
1721
- var _logger = __webpack_require__(32);
1722
-
1723
- var logger = _interopRequireWildcard(_logger);
1724
-
1725
- function createProtoAccessControl(runtimeOptions) {
1726
- var defaultMethodWhiteList = _Object$create(null);
1727
- defaultMethodWhiteList['constructor'] = false;
1728
- defaultMethodWhiteList['__defineGetter__'] = false;
1729
- defaultMethodWhiteList['__defineSetter__'] = false;
1730
- defaultMethodWhiteList['__lookupGetter__'] = false;
1731
-
1732
- var defaultPropertyWhiteList = _Object$create(null);
1733
- // eslint-disable-next-line no-proto
1734
- defaultPropertyWhiteList['__proto__'] = false;
1735
-
1736
- return {
1737
- properties: {
1738
- whitelist: _createNewLookupObject.createNewLookupObject(defaultPropertyWhiteList, runtimeOptions.allowedProtoProperties),
1739
- defaultValue: runtimeOptions.allowProtoPropertiesByDefault
1740
- },
1741
- methods: {
1742
- whitelist: _createNewLookupObject.createNewLookupObject(defaultMethodWhiteList, runtimeOptions.allowedProtoMethods),
1743
- defaultValue: runtimeOptions.allowProtoMethodsByDefault
1744
- }
1745
- };
1746
- }
1747
-
1748
- function resultIsAllowed(result, protoAccessControl, propertyName) {
1749
- if (typeof result === 'function') {
1750
- return checkWhiteList(protoAccessControl.methods, propertyName);
1751
- } else {
1752
- return checkWhiteList(protoAccessControl.properties, propertyName);
1753
- }
1754
- }
1755
-
1756
- function checkWhiteList(protoAccessControlForType, propertyName) {
1757
- if (protoAccessControlForType.whitelist[propertyName] !== undefined) {
1758
- return protoAccessControlForType.whitelist[propertyName] === true;
1759
- }
1760
- if (protoAccessControlForType.defaultValue !== undefined) {
1761
- return protoAccessControlForType.defaultValue;
1762
- }
1763
- // eslint-disable-next-line no-console
1764
- logger.log('error', 'Handlebars: Access has been denied to resolve the property "' + propertyName + '" because it is not an "own property" of its parent.\n' + 'You can add a runtime option to disable the check or this warning:\n' + 'See http://localhost:8080/api-reference/runtime-options.html#options-to-control-prototype-access for details');
1765
- return false;
1766
- }
1767
-
1768
- /***/ }),
1769
- /* 41 */
1770
- /***/ (function(module, exports, __webpack_require__) {
1771
-
1772
- module.exports = { "default": __webpack_require__(42), __esModule: true };
1773
-
1774
- /***/ }),
1775
- /* 42 */
1776
- /***/ (function(module, exports, __webpack_require__) {
1777
-
1778
- var $ = __webpack_require__(9);
1779
- module.exports = function create(P, D){
1780
- return $.create(P, D);
1781
- };
1782
-
1783
- /***/ }),
1784
- /* 43 */
1785
- /***/ (function(module, exports, __webpack_require__) {
1786
-
1787
- 'use strict';
1788
-
1789
- var _Object$create = __webpack_require__(41)['default'];
1790
-
1791
- exports.__esModule = true;
1792
- exports.createNewLookupObject = createNewLookupObject;
1793
-
1794
- var _utils = __webpack_require__(5);
1795
-
1796
- /**
1797
- * Create a new object with "null"-prototype to avoid truthy results on prototype properties.
1798
- * The resulting object can be used with "object[property]" to check if a property exists
1799
- * @param {...object} sources a varargs parameter of source objects that will be merged
1800
- * @returns {object}
1801
- */
1802
-
1803
- function createNewLookupObject() {
1804
- for (var _len = arguments.length, sources = Array(_len), _key = 0; _key < _len; _key++) {
1805
- sources[_key] = arguments[_key];
1806
- }
1807
-
1808
- return _utils.extend.apply(undefined, [_Object$create(null)].concat(sources));
1809
- }
1810
-
1811
1837
  /***/ }),
1812
1838
  /* 44 */
1813
1839
  /***/ (function(module, exports) {
@@ -3272,7 +3298,7 @@ return /******/ (function(modules) { // webpackBootstrap
3272
3298
 
3273
3299
  'use strict';
3274
3300
 
3275
- var _Object$create = __webpack_require__(41)['default'];
3301
+ var _Object$create = __webpack_require__(34)['default'];
3276
3302
 
3277
3303
  var _interopRequireDefault = __webpack_require__(1)['default'];
3278
3304
 
@@ -1,7 +1,7 @@
1
1
  /**!
2
2
 
3
3
  @license
4
- handlebars v4.7.0
4
+ handlebars v4.7.1
5
5
 
6
6
  Copyright (C) 2011-2019 by Yehuda Katz
7
7
 
@@ -95,7 +95,7 @@ return /******/ (function(modules) { // webpackBootstrap
95
95
  // Each of these augment the Handlebars object. No need to setup here.
96
96
  // (This is done to easily share code between commonjs and browse envs)
97
97
 
98
- var _handlebarsSafeString = __webpack_require__(32);
98
+ var _handlebarsSafeString = __webpack_require__(36);
99
99
 
100
100
  var _handlebarsSafeString2 = _interopRequireDefault(_handlebarsSafeString);
101
101
 
@@ -107,7 +107,7 @@ return /******/ (function(modules) { // webpackBootstrap
107
107
 
108
108
  var Utils = _interopRequireWildcard(_handlebarsUtils);
109
109
 
110
- var _handlebarsRuntime = __webpack_require__(33);
110
+ var _handlebarsRuntime = __webpack_require__(37);
111
111
 
112
112
  var runtime = _interopRequireWildcard(_handlebarsRuntime);
113
113
 
@@ -207,7 +207,9 @@ return /******/ (function(modules) { // webpackBootstrap
207
207
 
208
208
  var _logger2 = _interopRequireDefault(_logger);
209
209
 
210
- var VERSION = '4.7.0';
210
+ var _internalProtoAccess = __webpack_require__(32);
211
+
212
+ var VERSION = '4.7.1';
211
213
  exports.VERSION = VERSION;
212
214
  var COMPILER_REVISION = 8;
213
215
  exports.COMPILER_REVISION = COMPILER_REVISION;
@@ -283,6 +285,13 @@ return /******/ (function(modules) { // webpackBootstrap
283
285
  },
284
286
  unregisterDecorator: function unregisterDecorator(name) {
285
287
  delete this.decorators[name];
288
+ },
289
+ /**
290
+ * Reset the memory of illegal property accesses that have already been logged.
291
+ * @deprecated should only be used in handlebars test-cases
292
+ */
293
+ resetLoggedPropertyAccesses: function resetLoggedPropertyAccesses() {
294
+ _internalProtoAccess.resetLoggedProperties();
286
295
  }
287
296
  };
288
297
 
@@ -1187,6 +1196,129 @@ return /******/ (function(modules) { // webpackBootstrap
1187
1196
 
1188
1197
  /***/ }),
1189
1198
  /* 32 */
1199
+ /***/ (function(module, exports, __webpack_require__) {
1200
+
1201
+ 'use strict';
1202
+
1203
+ var _Object$create = __webpack_require__(33)['default'];
1204
+
1205
+ var _Object$keys = __webpack_require__(12)['default'];
1206
+
1207
+ var _interopRequireWildcard = __webpack_require__(1)['default'];
1208
+
1209
+ exports.__esModule = true;
1210
+ exports.createProtoAccessControl = createProtoAccessControl;
1211
+ exports.resultIsAllowed = resultIsAllowed;
1212
+ exports.resetLoggedProperties = resetLoggedProperties;
1213
+
1214
+ var _createNewLookupObject = __webpack_require__(35);
1215
+
1216
+ var _logger = __webpack_require__(31);
1217
+
1218
+ var logger = _interopRequireWildcard(_logger);
1219
+
1220
+ var loggedProperties = _Object$create(null);
1221
+
1222
+ function createProtoAccessControl(runtimeOptions) {
1223
+ var defaultMethodWhiteList = _Object$create(null);
1224
+ defaultMethodWhiteList['constructor'] = false;
1225
+ defaultMethodWhiteList['__defineGetter__'] = false;
1226
+ defaultMethodWhiteList['__defineSetter__'] = false;
1227
+ defaultMethodWhiteList['__lookupGetter__'] = false;
1228
+
1229
+ var defaultPropertyWhiteList = _Object$create(null);
1230
+ // eslint-disable-next-line no-proto
1231
+ defaultPropertyWhiteList['__proto__'] = false;
1232
+
1233
+ return {
1234
+ properties: {
1235
+ whitelist: _createNewLookupObject.createNewLookupObject(defaultPropertyWhiteList, runtimeOptions.allowedProtoProperties),
1236
+ defaultValue: runtimeOptions.allowProtoPropertiesByDefault
1237
+ },
1238
+ methods: {
1239
+ whitelist: _createNewLookupObject.createNewLookupObject(defaultMethodWhiteList, runtimeOptions.allowedProtoMethods),
1240
+ defaultValue: runtimeOptions.allowProtoMethodsByDefault
1241
+ }
1242
+ };
1243
+ }
1244
+
1245
+ function resultIsAllowed(result, protoAccessControl, propertyName) {
1246
+ if (typeof result === 'function') {
1247
+ return checkWhiteList(protoAccessControl.methods, propertyName);
1248
+ } else {
1249
+ return checkWhiteList(protoAccessControl.properties, propertyName);
1250
+ }
1251
+ }
1252
+
1253
+ function checkWhiteList(protoAccessControlForType, propertyName) {
1254
+ if (protoAccessControlForType.whitelist[propertyName] !== undefined) {
1255
+ return protoAccessControlForType.whitelist[propertyName] === true;
1256
+ }
1257
+ if (protoAccessControlForType.defaultValue !== undefined) {
1258
+ return protoAccessControlForType.defaultValue;
1259
+ }
1260
+ logUnexpecedPropertyAccessOnce(propertyName);
1261
+ return false;
1262
+ }
1263
+
1264
+ function logUnexpecedPropertyAccessOnce(propertyName) {
1265
+ if (loggedProperties[propertyName] !== true) {
1266
+ loggedProperties[propertyName] = true;
1267
+ logger.log('error', 'Handlebars: Access has been denied to resolve the property "' + propertyName + '" because it is not an "own property" of its parent.\n' + 'You can add a runtime option to disable the check or this warning:\n' + 'See https://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details');
1268
+ }
1269
+ }
1270
+
1271
+ function resetLoggedProperties() {
1272
+ _Object$keys(loggedProperties).forEach(function (propertyName) {
1273
+ delete loggedProperties[propertyName];
1274
+ });
1275
+ }
1276
+
1277
+ /***/ }),
1278
+ /* 33 */
1279
+ /***/ (function(module, exports, __webpack_require__) {
1280
+
1281
+ module.exports = { "default": __webpack_require__(34), __esModule: true };
1282
+
1283
+ /***/ }),
1284
+ /* 34 */
1285
+ /***/ (function(module, exports, __webpack_require__) {
1286
+
1287
+ var $ = __webpack_require__(8);
1288
+ module.exports = function create(P, D){
1289
+ return $.create(P, D);
1290
+ };
1291
+
1292
+ /***/ }),
1293
+ /* 35 */
1294
+ /***/ (function(module, exports, __webpack_require__) {
1295
+
1296
+ 'use strict';
1297
+
1298
+ var _Object$create = __webpack_require__(33)['default'];
1299
+
1300
+ exports.__esModule = true;
1301
+ exports.createNewLookupObject = createNewLookupObject;
1302
+
1303
+ var _utils = __webpack_require__(4);
1304
+
1305
+ /**
1306
+ * Create a new object with "null"-prototype to avoid truthy results on prototype properties.
1307
+ * The resulting object can be used with "object[property]" to check if a property exists
1308
+ * @param {...object} sources a varargs parameter of source objects that will be merged
1309
+ * @returns {object}
1310
+ */
1311
+
1312
+ function createNewLookupObject() {
1313
+ for (var _len = arguments.length, sources = Array(_len), _key = 0; _key < _len; _key++) {
1314
+ sources[_key] = arguments[_key];
1315
+ }
1316
+
1317
+ return _utils.extend.apply(undefined, [_Object$create(null)].concat(sources));
1318
+ }
1319
+
1320
+ /***/ }),
1321
+ /* 36 */
1190
1322
  /***/ (function(module, exports) {
1191
1323
 
1192
1324
  // Build out our basic SafeString type
@@ -1205,12 +1337,12 @@ return /******/ (function(modules) { // webpackBootstrap
1205
1337
  module.exports = exports['default'];
1206
1338
 
1207
1339
  /***/ }),
1208
- /* 33 */
1340
+ /* 37 */
1209
1341
  /***/ (function(module, exports, __webpack_require__) {
1210
1342
 
1211
1343
  'use strict';
1212
1344
 
1213
- var _Object$seal = __webpack_require__(34)['default'];
1345
+ var _Object$seal = __webpack_require__(38)['default'];
1214
1346
 
1215
1347
  var _Object$keys = __webpack_require__(12)['default'];
1216
1348
 
@@ -1238,9 +1370,9 @@ return /******/ (function(modules) { // webpackBootstrap
1238
1370
 
1239
1371
  var _helpers = __webpack_require__(9);
1240
1372
 
1241
- var _internalWrapHelper = __webpack_require__(38);
1373
+ var _internalWrapHelper = __webpack_require__(42);
1242
1374
 
1243
- var _internalProtoAccess = __webpack_require__(39);
1375
+ var _internalProtoAccess = __webpack_require__(32);
1244
1376
 
1245
1377
  function checkRevision(compilerInfo) {
1246
1378
  var compilerRevision = compilerInfo && compilerInfo[0] || 1,
@@ -1582,24 +1714,24 @@ return /******/ (function(modules) { // webpackBootstrap
1582
1714
  }
1583
1715
 
1584
1716
  /***/ }),
1585
- /* 34 */
1717
+ /* 38 */
1586
1718
  /***/ (function(module, exports, __webpack_require__) {
1587
1719
 
1588
- module.exports = { "default": __webpack_require__(35), __esModule: true };
1720
+ module.exports = { "default": __webpack_require__(39), __esModule: true };
1589
1721
 
1590
1722
  /***/ }),
1591
- /* 35 */
1723
+ /* 39 */
1592
1724
  /***/ (function(module, exports, __webpack_require__) {
1593
1725
 
1594
- __webpack_require__(36);
1726
+ __webpack_require__(40);
1595
1727
  module.exports = __webpack_require__(20).Object.seal;
1596
1728
 
1597
1729
  /***/ }),
1598
- /* 36 */
1730
+ /* 40 */
1599
1731
  /***/ (function(module, exports, __webpack_require__) {
1600
1732
 
1601
1733
  // 19.1.2.17 Object.seal(O)
1602
- var isObject = __webpack_require__(37);
1734
+ var isObject = __webpack_require__(41);
1603
1735
 
1604
1736
  __webpack_require__(17)('seal', function($seal){
1605
1737
  return function seal(it){
@@ -1608,7 +1740,7 @@ return /******/ (function(modules) { // webpackBootstrap
1608
1740
  });
1609
1741
 
1610
1742
  /***/ }),
1611
- /* 37 */
1743
+ /* 41 */
1612
1744
  /***/ (function(module, exports) {
1613
1745
 
1614
1746
  module.exports = function(it){
@@ -1616,7 +1748,7 @@ return /******/ (function(modules) { // webpackBootstrap
1616
1748
  };
1617
1749
 
1618
1750
  /***/ }),
1619
- /* 38 */
1751
+ /* 42 */
1620
1752
  /***/ (function(module, exports) {
1621
1753
 
1622
1754
  "use strict";
@@ -1633,112 +1765,6 @@ return /******/ (function(modules) { // webpackBootstrap
1633
1765
  return wrapper;
1634
1766
  }
1635
1767
 
1636
- /***/ }),
1637
- /* 39 */
1638
- /***/ (function(module, exports, __webpack_require__) {
1639
-
1640
- 'use strict';
1641
-
1642
- var _Object$create = __webpack_require__(40)['default'];
1643
-
1644
- var _interopRequireWildcard = __webpack_require__(1)['default'];
1645
-
1646
- exports.__esModule = true;
1647
- exports.createProtoAccessControl = createProtoAccessControl;
1648
- exports.resultIsAllowed = resultIsAllowed;
1649
-
1650
- var _createNewLookupObject = __webpack_require__(42);
1651
-
1652
- var _logger = __webpack_require__(31);
1653
-
1654
- var logger = _interopRequireWildcard(_logger);
1655
-
1656
- function createProtoAccessControl(runtimeOptions) {
1657
- var defaultMethodWhiteList = _Object$create(null);
1658
- defaultMethodWhiteList['constructor'] = false;
1659
- defaultMethodWhiteList['__defineGetter__'] = false;
1660
- defaultMethodWhiteList['__defineSetter__'] = false;
1661
- defaultMethodWhiteList['__lookupGetter__'] = false;
1662
-
1663
- var defaultPropertyWhiteList = _Object$create(null);
1664
- // eslint-disable-next-line no-proto
1665
- defaultPropertyWhiteList['__proto__'] = false;
1666
-
1667
- return {
1668
- properties: {
1669
- whitelist: _createNewLookupObject.createNewLookupObject(defaultPropertyWhiteList, runtimeOptions.allowedProtoProperties),
1670
- defaultValue: runtimeOptions.allowProtoPropertiesByDefault
1671
- },
1672
- methods: {
1673
- whitelist: _createNewLookupObject.createNewLookupObject(defaultMethodWhiteList, runtimeOptions.allowedProtoMethods),
1674
- defaultValue: runtimeOptions.allowProtoMethodsByDefault
1675
- }
1676
- };
1677
- }
1678
-
1679
- function resultIsAllowed(result, protoAccessControl, propertyName) {
1680
- if (typeof result === 'function') {
1681
- return checkWhiteList(protoAccessControl.methods, propertyName);
1682
- } else {
1683
- return checkWhiteList(protoAccessControl.properties, propertyName);
1684
- }
1685
- }
1686
-
1687
- function checkWhiteList(protoAccessControlForType, propertyName) {
1688
- if (protoAccessControlForType.whitelist[propertyName] !== undefined) {
1689
- return protoAccessControlForType.whitelist[propertyName] === true;
1690
- }
1691
- if (protoAccessControlForType.defaultValue !== undefined) {
1692
- return protoAccessControlForType.defaultValue;
1693
- }
1694
- // eslint-disable-next-line no-console
1695
- logger.log('error', 'Handlebars: Access has been denied to resolve the property "' + propertyName + '" because it is not an "own property" of its parent.\n' + 'You can add a runtime option to disable the check or this warning:\n' + 'See http://localhost:8080/api-reference/runtime-options.html#options-to-control-prototype-access for details');
1696
- return false;
1697
- }
1698
-
1699
- /***/ }),
1700
- /* 40 */
1701
- /***/ (function(module, exports, __webpack_require__) {
1702
-
1703
- module.exports = { "default": __webpack_require__(41), __esModule: true };
1704
-
1705
- /***/ }),
1706
- /* 41 */
1707
- /***/ (function(module, exports, __webpack_require__) {
1708
-
1709
- var $ = __webpack_require__(8);
1710
- module.exports = function create(P, D){
1711
- return $.create(P, D);
1712
- };
1713
-
1714
- /***/ }),
1715
- /* 42 */
1716
- /***/ (function(module, exports, __webpack_require__) {
1717
-
1718
- 'use strict';
1719
-
1720
- var _Object$create = __webpack_require__(40)['default'];
1721
-
1722
- exports.__esModule = true;
1723
- exports.createNewLookupObject = createNewLookupObject;
1724
-
1725
- var _utils = __webpack_require__(4);
1726
-
1727
- /**
1728
- * Create a new object with "null"-prototype to avoid truthy results on prototype properties.
1729
- * The resulting object can be used with "object[property]" to check if a property exists
1730
- * @param {...object} sources a varargs parameter of source objects that will be merged
1731
- * @returns {object}
1732
- */
1733
-
1734
- function createNewLookupObject() {
1735
- for (var _len = arguments.length, sources = Array(_len), _key = 0; _key < _len; _key++) {
1736
- sources[_key] = arguments[_key];
1737
- }
1738
-
1739
- return _utils.extend.apply(undefined, [_Object$create(null)].concat(sources));
1740
- }
1741
-
1742
1768
  /***/ }),
1743
1769
  /* 43 */
1744
1770
  /***/ (function(module, exports) {
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: handlebars-source
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.7.0
4
+ version: 4.7.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yehuda Katz
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-01-10 00:00:00.000000000 Z
11
+ date: 2020-01-12 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Handlebars.js source code wrapper for (pre)compilation gems.
14
14
  email: