@graphql-mesh/plugin-snapshot 1.0.0-alpha-20230524103512-5967b8daf → 1.0.0-alpha-20230524104621-4b3420ece
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/cjs/index.js +2 -3
- package/esm/index.js +2 -2
- package/package.json +6 -6
package/cjs/index.js
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const
|
|
4
|
-
const minimatch_1 = tslib_1.__importDefault(require("minimatch"));
|
|
3
|
+
const minimatch_1 = require("minimatch");
|
|
5
4
|
const cross_helpers_1 = require("@graphql-mesh/cross-helpers");
|
|
6
5
|
const string_interpolation_1 = require("@graphql-mesh/string-interpolation");
|
|
7
6
|
const utils_1 = require("@graphql-mesh/utils");
|
|
@@ -24,7 +23,7 @@ function useSnapshot(pluginOptions) {
|
|
|
24
23
|
return {};
|
|
25
24
|
}
|
|
26
25
|
}
|
|
27
|
-
const matches = pluginOptions.apply.map(glob => new minimatch_1.
|
|
26
|
+
const matches = pluginOptions.apply.map(glob => new minimatch_1.Minimatch(glob));
|
|
28
27
|
const snapshotsDir = pluginOptions.outputDir || '__snapshots__';
|
|
29
28
|
return {
|
|
30
29
|
async onFetch({ url, options, setFetchFn }) {
|
package/esm/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { Minimatch } from 'minimatch';
|
|
2
2
|
import { fs, path, process } from '@graphql-mesh/cross-helpers';
|
|
3
3
|
import { hashObject } from '@graphql-mesh/string-interpolation';
|
|
4
4
|
import { getHeadersObj, pathExists, writeJSON } from '@graphql-mesh/utils';
|
|
@@ -21,7 +21,7 @@ export default function useSnapshot(pluginOptions) {
|
|
|
21
21
|
return {};
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
|
-
const matches = pluginOptions.apply.map(glob => new
|
|
24
|
+
const matches = pluginOptions.apply.map(glob => new Minimatch(glob));
|
|
25
25
|
const snapshotsDir = pluginOptions.outputDir || '__snapshots__';
|
|
26
26
|
return {
|
|
27
27
|
async onFetch({ url, options, setFetchFn }) {
|
package/package.json
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@graphql-mesh/plugin-snapshot",
|
|
3
|
-
"version": "1.0.0-alpha-
|
|
3
|
+
"version": "1.0.0-alpha-20230524104621-4b3420ece",
|
|
4
4
|
"sideEffects": false,
|
|
5
5
|
"peerDependencies": {
|
|
6
|
-
"@graphql-mesh/cross-helpers": "0.4.0-alpha-
|
|
7
|
-
"@graphql-mesh/types": "1.0.0-alpha-
|
|
8
|
-
"@graphql-mesh/utils": "1.0.0-alpha-
|
|
6
|
+
"@graphql-mesh/cross-helpers": "0.4.0-alpha-20230524104621-4b3420ece",
|
|
7
|
+
"@graphql-mesh/types": "1.0.0-alpha-20230524104621-4b3420ece",
|
|
8
|
+
"@graphql-mesh/utils": "1.0.0-alpha-20230524104621-4b3420ece",
|
|
9
9
|
"graphql": "*",
|
|
10
10
|
"tslib": "^2.4.0"
|
|
11
11
|
},
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@graphql-mesh/string-interpolation": "0.5.0-alpha-
|
|
13
|
+
"@graphql-mesh/string-interpolation": "0.5.0-alpha-20230524104621-4b3420ece",
|
|
14
14
|
"@whatwg-node/fetch": "^0.9.0",
|
|
15
|
-
"minimatch": "
|
|
15
|
+
"minimatch": "9.0.1"
|
|
16
16
|
},
|
|
17
17
|
"repository": {
|
|
18
18
|
"type": "git",
|