decap-cms-backend-github 3.2.3-beta.0 → 3.3.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/CHANGELOG.md +5 -1
- package/dist/decap-cms-backend-github.js +67 -67
- package/dist/decap-cms-backend-github.js.map +1 -1
- package/dist/esm/API.js +172 -209
- package/dist/esm/AuthenticationPage.js +85 -98
- package/dist/esm/GraphQLAPI.js +125 -121
- package/dist/esm/fragmentTypes.js +0 -2
- package/dist/esm/fragments.js +8 -14
- package/dist/esm/implementation.js +85 -122
- package/dist/esm/index.js +9 -33
- package/dist/esm/mutations.js +10 -17
- package/dist/esm/queries.js +18 -28
- package/dist/esm/types/semaphore.d.js +0 -1
- package/package.json +7 -3
- package/src/API.ts +6 -1
- package/src/AuthenticationPage.js +10 -0
- package/src/GraphQLAPI.ts +2 -1
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "decap-cms-backend-github",
|
|
3
3
|
"description": "GitHub backend for Decap CMS",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.3.1",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": "https://github.com/decaporg/decap-cms/tree/main/packages/decap-cms-backend-github",
|
|
7
7
|
"bugs": "https://github.com/decaporg/decap-cms/issues",
|
|
@@ -28,6 +28,7 @@
|
|
|
28
28
|
"graphql": "^15.0.0",
|
|
29
29
|
"graphql-tag": "^2.10.1",
|
|
30
30
|
"js-base64": "^3.0.0",
|
|
31
|
+
"path-browserify": "^1.0.1",
|
|
31
32
|
"semaphore": "^1.1.0"
|
|
32
33
|
},
|
|
33
34
|
"peerDependencies": {
|
|
@@ -38,7 +39,10 @@
|
|
|
38
39
|
"decap-cms-ui-default": "^3.0.0",
|
|
39
40
|
"lodash": "^4.17.11",
|
|
40
41
|
"prop-types": "^15.7.2",
|
|
41
|
-
"react": "
|
|
42
|
+
"react": "^19.1.0"
|
|
42
43
|
},
|
|
43
|
-
"
|
|
44
|
+
"browser": {
|
|
45
|
+
"path": "path-browserify"
|
|
46
|
+
},
|
|
47
|
+
"gitHead": "bfe122aee875ceaaf9f132110db7f8797eedfc5b"
|
|
44
48
|
}
|
package/src/API.ts
CHANGED
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
import { Base64 } from 'js-base64';
|
|
2
2
|
import semaphore from 'semaphore';
|
|
3
|
-
import
|
|
3
|
+
import initial from 'lodash/initial';
|
|
4
|
+
import last from 'lodash/last';
|
|
5
|
+
import partial from 'lodash/partial';
|
|
6
|
+
import result from 'lodash/result';
|
|
7
|
+
import trimStart from 'lodash/trimStart';
|
|
8
|
+
import trim from 'lodash/trim';
|
|
4
9
|
import { oneLine } from 'common-tags';
|
|
5
10
|
import {
|
|
6
11
|
getAllResponses,
|
|
@@ -35,6 +35,16 @@ export default class GitHubAuthenticationPage extends React.Component {
|
|
|
35
35
|
|
|
36
36
|
state = {};
|
|
37
37
|
|
|
38
|
+
componentDidMount() {
|
|
39
|
+
// Manually validate PropTypes - React 19 breaking change
|
|
40
|
+
PropTypes.checkPropTypes(
|
|
41
|
+
GitHubAuthenticationPage.propTypes,
|
|
42
|
+
this.props,
|
|
43
|
+
'prop',
|
|
44
|
+
'GitHubAuthenticationPage',
|
|
45
|
+
);
|
|
46
|
+
}
|
|
47
|
+
|
|
38
48
|
getPermissionToFork = () => {
|
|
39
49
|
return new Promise((resolve, reject) => {
|
|
40
50
|
this.setState({
|
package/src/GraphQLAPI.ts
CHANGED
|
@@ -15,7 +15,8 @@ import {
|
|
|
15
15
|
CMS_BRANCH_PREFIX,
|
|
16
16
|
throwOnConflictingBranches,
|
|
17
17
|
} from 'decap-cms-lib-util';
|
|
18
|
-
import
|
|
18
|
+
import trim from 'lodash/trim';
|
|
19
|
+
import trimStart from 'lodash/trimStart';
|
|
19
20
|
|
|
20
21
|
import introspectionQueryResultData from './fragmentTypes';
|
|
21
22
|
import API, { API_NAME, PullRequestState, MOCK_PULL_REQUEST } from './API';
|