decap-cms-core 3.7.0 → 3.7.1
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/dist/decap-cms-core.js +17 -17
- package/dist/decap-cms-core.js.LICENSE.txt +0 -12
- package/dist/decap-cms-core.js.map +1 -1
- package/dist/esm/bootstrap.js +3 -2
- package/dist/esm/components/UI/ErrorBoundary.js +2 -2
- package/dist/esm/formats/toml.js +2 -2
- package/dist/esm/lib/polyfill.js +8 -0
- package/package.json +8 -2
- package/src/bootstrap.js +1 -0
- package/src/formats/toml.ts +2 -2
- package/src/lib/polyfill.js +9 -0
package/dist/esm/bootstrap.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import './lib/polyfill';
|
|
1
2
|
import React from 'react';
|
|
2
3
|
import { createRoot } from 'react-dom/client';
|
|
3
4
|
import { Provider, connect } from 'react-redux';
|
|
@@ -48,8 +49,8 @@ function bootstrap(opts = {}) {
|
|
|
48
49
|
/**
|
|
49
50
|
* Log the version number.
|
|
50
51
|
*/
|
|
51
|
-
if (typeof "3.7.
|
|
52
|
-
console.log(`decap-cms-core ${"3.7.
|
|
52
|
+
if (typeof "3.7.1" === 'string') {
|
|
53
|
+
console.log(`decap-cms-core ${"3.7.1"}`);
|
|
53
54
|
}
|
|
54
55
|
|
|
55
56
|
/**
|
|
@@ -44,8 +44,8 @@ function buildIssueTemplate({
|
|
|
44
44
|
let version = '';
|
|
45
45
|
if (typeof DECAP_CMS_VERSION === 'string') {
|
|
46
46
|
version = `decap-cms@${DECAP_CMS_VERSION}`;
|
|
47
|
-
} else if (typeof "3.7.
|
|
48
|
-
version = `decap-cms-app@${"3.7.
|
|
47
|
+
} else if (typeof "3.7.2" === 'string') {
|
|
48
|
+
version = `decap-cms-app@${"3.7.2"}`;
|
|
49
49
|
}
|
|
50
50
|
const template = getIssueTemplate({
|
|
51
51
|
version,
|
package/dist/esm/formats/toml.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import parseToml from '@iarna/toml/parse-string';
|
|
2
2
|
import tomlify from 'tomlify-j0.4';
|
|
3
3
|
import dayjs from 'dayjs';
|
|
4
4
|
import AssetProxy from '../valueObjects/AssetProxy';
|
|
@@ -21,7 +21,7 @@ function outputReplacer(_key, value) {
|
|
|
21
21
|
}
|
|
22
22
|
export default {
|
|
23
23
|
fromFile(content) {
|
|
24
|
-
return
|
|
24
|
+
return parseToml(content);
|
|
25
25
|
},
|
|
26
26
|
toFile(data, sortedKeys = []) {
|
|
27
27
|
return tomlify.toToml(data, {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "decap-cms-core",
|
|
3
3
|
"description": "Decap CMS core application, see decap-cms package for the main distribution.",
|
|
4
|
-
"version": "3.7.
|
|
4
|
+
"version": "3.7.1",
|
|
5
5
|
"repository": "https://github.com/decaporg/decap-cms/tree/main/packages/decap-cms-core",
|
|
6
6
|
"bugs": "https://github.com/decaporg/decap-cms/issues",
|
|
7
7
|
"module": "dist/esm/index.js",
|
|
@@ -27,6 +27,7 @@
|
|
|
27
27
|
"@iarna/toml": "2.2.5",
|
|
28
28
|
"@reduxjs/toolkit": "^1.9.1",
|
|
29
29
|
"@vercel/stega": "^0.1.2",
|
|
30
|
+
"buffer": "^6.0.3",
|
|
30
31
|
"clean-stack": "^5.2.0",
|
|
31
32
|
"copy-text-to-clipboard": "^3.0.0",
|
|
32
33
|
"dayjs": "^1.11.10",
|
|
@@ -40,6 +41,7 @@
|
|
|
40
41
|
"js-base64": "^3.0.0",
|
|
41
42
|
"jwt-decode": "^3.0.0",
|
|
42
43
|
"node-polyglot": "^2.3.0",
|
|
44
|
+
"path-browserify": "^1.0.1",
|
|
43
45
|
"prop-types": "^15.7.2",
|
|
44
46
|
"react": "^19.1.0",
|
|
45
47
|
"react-dnd": "^14.0.0",
|
|
@@ -90,9 +92,13 @@
|
|
|
90
92
|
},
|
|
91
93
|
"devDependencies": {
|
|
92
94
|
"@types/history": "^4.7.8",
|
|
95
|
+
"@types/iarna__toml": "^2.0.5",
|
|
93
96
|
"@types/redux-mock-store": "^1.0.2",
|
|
94
97
|
"@types/url-join": "^4.0.0",
|
|
95
98
|
"redux-mock-store": "^1.5.3"
|
|
96
99
|
},
|
|
97
|
-
"
|
|
100
|
+
"browser": {
|
|
101
|
+
"path": "path-browserify"
|
|
102
|
+
},
|
|
103
|
+
"gitHead": "bfe122aee875ceaaf9f132110db7f8797eedfc5b"
|
|
98
104
|
}
|
package/src/bootstrap.js
CHANGED
package/src/formats/toml.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import parseToml from '@iarna/toml/parse-string';
|
|
2
2
|
import tomlify from 'tomlify-j0.4';
|
|
3
3
|
import dayjs from 'dayjs';
|
|
4
4
|
|
|
@@ -24,7 +24,7 @@ function outputReplacer(_key: string, value: unknown) {
|
|
|
24
24
|
|
|
25
25
|
export default {
|
|
26
26
|
fromFile(content: string) {
|
|
27
|
-
return
|
|
27
|
+
return parseToml(content);
|
|
28
28
|
},
|
|
29
29
|
|
|
30
30
|
toFile(data: object, sortedKeys: string[] = []) {
|