@contello/astro 1.4.1 → 1.4.2
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/index.cjs +6 -6
- package/dist/index.js +6 -6
- package/package.json +5 -5
package/dist/index.cjs
CHANGED
|
@@ -150,20 +150,20 @@ var Contello = class {
|
|
|
150
150
|
}
|
|
151
151
|
// --- pre-wired collections ---
|
|
152
152
|
get assets() {
|
|
153
|
-
if (!this.
|
|
154
|
-
throw new Error("@contello/astro: .assets accessed before init()
|
|
153
|
+
if (!this._assets) {
|
|
154
|
+
throw new Error("@contello/astro: .assets accessed before init()");
|
|
155
155
|
}
|
|
156
156
|
return this._assets;
|
|
157
157
|
}
|
|
158
158
|
get routes() {
|
|
159
|
-
if (!this.
|
|
160
|
-
throw new Error("@contello/astro: .routes accessed before init()
|
|
159
|
+
if (!this._routes) {
|
|
160
|
+
throw new Error("@contello/astro: .routes accessed before init()");
|
|
161
161
|
}
|
|
162
162
|
return this._routes;
|
|
163
163
|
}
|
|
164
164
|
get i18nMessages() {
|
|
165
|
-
if (!this.
|
|
166
|
-
throw new Error("@contello/astro: .i18nMessages accessed before init()
|
|
165
|
+
if (!this._i18nMessages) {
|
|
166
|
+
throw new Error("@contello/astro: .i18nMessages accessed before init() with i18n config");
|
|
167
167
|
}
|
|
168
168
|
return this._i18nMessages;
|
|
169
169
|
}
|
package/dist/index.js
CHANGED
|
@@ -113,20 +113,20 @@ var Contello = class {
|
|
|
113
113
|
}
|
|
114
114
|
// --- pre-wired collections ---
|
|
115
115
|
get assets() {
|
|
116
|
-
if (!this.
|
|
117
|
-
throw new Error("@contello/astro: .assets accessed before init()
|
|
116
|
+
if (!this._assets) {
|
|
117
|
+
throw new Error("@contello/astro: .assets accessed before init()");
|
|
118
118
|
}
|
|
119
119
|
return this._assets;
|
|
120
120
|
}
|
|
121
121
|
get routes() {
|
|
122
|
-
if (!this.
|
|
123
|
-
throw new Error("@contello/astro: .routes accessed before init()
|
|
122
|
+
if (!this._routes) {
|
|
123
|
+
throw new Error("@contello/astro: .routes accessed before init()");
|
|
124
124
|
}
|
|
125
125
|
return this._routes;
|
|
126
126
|
}
|
|
127
127
|
get i18nMessages() {
|
|
128
|
-
if (!this.
|
|
129
|
-
throw new Error("@contello/astro: .i18nMessages accessed before init()
|
|
128
|
+
if (!this._i18nMessages) {
|
|
129
|
+
throw new Error("@contello/astro: .i18nMessages accessed before init() with i18n config");
|
|
130
130
|
}
|
|
131
131
|
return this._i18nMessages;
|
|
132
132
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@contello/astro",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.2",
|
|
4
4
|
"description": "Astro integration for Contello CMS — route middleware and i18n bridge",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
"@astroscope/i18n": ">=0.3.0",
|
|
16
16
|
"astro": "^6.0.0",
|
|
17
17
|
"@contello/client": "^1.1.1",
|
|
18
|
-
"@contello/
|
|
19
|
-
"@contello/
|
|
18
|
+
"@contello/store": "^1.5.1",
|
|
19
|
+
"@contello/media": "^1.0.0"
|
|
20
20
|
},
|
|
21
21
|
"peerDependenciesMeta": {
|
|
22
22
|
"@astroscope/i18n": {
|
|
@@ -27,9 +27,9 @@
|
|
|
27
27
|
"@astroscope/excludes": "^0.3.2",
|
|
28
28
|
"@astroscope/i18n": "^0.4.5",
|
|
29
29
|
"astro": "^6.1.8",
|
|
30
|
-
"@contello/
|
|
30
|
+
"@contello/client": "^1.1.1",
|
|
31
31
|
"@contello/store": "^1.5.1",
|
|
32
|
-
"@contello/
|
|
32
|
+
"@contello/media": "^1.0.0"
|
|
33
33
|
},
|
|
34
34
|
"files": [
|
|
35
35
|
"dist"
|