@faststore/api 2.2.78 → 3.0.1

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.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@faststore/api",
3
- "version": "2.2.69",
3
+ "version": "3.0.0",
4
4
  "license": "MIT",
5
5
  "main": "dist/cjs/src/index.js",
6
6
  "typings": "dist/esm/src/index.d.ts",
@@ -50,8 +50,8 @@
50
50
  },
51
51
  "devDependencies": {
52
52
  "@envelop/core": "^2.6.0",
53
- "@faststore/eslint-config": "^2.2.69",
54
- "@faststore/shared": "^2.2.69",
53
+ "@faststore/eslint-config": "^3.0.0",
54
+ "@faststore/shared": "^3.0.0",
55
55
  "@graphql-codegen/cli": "2.2.0",
56
56
  "@graphql-codegen/typescript": "2.2.2",
57
57
  "@types/express": "^4.17.16",
@@ -3,8 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.typeDefs = void 0;
4
4
  const graphql_1 = require("graphql");
5
5
  const load_files_1 = require("@graphql-tools/load-files");
6
- // Empty string ('') is interpreted as the current dir. Referencing it as './' won't work.
7
- exports.typeDefs = (0, load_files_1.loadFilesSync)('', { extensions: ['.graphql'] })
6
+ exports.typeDefs = (0, load_files_1.loadFilesSync)(__dirname, { extensions: ['.graphql'] })
8
7
  .map(graphql_1.print)
9
8
  .join('\n');
10
9
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/typeDefs/index.ts"],"names":[],"mappings":";;;AAAA,qCAA+B;AAE/B,0DAAyD;AAEzD,0FAA0F;AAC7E,QAAA,QAAQ,GAAG,IAAA,0BAAa,EAAC,EAAE,EAAE,EAAE,UAAU,EAAE,CAAC,UAAU,CAAC,EAAE,CAAC;KACpE,GAAG,CAAC,eAAK,CAAC;KACV,IAAI,CAAC,IAAI,CAAC,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/typeDefs/index.ts"],"names":[],"mappings":";;;AAAA,qCAA+B;AAE/B,0DAAyD;AAE5C,QAAA,QAAQ,GAAG,IAAA,0BAAa,EAAC,SAAS,EAAE,EAAE,UAAU,EAAE,CAAC,UAAU,CAAC,EAAE,CAAC;KAC3E,GAAG,CAAC,eAAK,CAAC;KACV,IAAI,CAAC,IAAI,CAAC,CAAA"}
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@faststore/api",
3
- "version": "2.2.69",
3
+ "version": "3.0.0",
4
4
  "license": "MIT",
5
5
  "main": "dist/cjs/src/index.js",
6
6
  "typings": "dist/esm/src/index.d.ts",
@@ -50,8 +50,8 @@
50
50
  },
51
51
  "devDependencies": {
52
52
  "@envelop/core": "^2.6.0",
53
- "@faststore/eslint-config": "^2.2.69",
54
- "@faststore/shared": "^2.2.69",
53
+ "@faststore/eslint-config": "^3.0.0",
54
+ "@faststore/shared": "^3.0.0",
55
55
  "@graphql-codegen/cli": "2.2.0",
56
56
  "@graphql-codegen/typescript": "2.2.2",
57
57
  "@types/express": "^4.17.16",
@@ -1,7 +1,6 @@
1
1
  import { print } from 'graphql';
2
2
  import { loadFilesSync } from '@graphql-tools/load-files';
3
- // Empty string ('') is interpreted as the current dir. Referencing it as './' won't work.
4
- export const typeDefs = loadFilesSync('', { extensions: ['.graphql'] })
3
+ export const typeDefs = loadFilesSync(__dirname, { extensions: ['.graphql'] })
5
4
  .map(print)
6
5
  .join('\n');
7
6
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/typeDefs/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;AAE/B,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAA;AAEzD,0FAA0F;AAC1F,MAAM,CAAC,MAAM,QAAQ,GAAG,aAAa,CAAC,EAAE,EAAE,EAAE,UAAU,EAAE,CAAC,UAAU,CAAC,EAAE,CAAC;KACpE,GAAG,CAAC,KAAK,CAAC;KACV,IAAI,CAAC,IAAI,CAAC,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/typeDefs/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;AAE/B,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAA;AAEzD,MAAM,CAAC,MAAM,QAAQ,GAAG,aAAa,CAAC,SAAS,EAAE,EAAE,UAAU,EAAE,CAAC,UAAU,CAAC,EAAE,CAAC;KAC3E,GAAG,CAAC,KAAK,CAAC;KACV,IAAI,CAAC,IAAI,CAAC,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@faststore/api",
3
- "version": "2.2.78",
3
+ "version": "3.0.1",
4
4
  "license": "MIT",
5
5
  "main": "dist/cjs/src/index.js",
6
6
  "typings": "dist/esm/src/index.d.ts",
@@ -50,8 +50,8 @@
50
50
  },
51
51
  "devDependencies": {
52
52
  "@envelop/core": "^2.6.0",
53
- "@faststore/eslint-config": "^2.2.78",
54
- "@faststore/shared": "^2.2.78",
53
+ "@faststore/eslint-config": "^3.0.1",
54
+ "@faststore/shared": "^3.0.1",
55
55
  "@graphql-codegen/cli": "2.2.0",
56
56
  "@graphql-codegen/typescript": "2.2.2",
57
57
  "@types/express": "^4.17.16",
@@ -76,5 +76,5 @@
76
76
  "volta": {
77
77
  "extends": "../../package.json"
78
78
  },
79
- "gitHead": "3c62fe1c0b2432c97a93a2be93f4c761d0ed546c"
79
+ "gitHead": "b4ce87c7fbac57cb20d34acb44806bb48c22f864"
80
80
  }
@@ -2,7 +2,6 @@ import { print } from 'graphql'
2
2
 
3
3
  import { loadFilesSync } from '@graphql-tools/load-files'
4
4
 
5
- // Empty string ('') is interpreted as the current dir. Referencing it as './' won't work.
6
- export const typeDefs = loadFilesSync('', { extensions: ['.graphql'] })
5
+ export const typeDefs = loadFilesSync(__dirname, { extensions: ['.graphql'] })
7
6
  .map(print)
8
7
  .join('\n')