storyblok-backup 0.1.1 → 0.1.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.
package/README.md CHANGED
@@ -31,12 +31,12 @@ The backup script will fetch the following resources of a Storyblok space using
31
31
  - Pipeline Branches
32
32
  - Access Tokens
33
33
 
34
- The restore script is able to individually restore the the resources from the backup files (via update or create) with the following exceptions:
34
+ The restore script is able to individually restore the resources from the backup files (via update or create) with the following exceptions:
35
35
 
36
- - Assets: Creating assets is not supported
37
- - Tasks: Currently not supported due to missing fields returned from management API
36
+ - Assets: Only updating asset-resource-data is supported. Creating assets and updating asset-files is not supported.
37
+ - Tasks: Currently not supported due to missing fields returned from management API.
38
38
  - Field types: Currently not supported
39
- - Workflow stage changes: No update possible
39
+ - Workflow stage changes: No update possible.
40
40
  - Access Tokens: Creating access tokens from backup makes no sense, since it will result in a new token-string.
41
41
 
42
42
  ## Installation
@@ -106,8 +106,8 @@ const fileName =
106
106
  [
107
107
  filePrefix,
108
108
  new Date().getFullYear(),
109
- new Date().getMonth().toString().padStart(2, '0'),
110
- new Date().getDay().toString().padStart(2, '0'),
109
+ (new Date().getMonth() + 1).toString().padStart(2, '0'),
110
+ new Date().getDate().toString().padStart(2, '0'),
111
111
  new Date().getHours().toString().padStart(2, '0'),
112
112
  new Date().getMinutes().toString().padStart(2, '0'),
113
113
  new Date().getSeconds().toString().padStart(2, '0'),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "storyblok-backup",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "npx CLI tool to create a full backup of a Storyblok space and restore single resources from it.",
5
5
  "scripts": {
6
6
  "upgrade": "npx npm-check-updates -i -u && pnpm install",