@adobe/spacecat-shared-utils 1.57.0 → 1.57.1
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/CHANGELOG.md +7 -0
- package/package.json +7 -1
- package/src/browser.js +13 -0
- package/src/index.d.ts +3 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
# [@adobe/spacecat-shared-utils-v1.57.1](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-utils-v1.57.0...@adobe/spacecat-shared-utils-v1.57.1) (2025-10-09)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* adds browser export ([#1012](https://github.com/adobe/spacecat-shared/issues/1012)) ([f167eff](https://github.com/adobe/spacecat-shared/commit/f167effd3713077c9a3829ca589324e136740cee))
|
|
7
|
+
|
|
1
8
|
# [@adobe/spacecat-shared-utils-v1.57.0](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-utils-v1.56.0...@adobe/spacecat-shared-utils-v1.57.0) (2025-10-09)
|
|
2
9
|
|
|
3
10
|
|
package/package.json
CHANGED
|
@@ -1,8 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adobe/spacecat-shared-utils",
|
|
3
|
-
"version": "1.57.
|
|
3
|
+
"version": "1.57.1",
|
|
4
4
|
"description": "Shared modules of the Spacecat Services - utils",
|
|
5
5
|
"type": "module",
|
|
6
|
+
"exports": {
|
|
7
|
+
".": {
|
|
8
|
+
"browser": "./src/browser.js",
|
|
9
|
+
"default": "./src/index.js"
|
|
10
|
+
}
|
|
11
|
+
},
|
|
6
12
|
"engines": {
|
|
7
13
|
"node": ">=22.0.0 <23.0.0",
|
|
8
14
|
"npm": ">=10.9.0 <12.0.0"
|
package/src/browser.js
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2023 Adobe. All rights reserved.
|
|
3
|
+
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
5
|
+
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
6
|
+
*
|
|
7
|
+
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
8
|
+
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
9
|
+
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
10
|
+
* governing permissions and limitations under the License.
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
export { prettifyLogForwardingConfig } from './cdn-helpers.js';
|
package/src/index.d.ts
CHANGED
|
@@ -168,7 +168,7 @@ declare function replacePlaceholders(content: string, placeholders: object): str
|
|
|
168
168
|
* @returns {Promise<string|null>} - A promise that resolves to a string with the prompt content.
|
|
169
169
|
*/
|
|
170
170
|
declare function getStaticContent(placeholders: object, filename: string):
|
|
171
|
-
|
|
171
|
+
Promise<string | null>;
|
|
172
172
|
|
|
173
173
|
/**
|
|
174
174
|
* Reads the content of a prompt file asynchronously and replaces any placeholders
|
|
@@ -263,5 +263,7 @@ export const SPACECAT_USER_AGENT: string;
|
|
|
263
263
|
|
|
264
264
|
export function retrievePageAuthentication(site: object, context: object): Promise<string>;
|
|
265
265
|
|
|
266
|
+
export function prettifyLogForwardingConfig(payload: object): object;
|
|
267
|
+
|
|
266
268
|
export * as llmoConfig from './llmo-config.js';
|
|
267
269
|
export * as schemas from './schemas.js';
|