@bagaar/ember-graphql-mocking 0.11.2 → 0.11.4
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 +57 -0
- package/declarations/index.d.ts +0 -1
- package/declarations/template-registry.d.ts +0 -1
- package/declarations/test-support/index.d.ts +0 -1
- package/dist/test-support/index.js +0 -2
- package/dist/test-support/index.js.map +1 -1
- package/package.json +51 -49
- package/declarations/index.d.ts.map +0 -1
- package/declarations/template-registry.d.ts.map +0 -1
- package/declarations/test-support/index.d.ts.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,62 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## Release (2026-10-29)
|
|
4
|
+
|
|
5
|
+
* @bagaar/ember-graphql-mocking 0.11.4 (patch)
|
|
6
|
+
|
|
7
|
+
#### :house: Internal
|
|
8
|
+
* Other
|
|
9
|
+
* [#254](https://github.com/Bagaar/ember-graphql-mocking/pull/254) chore(deps-major): update dependency ember-try from 3.0.0 to 4.0.0 ([@renovate[bot]](https://github.com/apps/renovate))
|
|
10
|
+
* [#253](https://github.com/Bagaar/ember-graphql-mocking/pull/253) chore(deps-major): update dependency ember-load-initializers from 2.1.2 to 3.0.1 ([@renovate[bot]](https://github.com/apps/renovate))
|
|
11
|
+
* [#251](https://github.com/Bagaar/ember-graphql-mocking/pull/251) chore(deps-major): update dependency tracked-built-ins from 3.4.0 to 4.1.2 ([@renovate[bot]](https://github.com/apps/renovate))
|
|
12
|
+
* [#256](https://github.com/Bagaar/ember-graphql-mocking/pull/256) chore(deps-major): update pnpm from 11.28.8 to 12.15.0 ([@renovate[bot]](https://github.com/apps/renovate))
|
|
13
|
+
* [#247](https://github.com/Bagaar/ember-graphql-mocking/pull/247) chore(deps-major): update stylelint (major) ([@renovate[bot]](https://github.com/apps/renovate))
|
|
14
|
+
* [#250](https://github.com/Bagaar/ember-graphql-mocking/pull/250) chore(deps-major): update dependency supports-color@>=8 from 8.1.1 to 11.0.0 ([@renovate[bot]](https://github.com/apps/renovate))
|
|
15
|
+
* [#210](https://github.com/Bagaar/ember-graphql-mocking/pull/210) chore(deps): pin dependency @apollo/client from 3.14.1 to 3.14.1 ([@renovate[bot]](https://github.com/apps/renovate))
|
|
16
|
+
* [#243](https://github.com/Bagaar/ember-graphql-mocking/pull/243) chore(deps-major): update dependency @ember/test-helpers from 4.0.5 to 5.7.0 ([@renovate[bot]](https://github.com/apps/renovate))
|
|
17
|
+
* [#242](https://github.com/Bagaar/ember-graphql-mocking/pull/242) chore(deps-major): update dependency @ember/optional-features from 2.3.0 to 3.0.0 ([@renovate[bot]](https://github.com/apps/renovate))
|
|
18
|
+
* [#240](https://github.com/Bagaar/ember-graphql-mocking/pull/240) chore(deps): pin dependencies ([@renovate[bot]](https://github.com/apps/renovate))
|
|
19
|
+
* [#241](https://github.com/Bagaar/ember-graphql-mocking/pull/241) chore(deps-patch): update node.js from v24.22.1 to v24.22.2 ([@renovate[bot]](https://github.com/apps/renovate))
|
|
20
|
+
* [#222](https://github.com/Bagaar/ember-graphql-mocking/pull/222) chore(deps-major): update dependency qunit-dom from 2.0.0 to 3.6.0 ([@renovate[bot]](https://github.com/apps/renovate))
|
|
21
|
+
* [#228](https://github.com/Bagaar/ember-graphql-mocking/pull/228) chore(deps-major): update pnpm/action-setup action to v6.1.0 ([@renovate[bot]](https://github.com/apps/renovate))
|
|
22
|
+
* [#229](https://github.com/Bagaar/ember-graphql-mocking/pull/229) chore(deps-major): update dependency @ember/test-helpers from 3.3.1 to 4.0.5 ([@renovate[bot]](https://github.com/apps/renovate))
|
|
23
|
+
* [#233](https://github.com/Bagaar/ember-graphql-mocking/pull/233) chore(deps-major): update dependency ember-cli-htmlbars from 6.3.0 to 7.0.1 ([@renovate[bot]](https://github.com/apps/renovate))
|
|
24
|
+
* [#234](https://github.com/Bagaar/ember-graphql-mocking/pull/234) chore(deps-major): update dependency ember-qunit from 8.1.1 to 9.2.0 ([@renovate[bot]](https://github.com/apps/renovate))
|
|
25
|
+
* [#218](https://github.com/Bagaar/ember-graphql-mocking/pull/218) chore(deps-major): update actions/setup-node action to v7.1.0 ([@renovate[bot]](https://github.com/apps/renovate))
|
|
26
|
+
* [#216](https://github.com/Bagaar/ember-graphql-mocking/pull/216) chore(deps-minor): update pnpm from 10.19.0 to 10.34.8 ([@renovate[bot]](https://github.com/apps/renovate))
|
|
27
|
+
* [#217](https://github.com/Bagaar/ember-graphql-mocking/pull/217) chore(deps-major): update actions/checkout action to v7.0.1 ([@renovate[bot]](https://github.com/apps/renovate))
|
|
28
|
+
* [#209](https://github.com/Bagaar/ember-graphql-mocking/pull/209) chore(deps-minor): update dependency release-plan from 0.18.0 to 0.20.1 ([@renovate[bot]](https://github.com/apps/renovate))
|
|
29
|
+
* `@bagaar/ember-graphql-mocking`
|
|
30
|
+
* [#252](https://github.com/Bagaar/ember-graphql-mocking/pull/252) chore(deps-major): update dependency babel-plugin-ember-template-compilation from 3.1.0 to 4.0.1 ([@renovate[bot]](https://github.com/apps/renovate))
|
|
31
|
+
* [#249](https://github.com/Bagaar/ember-graphql-mocking/pull/249) chore(deps-major): update dependency decorator-transforms from 1.2.1 to 2.4.0 ([@renovate[bot]](https://github.com/apps/renovate))
|
|
32
|
+
* [#248](https://github.com/Bagaar/ember-graphql-mocking/pull/248) chore(deps-major): update dependency babel-plugin-ember-template-compilation from 2.4.1 to 3.1.0 ([@renovate[bot]](https://github.com/apps/renovate))
|
|
33
|
+
* [#246](https://github.com/Bagaar/ember-graphql-mocking/pull/246) chore(deps-major): update dependency ember-template-lint from 6.1.0 to 7.9.4 ([@renovate[bot]](https://github.com/apps/renovate))
|
|
34
|
+
* [#227](https://github.com/Bagaar/ember-graphql-mocking/pull/227) chore(deps-major): update pnpm from 10.34.8 to 11.28.8 ([@renovate[bot]](https://github.com/apps/renovate))
|
|
35
|
+
* [#220](https://github.com/Bagaar/ember-graphql-mocking/pull/220) chore(deps-major): update dependency eslint-plugin-n from 16.6.2 to 18.5.0 ([@renovate[bot]](https://github.com/apps/renovate))
|
|
36
|
+
* [#221](https://github.com/Bagaar/ember-graphql-mocking/pull/221) chore(deps-major): update dependency prettier-plugin-ember-template-tag from 1.1.0 to 2.1.8 ([@renovate[bot]](https://github.com/apps/renovate))
|
|
37
|
+
* [#231](https://github.com/Bagaar/ember-graphql-mocking/pull/231) chore(deps-major): update dependency @rollup/plugin-babel from 6.1.0 to 7.1.0 ([@renovate[bot]](https://github.com/apps/renovate))
|
|
38
|
+
* [#232](https://github.com/Bagaar/ember-graphql-mocking/pull/232) chore(deps-major): update dependency concurrently to v10.0.6 ([@renovate[bot]](https://github.com/apps/renovate))
|
|
39
|
+
* [#236](https://github.com/Bagaar/ember-graphql-mocking/pull/236) chore(deps-major): update dependency ember-template-lint from 5.13.0 to 6.1.0 ([@renovate[bot]](https://github.com/apps/renovate))
|
|
40
|
+
* [#238](https://github.com/Bagaar/ember-graphql-mocking/pull/238) chore(deps-major): update dependency eslint-plugin-ember from 11.12.0 to 13.9.0 ([@renovate[bot]](https://github.com/apps/renovate))
|
|
41
|
+
* [#237](https://github.com/Bagaar/ember-graphql-mocking/pull/237) chore(deps-major): update dependency eslint-config-prettier from 9.1.2 to 10.1.8 ([@renovate[bot]](https://github.com/apps/renovate))
|
|
42
|
+
|
|
43
|
+
#### Committers: 1
|
|
44
|
+
- Renovate [Bot] ([@renovate](https://github.com/apps/renovate))
|
|
45
|
+
|
|
46
|
+
## Release (2026-10-28)
|
|
47
|
+
|
|
48
|
+
* @bagaar/ember-graphql-mocking 0.11.3 (patch)
|
|
49
|
+
|
|
50
|
+
#### :house: Internal
|
|
51
|
+
* Other
|
|
52
|
+
* [#212](https://github.com/Bagaar/ember-graphql-mocking/pull/212) chore: dont ignore renovate bot as a committer for the changelog ([@gvdp](https://github.com/gvdp))
|
|
53
|
+
* `@bagaar/ember-graphql-mocking`
|
|
54
|
+
* [#208](https://github.com/Bagaar/ember-graphql-mocking/pull/208) chore(deps): pin dependencies ([@renovate[bot]](https://github.com/apps/renovate))
|
|
55
|
+
|
|
56
|
+
#### Committers: 2
|
|
57
|
+
- Renovate [Bot] ([@renovate](https://github.com/apps/renovate))
|
|
58
|
+
- [@gvdp](https://github.com/gvdp)
|
|
59
|
+
|
|
3
60
|
## Release (2025-02-05)
|
|
4
61
|
|
|
5
62
|
@bagaar/ember-graphql-mocking 0.11.1 (patch)
|
package/declarations/index.d.ts
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -82,8 +82,6 @@ function createGraphqlOperationHandler(schemaDocument) {
|
|
|
82
82
|
source: query,
|
|
83
83
|
variableValues: variables
|
|
84
84
|
});
|
|
85
|
-
|
|
86
|
-
// @ts-expect-error latest versions of msw return a type which is ObjMap<unknown> | null | undefined, which seems incompatible with the .json() method
|
|
87
85
|
return HttpResponse.json({
|
|
88
86
|
data,
|
|
89
87
|
errors
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../src/test-support/index.ts"],"sourcesContent":["import { assert } from '@ember/debug';\nimport { buildASTSchema, graphql, type DocumentNode } from 'graphql';\nimport { graphql as mswGraphql, HttpResponse } from 'msw';\nimport { setupWorker, type SetupWorker, type StartOptions } from 'msw/browser';\n\ninterface Options {\n mswStartOptions: StartOptions;\n}\n\ntype WindowWithTestem = typeof window & { Testem: unknown };\n\ntype Hooks = {\n after(fn: () => void | Promise<void>): void;\n afterEach(fn: () => void | Promise<void>): void;\n before(fn: () => void | Promise<void>): void;\n beforeEach(fn: () => void | Promise<void>): void;\n};\n\nconst IS_TESTEM = Boolean((window as WindowWithTestem).Testem);\nconst DEFAULT_OPTIONS: Options = {\n mswStartOptions: {\n quiet: IS_TESTEM,\n serviceWorker: {\n options: {\n scope: IS_TESTEM ? window.location.pathname : '/tests',\n },\n },\n },\n};\n\nlet isSetupGraphqlTestCalled = false;\nlet root: object | null = null;\nlet worker: SetupWorker | null = null;\nlet options: Options | null = null;\n\nexport async function setupEmberGraphqlMocking(\n schemaDocument: DocumentNode,\n providedOptions?: Options,\n) {\n options = { ...DEFAULT_OPTIONS, ...providedOptions };\n createWorker();\n createGraphqlOperationHandler(schemaDocument);\n}\n\nexport function setupGraphqlTest(hooks: Hooks) {\n assert(\n 'Cannot call `setupGraphqlTest` without providing the `hooks` argument. Please make sure to call `setupGraphqlTest(hooks);`.',\n hooks,\n );\n\n hooks.before(() => {\n isSetupGraphqlTestCalled = true;\n });\n\n hooks.after(() => {\n isSetupGraphqlTestCalled = false;\n });\n\n hooks.beforeEach(async () => {\n await startWorker(options?.mswStartOptions || {});\n });\n\n hooks.afterEach(() => {\n stopWorker();\n clearRoot();\n });\n}\n\nexport function mockResolvers(resolvers: object) {\n assert(\n 'Cannot call `mockResolvers` before calling `setupGraphqlTest`. Please make sure to call `setupGraphqlTest(hooks);`.',\n isSetupGraphqlTestCalled,\n );\n\n root = { ...root, ...resolvers };\n}\n\nexport function getWorker() {\n assert(\n 'Cannot call `getWorker` before calling `setupEmberGraphqlMocking`. Please make sure to call `setupEmberGraphqlMocking(yourSchemaDocument[, yourProvidedOptions]);`.',\n worker,\n );\n\n return worker;\n}\n\nexport function stopWorker() {\n assert(\n 'Cannot call `destroyWorker` before calling `setupEmberGraphqlMocking`. Please make sure to call `setupEmberGraphqlMocking(yourSchemaDocument[, yourProvidedOptions]);`.',\n worker,\n );\n\n worker.stop();\n}\n\nfunction createWorker() {\n worker = setupWorker();\n}\n\nfunction createGraphqlOperationHandler(schemaDocument: DocumentNode) {\n assert('[BUG] `worker` is not set.', worker);\n\n const schema = buildASTSchema(schemaDocument);\n const graphqlOperation = mswGraphql.operation(async ({ request }) => {\n const { query, variables } = (await request.json()) || {\n query: '',\n variables: {},\n };\n\n const { data, errors } = await graphql({\n rootValue: root,\n schema,\n source: query,\n variableValues: variables,\n });\n\n
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../src/test-support/index.ts"],"sourcesContent":["import { assert } from '@ember/debug';\nimport { buildASTSchema, graphql, type DocumentNode } from 'graphql';\nimport { graphql as mswGraphql, HttpResponse } from 'msw';\nimport { setupWorker, type SetupWorker, type StartOptions } from 'msw/browser';\n\ninterface Options {\n mswStartOptions: StartOptions;\n}\n\ntype WindowWithTestem = typeof window & { Testem: unknown };\n\ntype Hooks = {\n after(fn: () => void | Promise<void>): void;\n afterEach(fn: () => void | Promise<void>): void;\n before(fn: () => void | Promise<void>): void;\n beforeEach(fn: () => void | Promise<void>): void;\n};\n\nconst IS_TESTEM = Boolean((window as WindowWithTestem).Testem);\nconst DEFAULT_OPTIONS: Options = {\n mswStartOptions: {\n quiet: IS_TESTEM,\n serviceWorker: {\n options: {\n scope: IS_TESTEM ? window.location.pathname : '/tests',\n },\n },\n },\n};\n\nlet isSetupGraphqlTestCalled = false;\nlet root: object | null = null;\nlet worker: SetupWorker | null = null;\nlet options: Options | null = null;\n\nexport async function setupEmberGraphqlMocking(\n schemaDocument: DocumentNode,\n providedOptions?: Options,\n) {\n options = { ...DEFAULT_OPTIONS, ...providedOptions };\n createWorker();\n createGraphqlOperationHandler(schemaDocument);\n}\n\nexport function setupGraphqlTest(hooks: Hooks) {\n assert(\n 'Cannot call `setupGraphqlTest` without providing the `hooks` argument. Please make sure to call `setupGraphqlTest(hooks);`.',\n hooks,\n );\n\n hooks.before(() => {\n isSetupGraphqlTestCalled = true;\n });\n\n hooks.after(() => {\n isSetupGraphqlTestCalled = false;\n });\n\n hooks.beforeEach(async () => {\n await startWorker(options?.mswStartOptions || {});\n });\n\n hooks.afterEach(() => {\n stopWorker();\n clearRoot();\n });\n}\n\nexport function mockResolvers(resolvers: object) {\n assert(\n 'Cannot call `mockResolvers` before calling `setupGraphqlTest`. Please make sure to call `setupGraphqlTest(hooks);`.',\n isSetupGraphqlTestCalled,\n );\n\n root = { ...root, ...resolvers };\n}\n\nexport function getWorker() {\n assert(\n 'Cannot call `getWorker` before calling `setupEmberGraphqlMocking`. Please make sure to call `setupEmberGraphqlMocking(yourSchemaDocument[, yourProvidedOptions]);`.',\n worker,\n );\n\n return worker;\n}\n\nexport function stopWorker() {\n assert(\n 'Cannot call `destroyWorker` before calling `setupEmberGraphqlMocking`. Please make sure to call `setupEmberGraphqlMocking(yourSchemaDocument[, yourProvidedOptions]);`.',\n worker,\n );\n\n worker.stop();\n}\n\nfunction createWorker() {\n worker = setupWorker();\n}\n\nfunction createGraphqlOperationHandler(schemaDocument: DocumentNode) {\n assert('[BUG] `worker` is not set.', worker);\n\n const schema = buildASTSchema(schemaDocument);\n const graphqlOperation = mswGraphql.operation(async ({ request }) => {\n const { query, variables } = (await request.json()) || {\n query: '',\n variables: {},\n };\n\n const { data, errors } = await graphql({\n rootValue: root,\n schema,\n source: query,\n variableValues: variables,\n });\n\n return HttpResponse.json({ data, errors });\n });\n\n worker.use(graphqlOperation);\n}\n\nasync function startWorker(mswStartOptions: Options['mswStartOptions']) {\n assert('[BUG] `worker` is not set.', worker);\n\n await worker.start(mswStartOptions);\n}\n\nfunction clearRoot() {\n root = null;\n}\n"],"names":["IS_TESTEM","Boolean","window","Testem","DEFAULT_OPTIONS","mswStartOptions","quiet","serviceWorker","options","scope","location","pathname","isSetupGraphqlTestCalled","root","worker","setupEmberGraphqlMocking","schemaDocument","providedOptions","createWorker","createGraphqlOperationHandler","setupGraphqlTest","hooks","assert","before","after","beforeEach","startWorker","afterEach","stopWorker","clearRoot","mockResolvers","resolvers","getWorker","stop","setupWorker","schema","buildASTSchema","graphqlOperation","mswGraphql","operation","request","query","variables","json","data","errors","graphql","rootValue","source","variableValues","HttpResponse","use","start"],"mappings":";;;;;AAkBA,MAAMA,SAAS,GAAGC,OAAO,CAAEC,MAAM,CAAsBC,MAAM,CAAC;AAC9D,MAAMC,eAAwB,GAAG;AAC/BC,EAAAA,eAAe,EAAE;AACfC,IAAAA,KAAK,EAAEN,SAAS;AAChBO,IAAAA,aAAa,EAAE;AACbC,MAAAA,OAAO,EAAE;QACPC,KAAK,EAAET,SAAS,G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{
|
|
2
2
|
"name": "@bagaar/ember-graphql-mocking",
|
|
3
|
-
"version": "0.11.
|
|
3
|
+
"version": "0.11.4",
|
|
4
4
|
"description": "Ember addon for mocking GraphQL requests using Mock Service Worker (MSW).",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ember-addon",
|
|
7
7
|
"graphql",
|
|
8
8
|
"msw"
|
|
9
9
|
],
|
|
10
|
-
"repository":
|
|
10
|
+
"repository": {
|
|
11
|
+
"type": "git",
|
|
12
|
+
"url": "git+https://github.com/Bagaar/ember-graphql-mocking.git"
|
|
13
|
+
},
|
|
11
14
|
"license": "MIT",
|
|
12
15
|
"author": "Bagaar",
|
|
13
16
|
"exports": {
|
|
@@ -41,56 +44,39 @@
|
|
|
41
44
|
"declarations",
|
|
42
45
|
"dist"
|
|
43
46
|
],
|
|
44
|
-
"scripts": {
|
|
45
|
-
"build": "concurrently 'npm:build:*'",
|
|
46
|
-
"build:js": "rollup --config",
|
|
47
|
-
"build:types": "glint --declaration",
|
|
48
|
-
"lint": "concurrently 'npm:lint:*(!fix)' --names 'lint:'",
|
|
49
|
-
"lint:fix": "concurrently 'npm:lint:*:fix' --names 'fix:'",
|
|
50
|
-
"lint:hbs": "ember-template-lint . --no-error-on-unmatched-pattern",
|
|
51
|
-
"lint:hbs:fix": "ember-template-lint . --fix --no-error-on-unmatched-pattern",
|
|
52
|
-
"lint:js": "eslint . --cache",
|
|
53
|
-
"lint:js:fix": "eslint . --fix",
|
|
54
|
-
"lint:types": "glint",
|
|
55
|
-
"prepack": "rollup --config",
|
|
56
|
-
"start": "concurrently 'npm:start:*'",
|
|
57
|
-
"start:js": "rollup --config --watch --no-watch.clearScreen",
|
|
58
|
-
"start:types": "glint --declaration --watch",
|
|
59
|
-
"test": "echo 'A v2 addon does not have tests, run tests in test-app'"
|
|
60
|
-
},
|
|
61
47
|
"dependencies": {
|
|
62
48
|
"@embroider/addon-shim": "^1.8.7",
|
|
63
|
-
"decorator-transforms": "^1.0.1"
|
|
49
|
+
"decorator-transforms": "^1.0.1 || ^2.0.0"
|
|
64
50
|
},
|
|
65
51
|
"devDependencies": {
|
|
66
|
-
"@babel/core": "
|
|
67
|
-
"@babel/plugin-transform-typescript": "
|
|
68
|
-
"@babel/runtime": "
|
|
69
|
-
"@embroider/addon-dev": "
|
|
70
|
-
"@glint/core": "
|
|
71
|
-
"@glint/environment-ember-loose": "
|
|
72
|
-
"@glint/environment-ember-template-imports": "
|
|
73
|
-
"@glint/template": "
|
|
74
|
-
"@rollup/plugin-babel": "
|
|
75
|
-
"@tsconfig/ember": "
|
|
76
|
-
"@typescript-eslint/eslint-plugin": "
|
|
77
|
-
"@typescript-eslint/parser": "
|
|
78
|
-
"babel-plugin-ember-template-compilation": "
|
|
79
|
-
"concurrently": "
|
|
80
|
-
"ember-source": "
|
|
81
|
-
"ember-template-lint": "
|
|
82
|
-
"eslint": "
|
|
83
|
-
"eslint-config-prettier": "
|
|
84
|
-
"eslint-plugin-ember": "
|
|
85
|
-
"eslint-plugin-n": "
|
|
86
|
-
"eslint-plugin-prettier": "
|
|
87
|
-
"graphql": "
|
|
88
|
-
"msw": "
|
|
89
|
-
"prettier": "
|
|
90
|
-
"prettier-plugin-ember-template-tag": "
|
|
91
|
-
"rollup": "
|
|
92
|
-
"rollup-plugin-copy": "
|
|
93
|
-
"typescript": "
|
|
52
|
+
"@babel/core": "7.29.7",
|
|
53
|
+
"@babel/plugin-transform-typescript": "7.29.9",
|
|
54
|
+
"@babel/runtime": "7.29.10",
|
|
55
|
+
"@embroider/addon-dev": "4.3.1",
|
|
56
|
+
"@glint/core": "1.5.2",
|
|
57
|
+
"@glint/environment-ember-loose": "1.5.2",
|
|
58
|
+
"@glint/environment-ember-template-imports": "1.5.2",
|
|
59
|
+
"@glint/template": "1.11.0",
|
|
60
|
+
"@rollup/plugin-babel": "7.1.0",
|
|
61
|
+
"@tsconfig/ember": "3.0.12",
|
|
62
|
+
"@typescript-eslint/eslint-plugin": "6.21.0",
|
|
63
|
+
"@typescript-eslint/parser": "6.21.0",
|
|
64
|
+
"babel-plugin-ember-template-compilation": "4.0.1",
|
|
65
|
+
"concurrently": "10.0.6",
|
|
66
|
+
"ember-source": "5.6.0",
|
|
67
|
+
"ember-template-lint": "7.9.4",
|
|
68
|
+
"eslint": "8.57.1",
|
|
69
|
+
"eslint-config-prettier": "10.1.8",
|
|
70
|
+
"eslint-plugin-ember": "13.9.0",
|
|
71
|
+
"eslint-plugin-n": "18.5.0",
|
|
72
|
+
"eslint-plugin-prettier": "5.5.7",
|
|
73
|
+
"graphql": "16.14.2",
|
|
74
|
+
"msw": "2.15.0",
|
|
75
|
+
"prettier": "3.9.10",
|
|
76
|
+
"prettier-plugin-ember-template-tag": "2.1.8",
|
|
77
|
+
"rollup": "4.65.1",
|
|
78
|
+
"rollup-plugin-copy": "3.5.0",
|
|
79
|
+
"typescript": "5.9.3"
|
|
94
80
|
},
|
|
95
81
|
"peerDependencies": {
|
|
96
82
|
"ember-source": ">= 4.8.0",
|
|
@@ -111,5 +97,21 @@
|
|
|
111
97
|
},
|
|
112
98
|
"volta": {
|
|
113
99
|
"extends": "../package.json"
|
|
100
|
+
},
|
|
101
|
+
"scripts": {
|
|
102
|
+
"build": "concurrently 'npm:build:*'",
|
|
103
|
+
"build:js": "rollup --config",
|
|
104
|
+
"build:types": "glint --declaration",
|
|
105
|
+
"lint": "concurrently 'npm:lint:*(!fix)' --names 'lint:'",
|
|
106
|
+
"lint:fix": "concurrently 'npm:lint:*:fix' --names 'fix:'",
|
|
107
|
+
"lint:hbs": "ember-template-lint . --no-error-on-unmatched-pattern",
|
|
108
|
+
"lint:hbs:fix": "ember-template-lint . --fix --no-error-on-unmatched-pattern",
|
|
109
|
+
"lint:js": "eslint . --cache",
|
|
110
|
+
"lint:js:fix": "eslint . --fix",
|
|
111
|
+
"lint:types": "glint",
|
|
112
|
+
"start": "concurrently 'npm:start:*'",
|
|
113
|
+
"start:js": "rollup --config --watch --no-watch.clearScreen",
|
|
114
|
+
"start:types": "glint --declaration --watch",
|
|
115
|
+
"test": "echo 'A v2 addon does not have tests, run tests in test-app'"
|
|
114
116
|
}
|
|
115
|
-
}
|
|
117
|
+
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"template-registry.d.ts","sourceRoot":"","sources":["../src/template-registry.ts"],"names":[],"mappings":"AAQA,MAAM,CAAC,OAAO,WAAW,QAAQ;CAEhC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/test-support/index.ts"],"names":[],"mappings":"AACA,OAAO,EAA2B,KAAK,YAAY,EAAE,MAAM,SAAS,CAAC;AAErE,OAAO,EAAe,KAAK,WAAW,EAAE,KAAK,YAAY,EAAE,MAAM,aAAa,CAAC;AAE/E,UAAU,OAAO;IACf,eAAe,EAAE,YAAY,CAAC;CAC/B;AAID,KAAK,KAAK,GAAG;IACX,KAAK,CAAC,EAAE,EAAE,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC;IAC5C,SAAS,CAAC,EAAE,EAAE,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC;IAChD,MAAM,CAAC,EAAE,EAAE,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC;IAC7C,UAAU,CAAC,EAAE,EAAE,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC;CAClD,CAAC;AAmBF,wBAAsB,wBAAwB,CAC5C,cAAc,EAAE,YAAY,EAC5B,eAAe,CAAC,EAAE,OAAO,iBAK1B;AAED,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,KAAK,QAsB5C;AAED,wBAAgB,aAAa,CAAC,SAAS,EAAE,MAAM,QAO9C;AAED,wBAAgB,SAAS,gBAOxB;AAED,wBAAgB,UAAU,SAOzB"}
|