gatsby-plugin-image 2.16.0-next.1 → 2.16.0-next.2
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.
|
@@ -119,7 +119,7 @@ var isRemoteURL = function (url) {
|
|
|
119
119
|
};
|
|
120
120
|
exports.isRemoteURL = isRemoteURL;
|
|
121
121
|
function writeImages(_a) {
|
|
122
|
-
var images = _a.images, pathPrefix = _a.pathPrefix, cacheDir = _a.cacheDir, reporter = _a.reporter, cache = _a.cache, sourceDir = _a.sourceDir, createNodeId = _a.createNodeId, createNode = _a.createNode,
|
|
122
|
+
var images = _a.images, pathPrefix = _a.pathPrefix, cacheDir = _a.cacheDir, reporter = _a.reporter, cache = _a.cache, sourceDir = _a.sourceDir, createNodeId = _a.createNodeId, createNode = _a.createNode, filename = _a.filename;
|
|
123
123
|
return __awaiter(this, void 0, void 0, function () {
|
|
124
124
|
var promises;
|
|
125
125
|
var _this = this;
|
|
@@ -149,11 +149,9 @@ function writeImages(_a) {
|
|
|
149
149
|
_f.trys.push([1, 3, , 4]);
|
|
150
150
|
return [4 /*yield*/, createRemoteFileNode({
|
|
151
151
|
url: src,
|
|
152
|
-
store: store,
|
|
153
152
|
cache: cache,
|
|
154
153
|
createNode: createNode,
|
|
155
|
-
createNodeId: createNodeId
|
|
156
|
-
reporter: reporter
|
|
154
|
+
createNodeId: createNodeId
|
|
157
155
|
})];
|
|
158
156
|
case 2:
|
|
159
157
|
file = _f.sent();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { GatsbyCache, Reporter, ParentSpanPluginArgs, Actions
|
|
1
|
+
import { GatsbyCache, Reporter, ParentSpanPluginArgs, Actions } from "gatsby";
|
|
2
2
|
import type { FileSystemNode } from "gatsby-source-filesystem";
|
|
3
3
|
import { IStaticImageProps } from "../components/static-image.server";
|
|
4
4
|
import { ISharpGatsbyImageArgs } from "../image-utils";
|
|
@@ -15,7 +15,7 @@ export declare function createImageNode({ fullPath, createNodeId, createNode, re
|
|
|
15
15
|
reporter: Reporter;
|
|
16
16
|
}): Promise<FileSystemNode | undefined>;
|
|
17
17
|
export declare const isRemoteURL: (url: string) => boolean;
|
|
18
|
-
export declare function writeImages({ images, pathPrefix, cacheDir, reporter, cache, sourceDir, createNodeId, createNode,
|
|
18
|
+
export declare function writeImages({ images, pathPrefix, cacheDir, reporter, cache, sourceDir, createNodeId, createNode, filename, }: {
|
|
19
19
|
images: Map<string, IStaticImageProps>;
|
|
20
20
|
pathPrefix: string;
|
|
21
21
|
cacheDir: string;
|
|
@@ -24,7 +24,6 @@ export declare function writeImages({ images, pathPrefix, cacheDir, reporter, ca
|
|
|
24
24
|
sourceDir: string;
|
|
25
25
|
createNodeId: ParentSpanPluginArgs["createNodeId"];
|
|
26
26
|
createNode: Actions["createNode"];
|
|
27
|
-
store: Store;
|
|
28
27
|
filename: string;
|
|
29
28
|
}): Promise<void>;
|
|
30
29
|
export declare function writeImage(file: FileSystemNode, args: ISharpGatsbyImageArgs, pathPrefix: string, reporter: Reporter, cache: GatsbyCache, filename: string): Promise<void>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gatsby-plugin-image",
|
|
3
|
-
"version": "2.16.0-next.
|
|
3
|
+
"version": "2.16.0-next.2",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "npm-run-all --npm-path npm -s clean -p build:*",
|
|
6
6
|
"build:gatsby-node": "tsc --jsx react --downlevelIteration true --skipLibCheck true --esModuleInterop true --outDir dist/ src/gatsby-node.ts src/babel-plugin-parse-static-images.ts src/resolver-utils.ts src/types.d.ts -d --declarationDir dist/src",
|
|
@@ -94,5 +94,5 @@
|
|
|
94
94
|
},
|
|
95
95
|
"author": "Matt Kane <matt@gatsbyjs.com>",
|
|
96
96
|
"license": "MIT",
|
|
97
|
-
"gitHead": "
|
|
97
|
+
"gitHead": "ba182c6367c636d58b2180dd024526708e5a5fe8"
|
|
98
98
|
}
|