gatsby-source-filesystem 2.1.56 → 2.1.57
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 +6 -0
- package/extend-file-node.js +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,12 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [2.1.57](https://github.com/gatsbyjs/gatsby/compare/gatsby-source-filesystem@2.1.56...gatsby-source-filesystem@2.1.57) (2020-03-18)
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
- **gatsby-source-filesystem:** Unify publicURL ([#22328](https://github.com/gatsbyjs/gatsby/issues/22328)) ([756d386](https://github.com/gatsbyjs/gatsby/commit/756d386))
|
|
11
|
+
|
|
6
12
|
## [2.1.56](https://github.com/gatsbyjs/gatsby/compare/gatsby-source-filesystem@2.1.55...gatsby-source-filesystem@2.1.56) (2020-03-16)
|
|
7
13
|
|
|
8
14
|
**Note:** Version bump only for package gatsby-source-filesystem
|
package/extend-file-node.js
CHANGED
|
@@ -24,7 +24,7 @@ module.exports = ({
|
|
|
24
24
|
description: `Copy file to static directory and return public url to it`,
|
|
25
25
|
resolve: (file, fieldArgs, context) => {
|
|
26
26
|
const details = getNodeAndSavePathDependency(file.id, context.path);
|
|
27
|
-
const fileName = `${file.
|
|
27
|
+
const fileName = `${file.internal.contentDigest}/${details.base}`;
|
|
28
28
|
const publicPath = path.join(process.cwd(), `public`, `static`, fileName);
|
|
29
29
|
|
|
30
30
|
if (!fs.existsSync(publicPath)) {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gatsby-source-filesystem",
|
|
3
3
|
"description": "Gatsby plugin which parses files within a directory for further parsing by other plugins",
|
|
4
|
-
"version": "2.1.
|
|
4
|
+
"version": "2.1.57",
|
|
5
5
|
"author": "Kyle Mathews <mathews.kyle@gmail.com>",
|
|
6
6
|
"bugs": {
|
|
7
7
|
"url": "https://github.com/gatsbyjs/gatsby/issues"
|
|
@@ -52,5 +52,5 @@
|
|
|
52
52
|
"engines": {
|
|
53
53
|
"node": ">=8.0.0"
|
|
54
54
|
},
|
|
55
|
-
"gitHead": "
|
|
55
|
+
"gitHead": "d2d32d4f61619da5200f2dd15a034cd51f5e9932"
|
|
56
56
|
}
|