musora-content-services 1.7.2 → 1.7.5

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.
@@ -0,0 +1,17 @@
1
+ {
2
+ "permissions": {
3
+ "allow": [
4
+ "Bash(git show:*)",
5
+ "Bash(npm test:*)",
6
+ "Bash(done)",
7
+ "Bash(for line in 82 108 161 187 215 247 273 299 332 350 372)",
8
+ "Bash(do echo \"Line $line:\")",
9
+ "Bash(git add:*)",
10
+ "Bash(git commit:*)",
11
+ "Bash(git checkout:*)",
12
+ "Bash(git diff:*)"
13
+ ],
14
+ "deny": [],
15
+ "ask": []
16
+ }
17
+ }
File without changes
File without changes
package/.prettierignore CHANGED
File without changes
package/.prettierrc CHANGED
File without changes
package/CHANGELOG.md CHANGED
@@ -2,6 +2,12 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ### [1.7.5](https://github.com/railroadmedia/musora-content-services/compare/v1.7.4...v1.7.5) (2025-12-10)
6
+
7
+ ### [1.7.4](https://github.com/railroadmedia/musora-content-services/compare/v1.7.3...v1.7.4) (2025-12-10)
8
+
9
+ ### [1.7.3](https://github.com/railroadmedia/musora-content-services/compare/v1.7.2...v1.7.3) (2025-12-10)
10
+
5
11
  ### [1.7.2](https://github.com/railroadmedia/musora-content-services/compare/v1.7.1...v1.7.2) (2025-12-04)
6
12
 
7
13
  ### [1.7.1](https://github.com/railroadmedia/musora-content-services/compare/v1.7.0...v1.7.1) (2025-12-04)
package/jest.config.js CHANGED
File without changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "musora-content-services",
3
- "version": "1.7.2",
3
+ "version": "1.7.5",
4
4
  "description": "A package for Musoras content services ",
5
5
  "main": "src/index.js",
6
6
  "type": "module",
@@ -137,5 +137,5 @@ export function applyCloudflareWrapper(url, options) {
137
137
 
138
138
  const optionsString = cloudflareOptions.length > 0 ? cloudflareOptions.join(',') : ''
139
139
 
140
- return `https://www.musora-cdn.com/cdn-cgi/image/${optionsString}/${url}`
140
+ return `https://www.musora.com/cdn-cgi/image/${optionsString}/${url}`
141
141
  }
@@ -14,7 +14,7 @@
14
14
  *
15
15
  * @example
16
16
  * // Check a Sanity URL inside a Cloudflare URL
17
- * verifyImageSRC('https://www.musora-cdn.com/cdn-cgi/image/width=500,quality=95/https://cdn.sanity.io/images/4032r8py/staging/504c4e3393170f937a579de6f3c75c457b0c9e65-640x360.jpg');
17
+ * verifyImageSRC('https://www.musora.com/cdn-cgi/image/width=500,quality=95/https://cdn.sanity.io/images/4032r8py/staging/504c4e3393170f937a579de6f3c75c457b0c9e65-640x360.jpg');
18
18
  */
19
19
  export function verifyImageSRC(src) {
20
20
  // Exit early if the URL is empty
File without changes
@@ -30,7 +30,7 @@ describe('imageSRCBuilder', function () {
30
30
  height: height,
31
31
  })
32
32
 
33
- const expected = `https://www.musora-cdn.com/cdn-cgi/image/width=${width},height=${height},quality=${quality}/${url}`
33
+ const expected = `https://www.musora.com/cdn-cgi/image/width=${width},height=${height},quality=${quality}/${url}`
34
34
 
35
35
  expect(resultingURL).toStrictEqual(expected)
36
36
  })
@@ -81,7 +81,7 @@ describe('Image URL Verification', () => {
81
81
  test('should extract and validate Sanity URL from Cloudflare wrapper', () => {
82
82
  // Arrange
83
83
  const url =
84
- 'https://www.musora-cdn.com/cdn-cgi/image/width=500,quality=95/https://cdn.sanity.io/images/4032r8py/staging/504c4e3393170f937a579de6f3c75c457b0c9e65-640x360.jpg'
84
+ 'https://www.musora.com/cdn-cgi/image/width=500,quality=95/https://cdn.sanity.io/images/4032r8py/staging/504c4e3393170f937a579de6f3c75c457b0c9e65-640x360.jpg'
85
85
 
86
86
  // Act
87
87
  verifyImageSRC(url)
@@ -96,7 +96,7 @@ describe('Image URL Verification', () => {
96
96
  test('should not warn for Cloudflare wrapped Sanity URL with parameters', () => {
97
97
  // Arrange
98
98
  const url =
99
- 'https://www.musora-cdn.com/cdn-cgi/image/width=500,quality=95/https://cdn.sanity.io/images/4032r8py/staging/504c4e3393170f937a579de6f3c75c457b0c9e65-640x360.jpg?w=500&q=95'
99
+ 'https://www.musora.com/cdn-cgi/image/width=500,quality=95/https://cdn.sanity.io/images/4032r8py/staging/504c4e3393170f937a579de6f3c75c457b0c9e65-640x360.jpg?w=500&q=95'
100
100
 
101
101
  // Act
102
102
  verifyImageSRC(url)
@@ -125,7 +125,7 @@ describe('Image URL Verification', () => {
125
125
  test('should extract Sanity URL from Cloudflare wrapper', () => {
126
126
  // Arrange
127
127
  const wrappedUrl =
128
- 'https://www.musora-cdn.com/cdn-cgi/image/width=500,quality=95/https://cdn.sanity.io/images/123/production/image.jpg'
128
+ 'https://www.musora.com/cdn-cgi/image/width=500,quality=95/https://cdn.sanity.io/images/123/production/image.jpg'
129
129
  const expectedExtracted = 'https://cdn.sanity.io/images/123/production/image.jpg'
130
130
 
131
131
  // Act
@@ -148,7 +148,7 @@ describe('Image URL Verification', () => {
148
148
 
149
149
  test('should handle malformed Cloudflare URLs gracefully', () => {
150
150
  // Arrange
151
- const malformedUrl = 'https://www.musora-cdn.com/cdn-cgi/image/width=500'
151
+ const malformedUrl = 'https://www.musora.com/cdn-cgi/image/width=500'
152
152
 
153
153
  // Act
154
154
  const result = extractSanityUrl(malformedUrl)
File without changes
package/test/log.js CHANGED
File without changes