handlebars-source 3.0.5 → 3.0.7

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 +5 -5
  2. data/handlebars.js +98 -38
  3. data/handlebars.runtime.js +72 -15
  4. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: a26fcd20265a1a4e9b7154df449a760e2f20d239
4
- data.tar.gz: e37758cfaefdc46be07bc35b7e131f8e28386694
2
+ SHA256:
3
+ metadata.gz: f2aea31d96911fa9f0eddc2a856fc1aa07b6778e9d3132050f202ca61dcddb97
4
+ data.tar.gz: ec81549d2997bc8ccaf2930681094a59a6c2c90600f52ffde5fb0d38d454b8ef
5
5
  SHA512:
6
- metadata.gz: 4a7bc656b1b02c84fb75f8c7f668260716c4d9712251dc9b1f68ac6ab1faf71162fc4953857415e89d7f316e1d18e8a545edf3d4d0c41065ccef68832f4b05c6
7
- data.tar.gz: d24dc23dc44df7a60369befb751812e1480c317c206e16ca7e87722a212641c57d52fb98ad6e3e6c9fc0fdd71a4e1dfc7c3e32c41f502bf3673bd44de87cddf7
6
+ metadata.gz: 1f67f4a247aaedd175cbabd39f2d8f787372029d0abc13e84e1c69f28c4c4f1bed8c99f69b510b08a57e7d0f549b19dfa16a048c9b538345a644fbe05d4ee78b
7
+ data.tar.gz: 9d30838812c234dc398c7b66818ff6e34635c9cde532f58145d25005267af4d51f34ce7710016deea152e30b78ed452106011e111094ca76cc19cbd8caaba0b6
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
 
3
- handlebars v3.0.5
3
+ handlebars v3.0.7
4
4
 
5
5
  Copyright (C) 2011-2014 by Yehuda Katz
6
6
 
@@ -92,23 +92,23 @@ return /******/ (function(modules) { // webpackBootstrap
92
92
 
93
93
  // Compiler imports
94
94
 
95
- var _handlebarsCompilerAst = __webpack_require__(10);
95
+ var _handlebarsCompilerAst = __webpack_require__(13);
96
96
 
97
97
  var _handlebarsCompilerAst2 = _interopRequireDefault(_handlebarsCompilerAst);
98
98
 
99
- var _handlebarsCompilerBase = __webpack_require__(11);
99
+ var _handlebarsCompilerBase = __webpack_require__(14);
100
100
 
101
- var _handlebarsCompilerCompiler = __webpack_require__(16);
101
+ var _handlebarsCompilerCompiler = __webpack_require__(19);
102
102
 
103
- var _handlebarsCompilerJavascriptCompiler = __webpack_require__(17);
103
+ var _handlebarsCompilerJavascriptCompiler = __webpack_require__(20);
104
104
 
105
105
  var _handlebarsCompilerJavascriptCompiler2 = _interopRequireDefault(_handlebarsCompilerJavascriptCompiler);
106
106
 
107
- var _handlebarsCompilerVisitor = __webpack_require__(14);
107
+ var _handlebarsCompilerVisitor = __webpack_require__(17);
108
108
 
109
109
  var _handlebarsCompilerVisitor2 = _interopRequireDefault(_handlebarsCompilerVisitor);
110
110
 
111
- var _handlebarsNoConflict = __webpack_require__(9);
111
+ var _handlebarsNoConflict = __webpack_require__(12);
112
112
 
113
113
  var _handlebarsNoConflict2 = _interopRequireDefault(_handlebarsNoConflict);
114
114
 
@@ -177,7 +177,7 @@ return /******/ (function(modules) { // webpackBootstrap
177
177
  // Each of these augment the Handlebars object. No need to setup here.
178
178
  // (This is done to easily share code between commonjs and browse envs)
179
179
 
180
- var _handlebarsSafeString = __webpack_require__(7);
180
+ var _handlebarsSafeString = __webpack_require__(10);
181
181
 
182
182
  var _handlebarsSafeString2 = _interopRequireDefault(_handlebarsSafeString);
183
183
 
@@ -189,11 +189,11 @@ return /******/ (function(modules) { // webpackBootstrap
189
189
 
190
190
  var Utils = _interopRequireWildcard(_handlebarsUtils);
191
191
 
192
- var _handlebarsRuntime = __webpack_require__(8);
192
+ var _handlebarsRuntime = __webpack_require__(11);
193
193
 
194
194
  var runtime = _interopRequireWildcard(_handlebarsRuntime);
195
195
 
196
- var _handlebarsNoConflict = __webpack_require__(9);
196
+ var _handlebarsNoConflict = __webpack_require__(12);
197
197
 
198
198
  var _handlebarsNoConflict2 = _interopRequireDefault(_handlebarsNoConflict);
199
199
 
@@ -494,7 +494,13 @@ return /******/ (function(modules) { // webpackBootstrap
494
494
  });
495
495
 
496
496
  instance.registerHelper('lookup', function (obj, field) {
497
- return obj && obj[field];
497
+ if (!obj) {
498
+ return obj;
499
+ }
500
+ if (field === 'constructor' && !obj.propertyIsEnumerable(field)) {
501
+ return undefined;
502
+ }
503
+ return obj[field];
498
504
  });
499
505
  }
500
506
 
@@ -547,12 +553,13 @@ return /******/ (function(modules) { // webpackBootstrap
547
553
  '>': '>',
548
554
  '"': '"',
549
555
  "'": ''',
550
- '`': '`',
551
- '=': '='
556
+ '`': '`'
557
+ // The "equals-sign" is intentionally excluded from this list
558
+ // due to semantic-versioning issues (see #1489)
552
559
  };
553
560
 
554
- var badChars = /[&<>"'`=]/g,
555
- possible = /[&<>"'`=]/;
561
+ var badChars = /[&<>"'`]/g,
562
+ possible = /[&<>"'`]/;
556
563
 
557
564
  function escapeChar(chr) {
558
565
  return escape[chr];
@@ -651,10 +658,12 @@ return /******/ (function(modules) { // webpackBootstrap
651
658
 
652
659
  /***/ }),
653
660
  /* 6 */
654
- /***/ (function(module, exports) {
661
+ /***/ (function(module, exports, __webpack_require__) {
655
662
 
656
663
  'use strict';
657
664
 
665
+ var _Object$defineProperty = __webpack_require__(7)['default'];
666
+
658
667
  exports.__esModule = true;
659
668
 
660
669
  var errorProps = ['description', 'fileName', 'lineNumber', 'message', 'name', 'number', 'stack'];
@@ -677,13 +686,28 @@ return /******/ (function(modules) { // webpackBootstrap
677
686
  this[errorProps[idx]] = tmp[errorProps[idx]];
678
687
  }
679
688
 
689
+ /* istanbul ignore else */
680
690
  if (Error.captureStackTrace) {
681
691
  Error.captureStackTrace(this, Exception);
682
692
  }
683
693
 
684
- if (loc) {
685
- this.lineNumber = line;
686
- this.column = column;
694
+ try {
695
+ if (loc) {
696
+ this.lineNumber = line;
697
+
698
+ // Work around issue under safari where we can't directly set the column value
699
+ /* istanbul ignore next */
700
+ if (_Object$defineProperty) {
701
+ Object.defineProperty(this, 'column', {
702
+ value: column,
703
+ enumerable: true
704
+ });
705
+ } else {
706
+ this.column = column;
707
+ }
708
+ }
709
+ } catch (nop) {
710
+ /* Ignore if the browser is very particular */
687
711
  }
688
712
  }
689
713
 
@@ -694,6 +718,39 @@ return /******/ (function(modules) { // webpackBootstrap
694
718
 
695
719
  /***/ }),
696
720
  /* 7 */
721
+ /***/ (function(module, exports, __webpack_require__) {
722
+
723
+ module.exports = { "default": __webpack_require__(8), __esModule: true };
724
+
725
+ /***/ }),
726
+ /* 8 */
727
+ /***/ (function(module, exports, __webpack_require__) {
728
+
729
+ var $ = __webpack_require__(9);
730
+ module.exports = function defineProperty(it, key, desc){
731
+ return $.setDesc(it, key, desc);
732
+ };
733
+
734
+ /***/ }),
735
+ /* 9 */
736
+ /***/ (function(module, exports) {
737
+
738
+ var $Object = Object;
739
+ module.exports = {
740
+ create: $Object.create,
741
+ getProto: $Object.getPrototypeOf,
742
+ isEnum: {}.propertyIsEnumerable,
743
+ getDesc: $Object.getOwnPropertyDescriptor,
744
+ setDesc: $Object.defineProperty,
745
+ setDescs: $Object.defineProperties,
746
+ getKeys: $Object.keys,
747
+ getNames: $Object.getOwnPropertyNames,
748
+ getSymbols: $Object.getOwnPropertySymbols,
749
+ each: [].forEach
750
+ };
751
+
752
+ /***/ }),
753
+ /* 10 */
697
754
  /***/ (function(module, exports) {
698
755
 
699
756
  // Build out our basic SafeString type
@@ -712,7 +769,7 @@ return /******/ (function(modules) { // webpackBootstrap
712
769
  module.exports = exports['default'];
713
770
 
714
771
  /***/ }),
715
- /* 8 */
772
+ /* 11 */
716
773
  /***/ (function(module, exports, __webpack_require__) {
717
774
 
718
775
  'use strict';
@@ -948,7 +1005,7 @@ return /******/ (function(modules) { // webpackBootstrap
948
1005
  }
949
1006
 
950
1007
  /***/ }),
951
- /* 9 */
1008
+ /* 12 */
952
1009
  /***/ (function(module, exports) {
953
1010
 
954
1011
  /* WEBPACK VAR INJECTION */(function(global) {/*global window */
@@ -972,7 +1029,7 @@ return /******/ (function(modules) { // webpackBootstrap
972
1029
  /* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }())))
973
1030
 
974
1031
  /***/ }),
975
- /* 10 */
1032
+ /* 13 */
976
1033
  /***/ (function(module, exports) {
977
1034
 
978
1035
  'use strict';
@@ -1130,7 +1187,7 @@ return /******/ (function(modules) { // webpackBootstrap
1130
1187
  module.exports = exports['default'];
1131
1188
 
1132
1189
  /***/ }),
1133
- /* 11 */
1190
+ /* 14 */
1134
1191
  /***/ (function(module, exports, __webpack_require__) {
1135
1192
 
1136
1193
  'use strict';
@@ -1142,19 +1199,19 @@ return /******/ (function(modules) { // webpackBootstrap
1142
1199
  exports.__esModule = true;
1143
1200
  exports.parse = parse;
1144
1201
 
1145
- var _parser = __webpack_require__(12);
1202
+ var _parser = __webpack_require__(15);
1146
1203
 
1147
1204
  var _parser2 = _interopRequireDefault(_parser);
1148
1205
 
1149
- var _ast = __webpack_require__(10);
1206
+ var _ast = __webpack_require__(13);
1150
1207
 
1151
1208
  var _ast2 = _interopRequireDefault(_ast);
1152
1209
 
1153
- var _whitespaceControl = __webpack_require__(13);
1210
+ var _whitespaceControl = __webpack_require__(16);
1154
1211
 
1155
1212
  var _whitespaceControl2 = _interopRequireDefault(_whitespaceControl);
1156
1213
 
1157
- var _helpers = __webpack_require__(15);
1214
+ var _helpers = __webpack_require__(18);
1158
1215
 
1159
1216
  var Helpers = _interopRequireWildcard(_helpers);
1160
1217
 
@@ -1183,7 +1240,7 @@ return /******/ (function(modules) { // webpackBootstrap
1183
1240
  }
1184
1241
 
1185
1242
  /***/ }),
1186
- /* 12 */
1243
+ /* 15 */
1187
1244
  /***/ (function(module, exports) {
1188
1245
 
1189
1246
  /* istanbul ignore next */
@@ -1862,7 +1919,7 @@ return /******/ (function(modules) { // webpackBootstrap
1862
1919
  module.exports = exports["default"];
1863
1920
 
1864
1921
  /***/ }),
1865
- /* 13 */
1922
+ /* 16 */
1866
1923
  /***/ (function(module, exports, __webpack_require__) {
1867
1924
 
1868
1925
  'use strict';
@@ -1871,7 +1928,7 @@ return /******/ (function(modules) { // webpackBootstrap
1871
1928
 
1872
1929
  exports.__esModule = true;
1873
1930
 
1874
- var _visitor = __webpack_require__(14);
1931
+ var _visitor = __webpack_require__(17);
1875
1932
 
1876
1933
  var _visitor2 = _interopRequireDefault(_visitor);
1877
1934
 
@@ -2079,7 +2136,7 @@ return /******/ (function(modules) { // webpackBootstrap
2079
2136
  module.exports = exports['default'];
2080
2137
 
2081
2138
  /***/ }),
2082
- /* 14 */
2139
+ /* 17 */
2083
2140
  /***/ (function(module, exports, __webpack_require__) {
2084
2141
 
2085
2142
  'use strict';
@@ -2092,7 +2149,7 @@ return /******/ (function(modules) { // webpackBootstrap
2092
2149
 
2093
2150
  var _exception2 = _interopRequireDefault(_exception);
2094
2151
 
2095
- var _ast = __webpack_require__(10);
2152
+ var _ast = __webpack_require__(13);
2096
2153
 
2097
2154
  var _ast2 = _interopRequireDefault(_ast);
2098
2155
 
@@ -2215,7 +2272,7 @@ return /******/ (function(modules) { // webpackBootstrap
2215
2272
  module.exports = exports['default'];
2216
2273
 
2217
2274
  /***/ }),
2218
- /* 15 */
2275
+ /* 18 */
2219
2276
  /***/ (function(module, exports, __webpack_require__) {
2220
2277
 
2221
2278
  'use strict';
@@ -2351,7 +2408,7 @@ return /******/ (function(modules) { // webpackBootstrap
2351
2408
  }
2352
2409
 
2353
2410
  /***/ }),
2354
- /* 16 */
2411
+ /* 19 */
2355
2412
  /***/ (function(module, exports, __webpack_require__) {
2356
2413
 
2357
2414
  'use strict';
@@ -2369,7 +2426,7 @@ return /******/ (function(modules) { // webpackBootstrap
2369
2426
 
2370
2427
  var _utils = __webpack_require__(5);
2371
2428
 
2372
- var _ast = __webpack_require__(10);
2429
+ var _ast = __webpack_require__(13);
2373
2430
 
2374
2431
  var _ast2 = _interopRequireDefault(_ast);
2375
2432
 
@@ -2883,7 +2940,7 @@ return /******/ (function(modules) { // webpackBootstrap
2883
2940
  }
2884
2941
 
2885
2942
  /***/ }),
2886
- /* 17 */
2943
+ /* 20 */
2887
2944
  /***/ (function(module, exports, __webpack_require__) {
2888
2945
 
2889
2946
  'use strict';
@@ -2900,7 +2957,7 @@ return /******/ (function(modules) { // webpackBootstrap
2900
2957
 
2901
2958
  var _utils = __webpack_require__(5);
2902
2959
 
2903
- var _codeGen = __webpack_require__(18);
2960
+ var _codeGen = __webpack_require__(21);
2904
2961
 
2905
2962
  var _codeGen2 = _interopRequireDefault(_codeGen);
2906
2963
 
@@ -2914,6 +2971,9 @@ return /******/ (function(modules) { // webpackBootstrap
2914
2971
  // PUBLIC API: You can override these methods in a subclass to provide
2915
2972
  // alternative compiled forms for name lookup and buffering semantics
2916
2973
  nameLookup: function nameLookup(parent, name /* , type*/) {
2974
+ if (name === 'constructor') {
2975
+ return ['(', parent, '.propertyIsEnumerable(\'constructor\') ? ', parent, '.constructor : undefined', ')'];
2976
+ }
2917
2977
  if (JavaScriptCompiler.isValidJavaScriptVariableName(name)) {
2918
2978
  return [parent, '.', name];
2919
2979
  } else {
@@ -3950,7 +4010,7 @@ return /******/ (function(modules) { // webpackBootstrap
3950
4010
  module.exports = exports['default'];
3951
4011
 
3952
4012
  /***/ }),
3953
- /* 18 */
4013
+ /* 21 */
3954
4014
  /***/ (function(module, exports, __webpack_require__) {
3955
4015
 
3956
4016
  /*global define */
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
 
3
- handlebars v3.0.5
3
+ handlebars v3.0.7
4
4
 
5
5
  Copyright (C) 2011-2014 by Yehuda Katz
6
6
 
@@ -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__(6);
98
+ var _handlebarsSafeString = __webpack_require__(9);
99
99
 
100
100
  var _handlebarsSafeString2 = _interopRequireDefault(_handlebarsSafeString);
101
101
 
@@ -107,11 +107,11 @@ return /******/ (function(modules) { // webpackBootstrap
107
107
 
108
108
  var Utils = _interopRequireWildcard(_handlebarsUtils);
109
109
 
110
- var _handlebarsRuntime = __webpack_require__(7);
110
+ var _handlebarsRuntime = __webpack_require__(10);
111
111
 
112
112
  var runtime = _interopRequireWildcard(_handlebarsRuntime);
113
113
 
114
- var _handlebarsNoConflict = __webpack_require__(8);
114
+ var _handlebarsNoConflict = __webpack_require__(11);
115
115
 
116
116
  var _handlebarsNoConflict2 = _interopRequireDefault(_handlebarsNoConflict);
117
117
 
@@ -426,7 +426,13 @@ return /******/ (function(modules) { // webpackBootstrap
426
426
  });
427
427
 
428
428
  instance.registerHelper('lookup', function (obj, field) {
429
- return obj && obj[field];
429
+ if (!obj) {
430
+ return obj;
431
+ }
432
+ if (field === 'constructor' && !obj.propertyIsEnumerable(field)) {
433
+ return undefined;
434
+ }
435
+ return obj[field];
430
436
  });
431
437
  }
432
438
 
@@ -479,12 +485,13 @@ return /******/ (function(modules) { // webpackBootstrap
479
485
  '>': '&gt;',
480
486
  '"': '&quot;',
481
487
  "'": '&#x27;',
482
- '`': '&#x60;',
483
- '=': '&#x3D;'
488
+ '`': '&#x60;'
489
+ // The "equals-sign" is intentionally excluded from this list
490
+ // due to semantic-versioning issues (see #1489)
484
491
  };
485
492
 
486
- var badChars = /[&<>"'`=]/g,
487
- possible = /[&<>"'`=]/;
493
+ var badChars = /[&<>"'`]/g,
494
+ possible = /[&<>"'`]/;
488
495
 
489
496
  function escapeChar(chr) {
490
497
  return escape[chr];
@@ -583,10 +590,12 @@ return /******/ (function(modules) { // webpackBootstrap
583
590
 
584
591
  /***/ }),
585
592
  /* 5 */
586
- /***/ (function(module, exports) {
593
+ /***/ (function(module, exports, __webpack_require__) {
587
594
 
588
595
  'use strict';
589
596
 
597
+ var _Object$defineProperty = __webpack_require__(6)['default'];
598
+
590
599
  exports.__esModule = true;
591
600
 
592
601
  var errorProps = ['description', 'fileName', 'lineNumber', 'message', 'name', 'number', 'stack'];
@@ -609,13 +618,28 @@ return /******/ (function(modules) { // webpackBootstrap
609
618
  this[errorProps[idx]] = tmp[errorProps[idx]];
610
619
  }
611
620
 
621
+ /* istanbul ignore else */
612
622
  if (Error.captureStackTrace) {
613
623
  Error.captureStackTrace(this, Exception);
614
624
  }
615
625
 
616
- if (loc) {
617
- this.lineNumber = line;
618
- this.column = column;
626
+ try {
627
+ if (loc) {
628
+ this.lineNumber = line;
629
+
630
+ // Work around issue under safari where we can't directly set the column value
631
+ /* istanbul ignore next */
632
+ if (_Object$defineProperty) {
633
+ Object.defineProperty(this, 'column', {
634
+ value: column,
635
+ enumerable: true
636
+ });
637
+ } else {
638
+ this.column = column;
639
+ }
640
+ }
641
+ } catch (nop) {
642
+ /* Ignore if the browser is very particular */
619
643
  }
620
644
  }
621
645
 
@@ -626,6 +650,39 @@ return /******/ (function(modules) { // webpackBootstrap
626
650
 
627
651
  /***/ }),
628
652
  /* 6 */
653
+ /***/ (function(module, exports, __webpack_require__) {
654
+
655
+ module.exports = { "default": __webpack_require__(7), __esModule: true };
656
+
657
+ /***/ }),
658
+ /* 7 */
659
+ /***/ (function(module, exports, __webpack_require__) {
660
+
661
+ var $ = __webpack_require__(8);
662
+ module.exports = function defineProperty(it, key, desc){
663
+ return $.setDesc(it, key, desc);
664
+ };
665
+
666
+ /***/ }),
667
+ /* 8 */
668
+ /***/ (function(module, exports) {
669
+
670
+ var $Object = Object;
671
+ module.exports = {
672
+ create: $Object.create,
673
+ getProto: $Object.getPrototypeOf,
674
+ isEnum: {}.propertyIsEnumerable,
675
+ getDesc: $Object.getOwnPropertyDescriptor,
676
+ setDesc: $Object.defineProperty,
677
+ setDescs: $Object.defineProperties,
678
+ getKeys: $Object.keys,
679
+ getNames: $Object.getOwnPropertyNames,
680
+ getSymbols: $Object.getOwnPropertySymbols,
681
+ each: [].forEach
682
+ };
683
+
684
+ /***/ }),
685
+ /* 9 */
629
686
  /***/ (function(module, exports) {
630
687
 
631
688
  // Build out our basic SafeString type
@@ -644,7 +701,7 @@ return /******/ (function(modules) { // webpackBootstrap
644
701
  module.exports = exports['default'];
645
702
 
646
703
  /***/ }),
647
- /* 7 */
704
+ /* 10 */
648
705
  /***/ (function(module, exports, __webpack_require__) {
649
706
 
650
707
  'use strict';
@@ -880,7 +937,7 @@ return /******/ (function(modules) { // webpackBootstrap
880
937
  }
881
938
 
882
939
  /***/ }),
883
- /* 8 */
940
+ /* 11 */
884
941
  /***/ (function(module, exports) {
885
942
 
886
943
  /* WEBPACK VAR INJECTION */(function(global) {/*global window */
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: 3.0.5
4
+ version: 3.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yehuda Katz
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-12-15 00:00:00.000000000 Z
11
+ date: 2019-06-30 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Handlebars.js source code wrapper for (pre)compilation gems.
14
14
  email:
@@ -40,7 +40,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
40
40
  version: '0'
41
41
  requirements: []
42
42
  rubyforge_project:
43
- rubygems_version: 2.5.2.1
43
+ rubygems_version: 2.7.6
44
44
  signing_key:
45
45
  specification_version: 4
46
46
  summary: Handlebars.js source code wrapper