Skip to content

Commit

Permalink
chore: dump indicator for each filename hash
Browse files Browse the repository at this point in the history
  • Loading branch information
dimaslanjaka committed Nov 3, 2024
1 parent 3472cb5 commit d32ba5a
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 14 deletions.
Binary file modified release/hexo-seo-2.0.1.tgz
Binary file not shown.
Binary file modified release/hexo-seo.tgz
Binary file not shown.
20 changes: 10 additions & 10 deletions release/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@
},
"/release/hexo-seo.tgz": {
"integrity": {
"sha1": "52e523e5d62ef3d495624d45d3d87807eb48fdb4",
"sha256": "9bZktq3ROjIPpXwZt8gwPQnoFFUcieZn8u0xRdzKFB4=",
"md5": "a5f38c0835d0d6201ff17f372c66c63d",
"sha512": "XPmXQR0NqHbvJDsDBHuYQriWbqFuKHnGfOfTlEJhfnfFTHhNsLCYY2TcjA6Cajqu2we1EaDM3oTfmjIvHbeJPw=="
"sha1": "432ab746cefa9570504e44f6c53c2343f84fa553",
"sha256": "MmI2jkHoqVGd9uAZDOMtaaim52dl2Ts6ti9RdGuChok=",
"md5": "d1279ee6d8bca0582d7a765fcbbc6410",
"sha512": "L9z+kxNg8MdMuvEc+cSM/oBVzCEPHh2n1J15WbcnvhEYHYQpA6VxJ9XG7tpqKjEQvS9tYCeWIaj3ZIXLzl8Rcg=="
},
"size": "428.27 KB"
"size": "428.50 KB"
},
"/package-lock.json": {
"integrity": {
Expand Down Expand Up @@ -172,11 +172,11 @@
},
"/release/hexo-seo-2.0.1.tgz": {
"integrity": {
"sha1": "52e523e5d62ef3d495624d45d3d87807eb48fdb4",
"sha256": "9bZktq3ROjIPpXwZt8gwPQnoFFUcieZn8u0xRdzKFB4=",
"md5": "a5f38c0835d0d6201ff17f372c66c63d",
"sha512": "XPmXQR0NqHbvJDsDBHuYQriWbqFuKHnGfOfTlEJhfnfFTHhNsLCYY2TcjA6Cajqu2we1EaDM3oTfmjIvHbeJPw=="
"sha1": "432ab746cefa9570504e44f6c53c2343f84fa553",
"sha256": "MmI2jkHoqVGd9uAZDOMtaaim52dl2Ts6ti9RdGuChok=",
"md5": "d1279ee6d8bca0582d7a765fcbbc6410",
"sha512": "L9z+kxNg8MdMuvEc+cSM/oBVzCEPHh2n1J15WbcnvhEYHYQpA6VxJ9XG7tpqKjEQvS9tYCeWIaj3ZIXLzl8Rcg=="
},
"size": "428.27 KB"
"size": "428.50 KB"
}
}
4 changes: 2 additions & 2 deletions release/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
| 1.4.0 | https://github.com/dimaslanjaka/hexo-seo/raw/8242ac3/release/hexo-seo-1.4.0.tgz |
| 1.4.3 | https://github.com/dimaslanjaka/hexo-seo/raw/8242ac3/release/hexo-seo-1.4.3.tgz |
| 2.0.0 | https://github.com/dimaslanjaka/hexo-seo/raw/661fc12/release/hexo-seo-2.0.0.tgz |
| 2.0.1 | https://github.com/dimaslanjaka/hexo-seo/raw/661fc12/release/hexo-seo-2.0.1.tgz |
| latest | https://github.com/dimaslanjaka/hexo-seo/raw/661fc12/release/hexo-seo.tgz |
| 2.0.1 | https://github.com/dimaslanjaka/hexo-seo/raw/9245940/release/hexo-seo-2.0.1.tgz |
| latest | https://github.com/dimaslanjaka/hexo-seo/raw/9245940/release/hexo-seo.tgz |
| latest | https://github.com/dimaslanjaka/hexo-seo/raw/pre-release/release/hexo-seo.tgz |

use this tarball with `resolutions`:
Expand Down
4 changes: 2 additions & 2 deletions src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,9 @@ export function dump(filename: string, ...obj: any) {
const filePath = path.join(process.cwd(), '/tmp/hexo-seo/dump', hash);

// truncate directory on first time
if (!('dump' in firstIndicator)) {
if (!(hash in firstIndicator)) {
rimrafSync(filePath);
firstIndicator['dump'] = true;
firstIndicator[hash] = true;
}

if (!fs.existsSync(path.dirname(filePath))) {
Expand Down

0 comments on commit d32ba5a

Please sign in to comment.