@rvoh/psychic-spec-helpers 1.1.4 → 1.1.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.
- package/CHANGELOG.md +4 -0
- package/dist/types/src/index.d.ts +1 -1
- package/package.json +1 -1
- package/src/index.ts +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
## 1.1.5
|
|
2
|
+
|
|
3
|
+
Add "Openapi" prefix to all newly-exported type helpers, so that comparitive helpers can be defined within a user's application to take over the more succinct namespaces
|
|
4
|
+
|
|
1
5
|
## 1.1.4
|
|
2
6
|
|
|
3
7
|
export RequestBody and RequestQuery, ResponseBody and ResponseCodeForUri types, so that they can be used within psychic application unit tests to be used as type guards
|
|
@@ -2,7 +2,7 @@ import { ExpectToEvaluateOpts } from './feature/internal/evaluateWithRetryAndTim
|
|
|
2
2
|
import { CustomMatcherResult } from './feature/helpers/providePuppeteerViteMatchers.js';
|
|
3
3
|
import { Page, WaitForSelectorOptions } from 'puppeteer';
|
|
4
4
|
import { ToFillMatcherOpts } from './feature/matchers/toFill.js';
|
|
5
|
-
export { RequestBody, RequestQueryParameters as
|
|
5
|
+
export { RequestBody as OpenapiRequestBody, RequestQueryParameters as OpenapiRequestQuery, ResponseBody as OpenapiResponseBody, ResponseCodeForUri as OpenapiResponseCodeForUri, } from './unit/helpers/openapiTypeHelpers.js';
|
|
6
6
|
export { DreamRequestAttributes } from './unit/helpers/typeHelpers.js';
|
|
7
7
|
export { default as specRequest } from './unit/SpecRequest.js';
|
|
8
8
|
export { default as createPsychicServer } from './unit/createPsychicServer.js';
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -3,10 +3,10 @@ import { CustomMatcherResult } from './feature/helpers/providePuppeteerViteMatch
|
|
|
3
3
|
import { Page, WaitForSelectorOptions } from 'puppeteer'
|
|
4
4
|
import { ToFillMatcherOpts } from './feature/matchers/toFill.js'
|
|
5
5
|
export {
|
|
6
|
-
RequestBody,
|
|
7
|
-
RequestQueryParameters as
|
|
8
|
-
ResponseBody,
|
|
9
|
-
ResponseCodeForUri,
|
|
6
|
+
RequestBody as OpenapiRequestBody,
|
|
7
|
+
RequestQueryParameters as OpenapiRequestQuery,
|
|
8
|
+
ResponseBody as OpenapiResponseBody,
|
|
9
|
+
ResponseCodeForUri as OpenapiResponseCodeForUri,
|
|
10
10
|
} from './unit/helpers/openapiTypeHelpers.js'
|
|
11
11
|
|
|
12
12
|
// type helpers
|