@raketa-cloud/admin 0.0.29 → 0.0.30

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@raketa-cloud/admin",
3
- "version": "0.0.29",
3
+ "version": "0.0.30",
4
4
  "main": "src/index.js",
5
5
  "scripts": {
6
6
  "dev": "npx tailwindcss -i ./src/styles/application.css -o ../../apps/admin/static/application.css --watch",
@@ -152,8 +152,8 @@ const FIXTURES = {
152
152
  },
153
153
  };
154
154
 
155
- function build(type, params = {}) {
156
- const entity = FIXTURES[type];
155
+ function build(type, params = {}, fixtures = FIXTURES) {
156
+ const entity = fixtures[type];
157
157
 
158
158
  if (!entity) {
159
159
  throw new Error(`No fixture for entity of type ${type}`);
@@ -164,4 +164,7 @@ function build(type, params = {}) {
164
164
 
165
165
  export default {
166
166
  build: build,
167
+ fixtures: () => {
168
+ return { ...FIXTURES };
169
+ },
167
170
  };