@http-forge/core 0.2.11 → 0.2.12
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/README.md +12 -4
- package/dist/index.d.ts +1 -1
- package/dist/index.js +74 -74
- package/dist/index.mjs +63 -63
- package/dist/infrastructure/script/script-executor.d.ts +5 -2
- package/package.json +1 -1
|
@@ -37,12 +37,15 @@ export declare class ScriptExecutor implements IScriptExecutor {
|
|
|
37
37
|
* Used by RequestScriptSession for pre-request and test scripts
|
|
38
38
|
*/
|
|
39
39
|
private createCommonContext;
|
|
40
|
+
/** Prefix marking a JSON-serialized non-string value */
|
|
41
|
+
private static readonly JSON_TYPE_MARKER;
|
|
40
42
|
/**
|
|
41
|
-
* Serialize a value for storage. Non-string values are JSON-stringified
|
|
43
|
+
* Serialize a value for storage. Non-string values are JSON-stringified with a type marker.
|
|
42
44
|
*/
|
|
43
45
|
private serializeValue;
|
|
44
46
|
/**
|
|
45
|
-
* Deserialize a stored value.
|
|
47
|
+
* Deserialize a stored value. Values with the type marker are JSON-parsed back to native types.
|
|
48
|
+
* Values without the marker (plain strings) are returned as-is.
|
|
46
49
|
*/
|
|
47
50
|
private deserializeValue;
|
|
48
51
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@http-forge/core",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.12",
|
|
4
4
|
"description": "Headless HTTP testing engine with Postman collection support, dynamic variables, and script-based automation.",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.mjs",
|