@scalar/pre-post-request-scripts 0.4.1 → 0.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/CHANGELOG.md +2 -0
- package/dist/consts/example-scripts.d.ts.map +1 -1
- package/dist/consts/example-scripts.js +46 -0
- package/dist/consts/example-scripts.js.map +1 -1
- package/dist/helpers/get-script.d.ts +8 -0
- package/dist/helpers/get-script.d.ts.map +1 -0
- package/dist/helpers/get-script.js +14 -0
- package/dist/helpers/get-script.js.map +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -1
- package/dist/plugins/request-scripts/request-scripts-plugin.d.ts.map +1 -1
- package/dist/plugins/request-scripts/request-scripts-plugin.js +1 -3
- package/dist/plugins/request-scripts/request-scripts-plugin.js.map +1 -1
- package/package.json +8 -8
package/CHANGELOG.md
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"example-scripts.d.ts","sourceRoot":"","sources":["../../src/consts/example-scripts.ts"],"names":[],"mappings":"AAAA,KAAK,aAAa,GAAG;IACnB,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,EAAE,MAAM,CAAA;IACd,YAAY,EAAE;QACZ,IAAI,CAAC,EAAE,GAAG,CAAA;QACV,MAAM,CAAC,EAAE,MAAM,CAAA;QACf,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;QAChC,IAAI,CAAC,EAAE,MAAM,MAAM,CAAA;KACpB,CAAA;CACF,CAAA;AAED,eAAO,MAAM,eAAe,EAAE,aAAa,
|
|
1
|
+
{"version":3,"file":"example-scripts.d.ts","sourceRoot":"","sources":["../../src/consts/example-scripts.ts"],"names":[],"mappings":"AAAA,KAAK,aAAa,GAAG;IACnB,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,EAAE,MAAM,CAAA;IACd,YAAY,EAAE;QACZ,IAAI,CAAC,EAAE,GAAG,CAAA;QACV,MAAM,CAAC,EAAE,MAAM,CAAA;QACf,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;QAChC,IAAI,CAAC,EAAE,MAAM,MAAM,CAAA;KACpB,CAAA;CACF,CAAA;AAED,eAAO,MAAM,eAAe,EAAE,aAAa,EA0H1C,CAAA"}
|
|
@@ -74,6 +74,52 @@ var EXAMPLE_SCRIPTS = [
|
|
|
74
74
|
status: 201,
|
|
75
75
|
body: { success: true }
|
|
76
76
|
}
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
title: "Check header value",
|
|
80
|
+
script: `pm.test("Content-Type is JSON", () => {
|
|
81
|
+
pm.expect(pm.response.headers.get('Content-Type')).to.include('application/json')
|
|
82
|
+
})`,
|
|
83
|
+
mockResponse: {
|
|
84
|
+
status: 200,
|
|
85
|
+
body: { success: true },
|
|
86
|
+
headers: { "Content-Type": "application/json" }
|
|
87
|
+
}
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
title: "Assert data types",
|
|
91
|
+
script: `pm.test("Response data types are correct", () => {
|
|
92
|
+
const data = pm.response.json()
|
|
93
|
+
pm.expect(data).to.be.an('object')
|
|
94
|
+
pm.expect(data.name).to.be.a('string')
|
|
95
|
+
pm.expect(data.age).to.be.a('number')
|
|
96
|
+
pm.expect(data.hobbies).to.be.an('array')
|
|
97
|
+
})`,
|
|
98
|
+
mockResponse: {
|
|
99
|
+
status: 200,
|
|
100
|
+
body: {
|
|
101
|
+
name: "Jane",
|
|
102
|
+
age: 23,
|
|
103
|
+
hobbies: ["reading"]
|
|
104
|
+
},
|
|
105
|
+
headers: { "Content-Type": "application/json" }
|
|
106
|
+
}
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
title: "Check object containment",
|
|
110
|
+
script: `pm.test("Response contains expected object", () => {
|
|
111
|
+
const expected = { created: true, errors: [] }
|
|
112
|
+
pm.expect(pm.response.json()).to.deep.include(expected)
|
|
113
|
+
})`,
|
|
114
|
+
mockResponse: {
|
|
115
|
+
status: 200,
|
|
116
|
+
body: {
|
|
117
|
+
created: true,
|
|
118
|
+
errors: [],
|
|
119
|
+
id: 42
|
|
120
|
+
},
|
|
121
|
+
headers: { "Content-Type": "application/json" }
|
|
122
|
+
}
|
|
77
123
|
}
|
|
78
124
|
];
|
|
79
125
|
//#endregion
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"example-scripts.js","names":[],"sources":["../../src/consts/example-scripts.ts"],"sourcesContent":["type ExampleScript = {\n title: string\n script: string\n mockResponse: {\n body?: any\n status?: number\n headers?: Record<string, string>\n text?: () => string\n }\n}\n\nexport const EXAMPLE_SCRIPTS: ExampleScript[] = [\n {\n title: 'Check the status code',\n script: `pm.test(\"Status code is 200\", () => {\n pm.response.to.have.status(200)\n})`,\n mockResponse: {\n status: 200,\n body: { success: true },\n },\n },\n // TODO: We didn't add the proper response duration yet.\n // {\n // title: 'Check response time',\n // script: `pm.test(\"Response time is acceptable\", () => {\n // pm.expect(pm.response.responseTime).to.be.below(200)\n // })`,\n // mockResponse: {\n // status: 200,\n // body: { success: true },\n // },\n // },\n {\n title: 'Check JSON response',\n script: `pm.test(\"Response is valid JSON\", () => {\n const responseData = pm.response.json()\n pm.expect(responseData).to.be.an('object')\n})`,\n mockResponse: {\n status: 200,\n body: { data: 'test' },\n headers: { 'Content-Type': 'application/json' },\n },\n },\n {\n title: 'Check response headers',\n script: `pm.test(\"Content-Type header is present\", () => {\n pm.response.to.have.header('Content-Type')\n})`,\n mockResponse: {\n status: 200,\n body: { success: true },\n headers: { 'Content-Type': 'application/json' },\n },\n },\n {\n title: 'Validate JSON schema',\n script: `pm.test(\"Response matches schema\", () => {\n const schema = {\n type: 'object',\n required: ['id', 'name'],\n properties: {\n id: { type: 'number' },\n name: { type: 'string' }\n }\n }\n pm.response.to.have.jsonSchema(schema)\n})`,\n mockResponse: {\n status: 200,\n body: { id: 1, name: 'Test Item' },\n headers: { 'Content-Type': 'application/json' },\n },\n },\n {\n title: 'Check response body',\n script: `pm.test(\"Response body contains string\", () => {\n pm.expect(pm.response.text()).to.include('success')\n})`,\n mockResponse: {\n status: 200,\n body: 'This is a successful response',\n },\n },\n {\n title: 'Successful POST request',\n script: `pm.test(\"Successful POST request\", () => {\n pm.expect(pm.response.code).to.be.oneOf([201, 202])\n})`,\n mockResponse: {\n status: 201,\n body: { success: true },\n },\n },\n]\n"],"mappings":";AAWA,IAAa,kBAAmC;CAC9C;EACE,OAAO;EACP,QAAQ;;;EAGR,cAAc;GACZ,QAAQ;GACR,MAAM,EAAE,SAAS,MAAM;GACxB;EACF;CAYD;EACE,OAAO;EACP,QAAQ;;;;EAIR,cAAc;GACZ,QAAQ;GACR,MAAM,EAAE,MAAM,QAAQ;GACtB,SAAS,EAAE,gBAAgB,oBAAoB;GAChD;EACF;CACD;EACE,OAAO;EACP,QAAQ;;;EAGR,cAAc;GACZ,QAAQ;GACR,MAAM,EAAE,SAAS,MAAM;GACvB,SAAS,EAAE,gBAAgB,oBAAoB;GAChD;EACF;CACD;EACE,OAAO;EACP,QAAQ;;;;;;;;;;;EAWR,cAAc;GACZ,QAAQ;GACR,MAAM;IAAE,IAAI;IAAG,MAAM;IAAa;GAClC,SAAS,EAAE,gBAAgB,oBAAoB;GAChD;EACF;CACD;EACE,OAAO;EACP,QAAQ;;;EAGR,cAAc;GACZ,QAAQ;GACR,MAAM;GACP;EACF;CACD;EACE,OAAO;EACP,QAAQ;;;EAGR,cAAc;GACZ,QAAQ;GACR,MAAM,EAAE,SAAS,MAAM;GACxB;EACF;CACF"}
|
|
1
|
+
{"version":3,"file":"example-scripts.js","names":[],"sources":["../../src/consts/example-scripts.ts"],"sourcesContent":["type ExampleScript = {\n title: string\n script: string\n mockResponse: {\n body?: any\n status?: number\n headers?: Record<string, string>\n text?: () => string\n }\n}\n\nexport const EXAMPLE_SCRIPTS: ExampleScript[] = [\n {\n title: 'Check the status code',\n script: `pm.test(\"Status code is 200\", () => {\n pm.response.to.have.status(200)\n})`,\n mockResponse: {\n status: 200,\n body: { success: true },\n },\n },\n // TODO: We didn't add the proper response duration yet.\n // {\n // title: 'Check response time',\n // script: `pm.test(\"Response time is acceptable\", () => {\n // pm.expect(pm.response.responseTime).to.be.below(200)\n // })`,\n // mockResponse: {\n // status: 200,\n // body: { success: true },\n // },\n // },\n {\n title: 'Check JSON response',\n script: `pm.test(\"Response is valid JSON\", () => {\n const responseData = pm.response.json()\n pm.expect(responseData).to.be.an('object')\n})`,\n mockResponse: {\n status: 200,\n body: { data: 'test' },\n headers: { 'Content-Type': 'application/json' },\n },\n },\n {\n title: 'Check response headers',\n script: `pm.test(\"Content-Type header is present\", () => {\n pm.response.to.have.header('Content-Type')\n})`,\n mockResponse: {\n status: 200,\n body: { success: true },\n headers: { 'Content-Type': 'application/json' },\n },\n },\n {\n title: 'Validate JSON schema',\n script: `pm.test(\"Response matches schema\", () => {\n const schema = {\n type: 'object',\n required: ['id', 'name'],\n properties: {\n id: { type: 'number' },\n name: { type: 'string' }\n }\n }\n pm.response.to.have.jsonSchema(schema)\n})`,\n mockResponse: {\n status: 200,\n body: { id: 1, name: 'Test Item' },\n headers: { 'Content-Type': 'application/json' },\n },\n },\n {\n title: 'Check response body',\n script: `pm.test(\"Response body contains string\", () => {\n pm.expect(pm.response.text()).to.include('success')\n})`,\n mockResponse: {\n status: 200,\n body: 'This is a successful response',\n },\n },\n {\n title: 'Successful POST request',\n script: `pm.test(\"Successful POST request\", () => {\n pm.expect(pm.response.code).to.be.oneOf([201, 202])\n})`,\n mockResponse: {\n status: 201,\n body: { success: true },\n },\n },\n {\n title: 'Check header value',\n script: `pm.test(\"Content-Type is JSON\", () => {\n pm.expect(pm.response.headers.get('Content-Type')).to.include('application/json')\n})`,\n mockResponse: {\n status: 200,\n body: { success: true },\n headers: { 'Content-Type': 'application/json' },\n },\n },\n {\n title: 'Assert data types',\n script: `pm.test(\"Response data types are correct\", () => {\n const data = pm.response.json()\n pm.expect(data).to.be.an('object')\n pm.expect(data.name).to.be.a('string')\n pm.expect(data.age).to.be.a('number')\n pm.expect(data.hobbies).to.be.an('array')\n})`,\n mockResponse: {\n status: 200,\n body: { name: 'Jane', age: 23, hobbies: ['reading'] },\n headers: { 'Content-Type': 'application/json' },\n },\n },\n {\n title: 'Check object containment',\n script: `pm.test(\"Response contains expected object\", () => {\n const expected = { created: true, errors: [] }\n pm.expect(pm.response.json()).to.deep.include(expected)\n})`,\n mockResponse: {\n status: 200,\n body: { created: true, errors: [], id: 42 },\n headers: { 'Content-Type': 'application/json' },\n },\n },\n]\n"],"mappings":";AAWA,IAAa,kBAAmC;CAC9C;EACE,OAAO;EACP,QAAQ;;;EAGR,cAAc;GACZ,QAAQ;GACR,MAAM,EAAE,SAAS,MAAM;GACxB;EACF;CAYD;EACE,OAAO;EACP,QAAQ;;;;EAIR,cAAc;GACZ,QAAQ;GACR,MAAM,EAAE,MAAM,QAAQ;GACtB,SAAS,EAAE,gBAAgB,oBAAoB;GAChD;EACF;CACD;EACE,OAAO;EACP,QAAQ;;;EAGR,cAAc;GACZ,QAAQ;GACR,MAAM,EAAE,SAAS,MAAM;GACvB,SAAS,EAAE,gBAAgB,oBAAoB;GAChD;EACF;CACD;EACE,OAAO;EACP,QAAQ;;;;;;;;;;;EAWR,cAAc;GACZ,QAAQ;GACR,MAAM;IAAE,IAAI;IAAG,MAAM;IAAa;GAClC,SAAS,EAAE,gBAAgB,oBAAoB;GAChD;EACF;CACD;EACE,OAAO;EACP,QAAQ;;;EAGR,cAAc;GACZ,QAAQ;GACR,MAAM;GACP;EACF;CACD;EACE,OAAO;EACP,QAAQ;;;EAGR,cAAc;GACZ,QAAQ;GACR,MAAM,EAAE,SAAS,MAAM;GACxB;EACF;CACD;EACE,OAAO;EACP,QAAQ;;;EAGR,cAAc;GACZ,QAAQ;GACR,MAAM,EAAE,SAAS,MAAM;GACvB,SAAS,EAAE,gBAAgB,oBAAoB;GAChD;EACF;CACD;EACE,OAAO;EACP,QAAQ;;;;;;;EAOR,cAAc;GACZ,QAAQ;GACR,MAAM;IAAE,MAAM;IAAQ,KAAK;IAAI,SAAS,CAAC,UAAU;IAAE;GACrD,SAAS,EAAE,gBAAgB,oBAAoB;GAChD;EACF;CACD;EACE,OAAO;EACP,QAAQ;;;;EAIR,cAAc;GACZ,QAAQ;GACR,MAAM;IAAE,SAAS;IAAM,QAAQ,EAAE;IAAE,IAAI;IAAI;GAC3C,SAAS,EAAE,gBAAgB,oBAAoB;GAChD;EACF;CACF"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Concatenates any number of pre/post-request scripts into a single string,
|
|
3
|
+
* trimming empty/undefined values and separating them with newlines.
|
|
4
|
+
*
|
|
5
|
+
* Useful for merging scripts defined at different levels (document, operation, etc.).
|
|
6
|
+
*/
|
|
7
|
+
export declare const getScript: (...args: (string | undefined | null)[]) => string;
|
|
8
|
+
//# sourceMappingURL=get-script.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-script.d.ts","sourceRoot":"","sources":["../../src/helpers/get-script.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,eAAO,MAAM,SAAS,GAAI,GAAG,MAAM,CAAC,MAAM,GAAG,SAAS,GAAG,IAAI,CAAC,EAAE,KAAG,MAKlE,CAAA"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
//#region src/helpers/get-script.ts
|
|
2
|
+
/**
|
|
3
|
+
* Concatenates any number of pre/post-request scripts into a single string,
|
|
4
|
+
* trimming empty/undefined values and separating them with newlines.
|
|
5
|
+
*
|
|
6
|
+
* Useful for merging scripts defined at different levels (document, operation, etc.).
|
|
7
|
+
*/
|
|
8
|
+
var getScript = (...args) => {
|
|
9
|
+
return args.map((script) => script?.trim()).filter((script) => typeof script === "string" && script.length > 0).join("\n");
|
|
10
|
+
};
|
|
11
|
+
//#endregion
|
|
12
|
+
export { getScript };
|
|
13
|
+
|
|
14
|
+
//# sourceMappingURL=get-script.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-script.js","names":[],"sources":["../../src/helpers/get-script.ts"],"sourcesContent":["/**\n * Concatenates any number of pre/post-request scripts into a single string,\n * trimming empty/undefined values and separating them with newlines.\n *\n * Useful for merging scripts defined at different levels (document, operation, etc.).\n */\nexport const getScript = (...args: (string | undefined | null)[]): string => {\n return args\n .map((script) => script?.trim())\n .filter((script) => typeof script === 'string' && script.length > 0)\n .join('\\n')\n}\n"],"mappings":";;;;;;;AAMA,IAAa,aAAa,GAAG,SAAgD;AAC3E,QAAO,KACJ,KAAK,WAAW,QAAQ,MAAM,CAAC,CAC/B,QAAQ,WAAW,OAAO,WAAW,YAAY,OAAO,SAAS,EAAE,CACnE,KAAK,KAAK"}
|
package/dist/index.d.ts
CHANGED
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,uBAAuB,EAAE,MAAM,wBAAwB,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAA;AAChD,OAAO,EAAE,yBAAyB,EAAE,uBAAuB,EAAE,MAAM,wBAAwB,CAAA"}
|
package/dist/index.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { getScript } from "./helpers/get-script.js";
|
|
1
2
|
import { executePostResponseScript } from "./libs/execute-scripts/execute-post-response-script.js";
|
|
2
3
|
import { executePreRequestScript } from "./libs/execute-scripts/execute-pre-request-script.js";
|
|
3
|
-
export { executePostResponseScript, executePreRequestScript };
|
|
4
|
+
export { executePostResponseScript, executePreRequestScript, getScript };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"request-scripts-plugin.d.ts","sourceRoot":"","sources":["../../../src/plugins/request-scripts/request-scripts-plugin.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAA;
|
|
1
|
+
{"version":3,"file":"request-scripts-plugin.d.ts","sourceRoot":"","sources":["../../../src/plugins/request-scripts/request-scripts-plugin.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAA;AAS7D;;;;;;;;;GASG;AACH,eAAO,MAAM,oBAAoB,QAAO,YAwCvC,CAAA"}
|
|
@@ -1,12 +1,10 @@
|
|
|
1
|
+
import { getScript } from "../../helpers/get-script.js";
|
|
1
2
|
import { executePostResponseScript } from "../../libs/execute-scripts/execute-post-response-script.js";
|
|
2
3
|
import { executePreRequestScript } from "../../libs/execute-scripts/execute-pre-request-script.js";
|
|
3
4
|
import TestResults_default from "./components/TestResults/TestResults.vue.js";
|
|
4
5
|
import ScriptsSection_default from "./components/ScriptsSection.vue.js";
|
|
5
6
|
import { ref } from "vue";
|
|
6
7
|
//#region src/plugins/request-scripts/request-scripts-plugin.ts
|
|
7
|
-
var getScript = (...args) => {
|
|
8
|
-
return args.map((script) => script?.trim()).filter((script) => typeof script === "string" && script.length > 0).join("\n");
|
|
9
|
-
};
|
|
10
8
|
/**
|
|
11
9
|
* Unified request scripts plugin for client V2. Provides a single "Scripts"
|
|
12
10
|
* section with:
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"request-scripts-plugin.js","names":[],"sources":["../../../src/plugins/request-scripts/request-scripts-plugin.ts"],"sourcesContent":["import type { ClientPlugin } from '@scalar/oas-utils/helpers'\nimport { ref } from 'vue'\n\nimport { type TestResult, executePostResponseScript, executePreRequestScript } from '@/libs/execute-scripts'\nimport { TestResults } from '@/plugins/request-scripts/components/TestResults'\n\nimport ScriptsSection from './components/ScriptsSection.vue'\n\
|
|
1
|
+
{"version":3,"file":"request-scripts-plugin.js","names":[],"sources":["../../../src/plugins/request-scripts/request-scripts-plugin.ts"],"sourcesContent":["import type { ClientPlugin } from '@scalar/oas-utils/helpers'\nimport { ref } from 'vue'\n\nimport { getScript } from '@/helpers/get-script'\nimport { type TestResult, executePostResponseScript, executePreRequestScript } from '@/libs/execute-scripts'\nimport { TestResults } from '@/plugins/request-scripts/components/TestResults'\n\nimport ScriptsSection from './components/ScriptsSection.vue'\n\n/**\n * Unified request scripts plugin for client V2. Provides a single \"Scripts\"\n * section with:\n * - Pre-request script editor (x-pre-request) — runs before each request\n * - Post-response script editor (x-post-response) — runs after each response\n * - Test results from post-response assertions, shown in the response section\n *\n * Hooks: beforeRequest runs pre-request scripts and resets results;\n * responseReceived runs post-response scripts and updates test results.\n */\nexport const requestScriptsPlugin = (): ClientPlugin => {\n const results = ref<TestResult[]>([])\n\n return {\n components: {\n request: {\n component: ScriptsSection,\n },\n response: {\n component: TestResults,\n additionalProps: { results },\n },\n },\n\n hooks: {\n beforeRequest: async ({ requestBuilder, document, operation, variablesStore }) => {\n // Reset test results when a new request is sent\n results.value = []\n const script = getScript(document['x-pre-request'], operation['x-pre-request'])\n await executePreRequestScript(script, {\n requestBuilder,\n variablesStore,\n onTestResultsUpdate: (newResults) => (results.value = [...newResults]),\n })\n },\n\n responseReceived: async ({ requestBuilder, response, operation, document, variablesStore }) => {\n const script = getScript(document['x-post-response'], operation['x-post-response'])\n // Snapshot pre-request results before running post-response script\n const preRequestResults = [...results.value]\n await executePostResponseScript(script, {\n requestBuilder,\n response,\n onTestResultsUpdate: (postResponseResults) =>\n (results.value = [...preRequestResults, ...postResponseResults]),\n variablesStore,\n })\n },\n },\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;AAmBA,IAAa,6BAA2C;CACtD,MAAM,UAAU,IAAkB,EAAE,CAAC;AAErC,QAAO;EACL,YAAY;GACV,SAAS,EACP,WAAW,wBACZ;GACD,UAAU;IACR,WAAW;IACX,iBAAiB,EAAE,SAAS;IAC7B;GACF;EAED,OAAO;GACL,eAAe,OAAO,EAAE,gBAAgB,UAAU,WAAW,qBAAqB;AAEhF,YAAQ,QAAQ,EAAE;AAElB,UAAM,wBADS,UAAU,SAAS,kBAAkB,UAAU,iBAAiB,EACzC;KACpC;KACA;KACA,sBAAsB,eAAgB,QAAQ,QAAQ,CAAC,GAAG,WAAW;KACtE,CAAC;;GAGJ,kBAAkB,OAAO,EAAE,gBAAgB,UAAU,WAAW,UAAU,qBAAqB;IAC7F,MAAM,SAAS,UAAU,SAAS,oBAAoB,UAAU,mBAAmB;IAEnF,MAAM,oBAAoB,CAAC,GAAG,QAAQ,MAAM;AAC5C,UAAM,0BAA0B,QAAQ;KACtC;KACA;KACA,sBAAsB,wBACnB,QAAQ,QAAQ,CAAC,GAAG,mBAAmB,GAAG,oBAAoB;KACjE;KACD,CAAC;;GAEL;EACF"}
|
package/package.json
CHANGED
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"post-response scripts",
|
|
20
20
|
"api client"
|
|
21
21
|
],
|
|
22
|
-
"version": "0.4.
|
|
22
|
+
"version": "0.4.2",
|
|
23
23
|
"engines": {
|
|
24
24
|
"node": ">=22"
|
|
25
25
|
},
|
|
@@ -50,14 +50,14 @@
|
|
|
50
50
|
"dependencies": {
|
|
51
51
|
"@codemirror/lang-javascript": "^6.2.5",
|
|
52
52
|
"@headlessui/vue": "1.7.23",
|
|
53
|
+
"@types/postman-collection": "^3.5.11",
|
|
54
|
+
"postman-collection": "^5.3.0",
|
|
53
55
|
"postman-sandbox": "^6.6.1",
|
|
54
56
|
"vue": "^3.5.30",
|
|
55
|
-
"@
|
|
56
|
-
"
|
|
57
|
-
"@scalar/components": "0.
|
|
58
|
-
"@scalar/
|
|
59
|
-
"@scalar/workspace-store": "0.45.0",
|
|
60
|
-
"@scalar/use-codemirror": "0.14.11"
|
|
57
|
+
"@scalar/use-codemirror": "0.14.11",
|
|
58
|
+
"@scalar/oas-utils": "0.12.0",
|
|
59
|
+
"@scalar/components": "0.22.0",
|
|
60
|
+
"@scalar/workspace-store": "0.46.0"
|
|
61
61
|
},
|
|
62
62
|
"devDependencies": {
|
|
63
63
|
"@vitejs/plugin-vue": "^6.0.3",
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
"build": "vite build && vue-tsc -p tsconfig.build.json && tsc-alias -p tsconfig.build.json",
|
|
69
69
|
"dev": "vite",
|
|
70
70
|
"preview": "vite preview",
|
|
71
|
-
"test": "vitest",
|
|
71
|
+
"test": "vitest --run",
|
|
72
72
|
"types:check": "vue-tsc --noEmit"
|
|
73
73
|
}
|
|
74
74
|
}
|