@rimelight/config 0.0.14 → 0.0.16
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/astro/index.js +7 -3
- package/astro/index.ts +7 -3
- package/package.json +8 -8
package/astro/index.js
CHANGED
|
@@ -206,7 +206,11 @@ function rimelightIntegration(options, imageDomains, domain, site) {
|
|
|
206
206
|
|
|
207
207
|
if (options.security) {
|
|
208
208
|
const secMod = await import("@rimelight/security")
|
|
209
|
-
const
|
|
209
|
+
const secFn =
|
|
210
|
+
secMod.rimelightSecurity ||
|
|
211
|
+
secMod.default?.rimelightSecurity ||
|
|
212
|
+
secMod.default ||
|
|
213
|
+
secMod
|
|
210
214
|
const secOpts = typeof options.security === "object" ? options.security : {}
|
|
211
215
|
const defaultImgSrc = imageDomains.map((d) =>
|
|
212
216
|
d.startsWith("http://") || d.startsWith("https://") ? d : `https://${d}`
|
|
@@ -215,8 +219,8 @@ function rimelightIntegration(options, imageDomains, domain, site) {
|
|
|
215
219
|
? Array.from(new Set([...defaultImgSrc, ...secOpts.imgSrc]))
|
|
216
220
|
: defaultImgSrc
|
|
217
221
|
|
|
218
|
-
|
|
219
|
-
|
|
222
|
+
integrations.push(
|
|
223
|
+
secFn({
|
|
220
224
|
domain: secOpts.domain || domain,
|
|
221
225
|
imgSrc,
|
|
222
226
|
...secOpts
|
package/astro/index.ts
CHANGED
|
@@ -309,7 +309,11 @@ function rimelightIntegration(
|
|
|
309
309
|
|
|
310
310
|
if (options.security) {
|
|
311
311
|
const secMod = await import("@rimelight/security")
|
|
312
|
-
const
|
|
312
|
+
const secFn =
|
|
313
|
+
(secMod as any).rimelightSecurity ||
|
|
314
|
+
(secMod as any).default?.rimelightSecurity ||
|
|
315
|
+
(secMod as any).default ||
|
|
316
|
+
secMod
|
|
313
317
|
const secOpts = typeof options.security === "object" ? options.security : {}
|
|
314
318
|
const defaultImgSrc = imageDomains.map((d: string) =>
|
|
315
319
|
d.startsWith("http://") || d.startsWith("https://") ? d : `https://${d}`
|
|
@@ -318,8 +322,8 @@ function rimelightIntegration(
|
|
|
318
322
|
? Array.from(new Set([...defaultImgSrc, ...secOpts.imgSrc]))
|
|
319
323
|
: defaultImgSrc
|
|
320
324
|
|
|
321
|
-
|
|
322
|
-
|
|
325
|
+
integrations.push(
|
|
326
|
+
secFn({
|
|
323
327
|
domain: secOpts.domain || domain,
|
|
324
328
|
imgSrc,
|
|
325
329
|
...secOpts
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rimelight/config",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.16",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Rimelight Entertainment's shared configuration package",
|
|
6
6
|
"homepage": "https://rimelight.com/docs",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"access": "public"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
|
-
"@astrojs/cloudflare": "14.3.
|
|
49
|
+
"@astrojs/cloudflare": "14.3.2",
|
|
50
50
|
"astro": "7.3.3",
|
|
51
51
|
"drizzle-kit": "0.31.10",
|
|
52
52
|
"typescript": "6.0.3",
|
|
@@ -55,12 +55,12 @@
|
|
|
55
55
|
"peerDependencies": {
|
|
56
56
|
"@astrojs/cloudflare": ">=14.0.0",
|
|
57
57
|
"@astrojs/solid-js": ">=7.0.0",
|
|
58
|
-
"@rimelight/auth": "0.0.
|
|
59
|
-
"@rimelight/cms": "0.0.
|
|
60
|
-
"@rimelight/i18n": "0.0.
|
|
61
|
-
"@rimelight/security": "0.0.
|
|
62
|
-
"@rimelight/seo": "0.0.
|
|
63
|
-
"@rimelight/ui": "0.0.
|
|
58
|
+
"@rimelight/auth": "0.0.10",
|
|
59
|
+
"@rimelight/cms": "0.0.17",
|
|
60
|
+
"@rimelight/i18n": "0.0.17",
|
|
61
|
+
"@rimelight/security": "0.0.20",
|
|
62
|
+
"@rimelight/seo": "0.0.13",
|
|
63
|
+
"@rimelight/ui": "0.0.57",
|
|
64
64
|
"astro": ">=7.0.0",
|
|
65
65
|
"drizzle-kit": ">=0.30.0"
|
|
66
66
|
},
|