@dosgato/templating 0.0.10 → 0.0.14
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.
- package/dist/component.js +3 -4
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/package.json +1 -1
package/dist/component.js
CHANGED
|
@@ -83,9 +83,8 @@ class Component extends provider_1.ResourceProvider {
|
|
|
83
83
|
* continue. You generally do not need to use this function, just throw when appropriate.
|
|
84
84
|
*/
|
|
85
85
|
logError(e) {
|
|
86
|
-
var _a;
|
|
87
86
|
this.hadError = true;
|
|
88
|
-
|
|
87
|
+
this.passError(e, this.path);
|
|
89
88
|
}
|
|
90
89
|
// helper function for recursively passing the error up until it reaches the page
|
|
91
90
|
passError(e, path) {
|
|
@@ -102,13 +101,13 @@ class Component extends provider_1.ResourceProvider {
|
|
|
102
101
|
* need any async data to make this determination, be sure to fetch it during the fetch phase.
|
|
103
102
|
*/
|
|
104
103
|
cssBlocks() {
|
|
105
|
-
return this.constructor.cssBlocks
|
|
104
|
+
return Array.from(this.constructor.cssBlocks.keys());
|
|
106
105
|
}
|
|
107
106
|
/**
|
|
108
107
|
* Same as cssBlocks() but for javascript.
|
|
109
108
|
*/
|
|
110
109
|
jsBlocks() {
|
|
111
|
-
return this.constructor.jsBlocks
|
|
110
|
+
return Array.from(this.constructor.jsBlocks.keys());
|
|
112
111
|
}
|
|
113
112
|
}
|
|
114
113
|
exports.Component = Component;
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED