@atlasauth/msw 0.3.0 → 0.4.0
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/index.d.ts +3 -0
- package/dist/index.js +7 -1
- package/dist/index.js.map +1 -1
- package/package.json +5 -2
package/CHANGELOG.md
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -15,3 +15,6 @@
|
|
|
15
15
|
export { atlasHandlers, type AtlasHandlersOptions } from './handlers';
|
|
16
16
|
export { createAtlasMock, AtlasMock, IdFactory, ID_PREFIXES, type AtlasMockSeed, type SeedUser, type SeedOrganization, type EntityKind, type MockInstance, type MockUser, type MockEmail, type MockOrganization, type MockMembership, type MockSession, type MockAttempt, type MockSocialProvider, } from './state';
|
|
17
17
|
export { errorBody, listEnvelope, presentUser, presentMeUser, presentMembership, presentOrganization, presentSession, presentSignInAttempt, presentSignUpAttempt, } from './serializers';
|
|
18
|
+
export { coreHandlers } from '@atlasauth/emulator-core/msw';
|
|
19
|
+
export type { CoreHandlersOptions } from '@atlasauth/emulator-core/msw';
|
|
20
|
+
export { createEmulatorEngine } from '@atlasauth/emulator-core';
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.presentSignUpAttempt = exports.presentSignInAttempt = exports.presentSession = exports.presentOrganization = exports.presentMembership = exports.presentMeUser = exports.presentUser = exports.listEnvelope = exports.errorBody = exports.ID_PREFIXES = exports.IdFactory = exports.AtlasMock = exports.createAtlasMock = exports.atlasHandlers = void 0;
|
|
3
|
+
exports.createEmulatorEngine = exports.coreHandlers = exports.presentSignUpAttempt = exports.presentSignInAttempt = exports.presentSession = exports.presentOrganization = exports.presentMembership = exports.presentMeUser = exports.presentUser = exports.listEnvelope = exports.errorBody = exports.ID_PREFIXES = exports.IdFactory = exports.AtlasMock = exports.createAtlasMock = exports.atlasHandlers = void 0;
|
|
4
4
|
/**
|
|
5
5
|
* `@atlasauth/msw` — Mock Service Worker (v2) request handlers that mock Atlas's
|
|
6
6
|
* Frontend API (FAPI) and Backend API (BAPI), so an integrator can test their
|
|
@@ -32,4 +32,10 @@ Object.defineProperty(exports, "presentOrganization", { enumerable: true, get: f
|
|
|
32
32
|
Object.defineProperty(exports, "presentSession", { enumerable: true, get: function () { return serializers_1.presentSession; } });
|
|
33
33
|
Object.defineProperty(exports, "presentSignInAttempt", { enumerable: true, get: function () { return serializers_1.presentSignInAttempt; } });
|
|
34
34
|
Object.defineProperty(exports, "presentSignUpAttempt", { enumerable: true, get: function () { return serializers_1.presentSignUpAttempt; } });
|
|
35
|
+
// The full Backend API engine as msw handlers (users, organizations, roles, API keys, machines and grants,
|
|
36
|
+
// webhooks, the change feed, signed tokens), for code that needs more than the in-memory client model above.
|
|
37
|
+
var msw_1 = require("@atlasauth/emulator-core/msw");
|
|
38
|
+
Object.defineProperty(exports, "coreHandlers", { enumerable: true, get: function () { return msw_1.coreHandlers; } });
|
|
39
|
+
var emulator_core_1 = require("@atlasauth/emulator-core");
|
|
40
|
+
Object.defineProperty(exports, "createEmulatorEngine", { enumerable: true, get: function () { return emulator_core_1.createEmulatorEngine; } });
|
|
35
41
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;GAaG;AACH,uCAAsE;AAA7D,yGAAA,aAAa,OAAA;AACtB,iCAiBiB;AAhBf,wGAAA,eAAe,OAAA;AACf,kGAAA,SAAS,OAAA;AACT,kGAAA,SAAS,OAAA;AACT,oGAAA,WAAW,OAAA;AAcb,6CAUuB;AATrB,wGAAA,SAAS,OAAA;AACT,2GAAA,YAAY,OAAA;AACZ,0GAAA,WAAW,OAAA;AACX,4GAAA,aAAa,OAAA;AACb,gHAAA,iBAAiB,OAAA;AACjB,kHAAA,mBAAmB,OAAA;AACnB,6GAAA,cAAc,OAAA;AACd,mHAAA,oBAAoB,OAAA;AACpB,mHAAA,oBAAoB,OAAA"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;GAaG;AACH,uCAAsE;AAA7D,yGAAA,aAAa,OAAA;AACtB,iCAiBiB;AAhBf,wGAAA,eAAe,OAAA;AACf,kGAAA,SAAS,OAAA;AACT,kGAAA,SAAS,OAAA;AACT,oGAAA,WAAW,OAAA;AAcb,6CAUuB;AATrB,wGAAA,SAAS,OAAA;AACT,2GAAA,YAAY,OAAA;AACZ,0GAAA,WAAW,OAAA;AACX,4GAAA,aAAa,OAAA;AACb,gHAAA,iBAAiB,OAAA;AACjB,kHAAA,mBAAmB,OAAA;AACnB,6GAAA,cAAc,OAAA;AACd,mHAAA,oBAAoB,OAAA;AACpB,mHAAA,oBAAoB,OAAA;AAGtB,2GAA2G;AAC3G,6GAA6G;AAC7G,oDAA4D;AAAnD,mGAAA,YAAY,OAAA;AAErB,0DAAgE;AAAvD,qHAAA,oBAAoB,OAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlasauth/msw",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"types": "./dist/index.d.ts",
|
|
6
6
|
"exports": {
|
|
@@ -10,13 +10,16 @@
|
|
|
10
10
|
},
|
|
11
11
|
"./package.json": "./package.json"
|
|
12
12
|
},
|
|
13
|
+
"dependencies": {
|
|
14
|
+
"@atlasauth/emulator-core": "0.1.0"
|
|
15
|
+
},
|
|
13
16
|
"peerDependencies": {
|
|
14
17
|
"msw": "^2"
|
|
15
18
|
},
|
|
16
19
|
"devDependencies": {
|
|
17
20
|
"msw": "^2.4.9",
|
|
18
21
|
"typescript": "^5.6.3",
|
|
19
|
-
"vitest": "^2.
|
|
22
|
+
"vitest": "^3.2.7"
|
|
20
23
|
},
|
|
21
24
|
"publishConfig": {
|
|
22
25
|
"access": "public"
|