decap-cms-backend-aws-cognito-github-proxy 3.5.0 → 3.6.0
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
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
|
+
# [3.6.0](https://github.com/decaporg/decap-cms/compare/decap-cms-backend-aws-cognito-github-proxy@3.5.0...decap-cms-backend-aws-cognito-github-proxy@3.6.0) (2026-06-08)
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
- remove unused dependencies and specify missing dependencies ([#7833](https://github.com/decaporg/decap-cms/issues/7833)) ([e324a14](https://github.com/decaporg/decap-cms/commit/e324a142f7f0ba63c760b2e8524d971c35200f87))
|
|
11
|
+
|
|
6
12
|
# [3.5.0](https://github.com/decaporg/decap-cms/compare/decap-cms-backend-aws-cognito-github-proxy@3.4.1...decap-cms-backend-aws-cognito-github-proxy@3.5.0) (2025-12-18)
|
|
7
13
|
|
|
8
14
|
**Note:** Version bump only for package decap-cms-backend-aws-cognito-github-proxy
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("decap-cms-backend-github"),require("react"),require("decap-cms-ui-auth"),require("@emotion/react")):"function"==typeof define&&define.amd?define("DecapCmsBackendAwsCognitoGithubProxy",["decap-cms-backend-github","react","decap-cms-ui-auth","@emotion/react"],t):"object"==typeof exports?exports.DecapCmsBackendAwsCognitoGithubProxy=t(require("decap-cms-backend-github"),require("react"),require("decap-cms-ui-auth"),require("@emotion/react")):e.DecapCmsBackendAwsCognitoGithubProxy=t(e.DecapCmsBackendGithub,e.React,e.DecapCmsUiAuth,e.DecapCmsDefaultExports.EmotionCore)}(window,(e,t,r,o)=>(()=>{"use strict";var s={
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("decap-cms-backend-github"),require("react"),require("decap-cms-ui-auth"),require("@emotion/react")):"function"==typeof define&&define.amd?define("DecapCmsBackendAwsCognitoGithubProxy",["decap-cms-backend-github","react","decap-cms-ui-auth","@emotion/react"],t):"object"==typeof exports?exports.DecapCmsBackendAwsCognitoGithubProxy=t(require("decap-cms-backend-github"),require("react"),require("decap-cms-ui-auth"),require("@emotion/react")):e.DecapCmsBackendAwsCognitoGithubProxy=t(e.DecapCmsBackendGithub,e.React,e.DecapCmsUiAuth,e.DecapCmsDefaultExports.EmotionCore)}(window,(e,t,r,o)=>(()=>{"use strict";var s={119(e){e.exports=t},403(t){t.exports=e},110(e){e.exports=o},484(e){e.exports=r}},n={};function i(e){var t=n[e];if(void 0!==t)return t.exports;var r=n[e]={exports:{}};return s[e](r,r.exports,i),r.exports}i.d=(e,t)=>{for(var r in t)i.o(t,r)&&!i.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var a={};i.d(a,{DecapCmsBackendAwsCognitoGithubProxy:()=>d});var c=i(403),u=(i(119),i(484)),p=i(110);class h extends c.GitHubBackend{constructor(e,t={}){super(e,t),this.bypassWriteAccessCheckForAppTokens=!0,this.tokenKeyword="Bearer"}authComponent(){const e=e=>{const t={...e,backend:this};return(0,p.jsx)(u.PKCEAuthenticationPage,t)};return e.displayName="AuthenticationPage",e}async currentUser({token:e}){return this._currentUserPromise||(this._currentUserPromise=fetch(this.baseUrl+"/oauth2/userInfo",{headers:{Authorization:`${this.tokenKeyword} ${e}`}}).then(async e=>{if(401==e.status)return this.logout(),Promise.reject("Token expired");const t=await e.json(),r=this.originRepo.split("/")[1];return{name:t.email,login:r,avatar_url:`https://github.com/${r}.png`}})),this._currentUserPromise}async getPullRequestAuthor(e){return e.user?.login}}const d={AwsCognitoGitHubProxyBackend:h,API:c.API};return a.DecapCmsBackendAwsCognitoGithubProxy})());
|
|
2
2
|
//# sourceMappingURL=decap-cms-backend-aws-cognito-github-proxy.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"decap-cms-backend-aws-cognito-github-proxy.js","mappings":"CAAA,SAA2CA,EAAMC,GAC1B,iBAAZC,SAA0C,iBAAXC,OACxCA,OAAOD,QAAUD,EAAQG,QAAQ,4BAA6BA,QAAQ,SAAUA,QAAQ,qBAAsBA,QAAQ,mBAC7F,mBAAXC,QAAyBA,OAAOC,IAC9CD,OAAO,uCAAwC,CAAC,2BAA4B,QAAS,oBAAqB,kBAAmBJ,GACnG,iBAAZC,QACdA,QAA8C,qCAAID,EAAQG,QAAQ,4BAA6BA,QAAQ,SAAUA,QAAQ,qBAAsBA,QAAQ,mBAEvJJ,EAA2C,qCAAIC,EAAQD,EAA4B,sBAAGA,EAAY,MAAGA,EAAqB,eAAGA,EAA6B,uBAAe,YAC1K,CATD,CASGO,OAAQ,CAACC,EAAkCC,EAAkCC,EAAkCC,I,iCCTlHR,EAAOD,
|
|
1
|
+
{"version":3,"file":"decap-cms-backend-aws-cognito-github-proxy.js","mappings":"CAAA,SAA2CA,EAAMC,GAC1B,iBAAZC,SAA0C,iBAAXC,OACxCA,OAAOD,QAAUD,EAAQG,QAAQ,4BAA6BA,QAAQ,SAAUA,QAAQ,qBAAsBA,QAAQ,mBAC7F,mBAAXC,QAAyBA,OAAOC,IAC9CD,OAAO,uCAAwC,CAAC,2BAA4B,QAAS,oBAAqB,kBAAmBJ,GACnG,iBAAZC,QACdA,QAA8C,qCAAID,EAAQG,QAAQ,4BAA6BA,QAAQ,SAAUA,QAAQ,qBAAsBA,QAAQ,mBAEvJJ,EAA2C,qCAAIC,EAAQD,EAA4B,sBAAGA,EAAY,MAAGA,EAAqB,eAAGA,EAA6B,uBAAe,YAC1K,CATD,CASGO,OAAQ,CAACC,EAAkCC,EAAkCC,EAAkCC,I,iCCTlHR,EAAOD,QAAUO,C,SCAjBN,EAAO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ML,EAASM,MACfC,MAAOL,EACPM,WAAY,sBAAsBN,YAIjC3B,KAAKa,mBACd,CAEA,0BAAMqB,CACJC,GAEA,OAAOA,EAAYC,MAAMJ,KAC3B,EChDK,MAAMK,EAAuC,CAClD3C,6BAA4B,EAC5B4C,IAAGA,EAAAA,K","sources":["webpack://DecapCmsBackendAwsCognitoGithubProxy/webpack/universalModuleDefinition","webpack://DecapCmsBackendAwsCognitoGithubProxy/external umd {\"root\":\"React\",\"commonjs2\":\"react\",\"commonjs\":\"react\",\"amd\":\"react\",\"umd\":\"react\"}","webpack://DecapCmsBackendAwsCognitoGithubProxy/external umd {\"root\":[\"DecapCmsBackendGithub\"],\"commonjs2\":\"decap-cms-backend-github\",\"commonjs\":\"decap-cms-backend-github\",\"amd\":\"decap-cms-backend-github\",\"umd\":\"decap-cms-backend-github\"}","webpack://DecapCmsBackendAwsCognitoGithubProxy/external umd {\"root\":[\"DecapCmsDefaultExports\",\"EmotionCore\"],\"commonjs2\":\"@emotion/react\",\"commonjs\":\"@emotion/react\",\"amd\":\"@emotion/react\",\"umd\":\"@emotion/react\"}","webpack://DecapCmsBackendAwsCognitoGithubProxy/external umd {\"root\":[\"DecapCmsUiAuth\"],\"commonjs2\":\"decap-cms-ui-auth\",\"commonjs\":\"decap-cms-ui-auth\",\"amd\":\"decap-cms-ui-auth\",\"umd\":\"decap-cms-ui-auth\"}","webpack://DecapCmsBackendAwsCognitoGithubProxy/webpack/bootstrap","webpack://DecapCmsBackendAwsCognitoGithubProxy/webpack/runtime/define property getters","webpack://DecapCmsBackendAwsCognitoGithubProxy/webpack/runtime/hasOwnProperty shorthand","webpack://DecapCmsBackendAwsCognitoGithubProxy/./src/implementation.tsx","webpack://DecapCmsBackendAwsCognitoGithubProxy/./src/index.ts"],"sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory(require(\"decap-cms-backend-github\"), require(\"react\"), require(\"decap-cms-ui-auth\"), require(\"@emotion/react\"));\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine(\"DecapCmsBackendAwsCognitoGithubProxy\", [\"decap-cms-backend-github\", \"react\", \"decap-cms-ui-auth\", \"@emotion/react\"], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"DecapCmsBackendAwsCognitoGithubProxy\"] = factory(require(\"decap-cms-backend-github\"), require(\"react\"), require(\"decap-cms-ui-auth\"), require(\"@emotion/react\"));\n\telse\n\t\troot[\"DecapCmsBackendAwsCognitoGithubProxy\"] = factory(root[\"DecapCmsBackendGithub\"], root[\"React\"], root[\"DecapCmsUiAuth\"], root[\"DecapCmsDefaultExports\"][\"EmotionCore\"]);\n})(window, (__WEBPACK_EXTERNAL_MODULE__403__, __WEBPACK_EXTERNAL_MODULE__119__, __WEBPACK_EXTERNAL_MODULE__484__, __WEBPACK_EXTERNAL_MODULE__110__) => {\nreturn ","module.exports = __WEBPACK_EXTERNAL_MODULE__119__;","module.exports = __WEBPACK_EXTERNAL_MODULE__403__;","module.exports = __WEBPACK_EXTERNAL_MODULE__110__;","module.exports = __WEBPACK_EXTERNAL_MODULE__484__;","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","import * as React from 'react';\nimport { GitHubBackend } from 'decap-cms-backend-github';\nimport { PKCEAuthenticationPage } from 'decap-cms-ui-auth';\n\nimport type { GitHubUser } from 'decap-cms-backend-github/src/implementation';\nimport type { Config } from 'decap-cms-lib-util/src';\nimport type { Endpoints } from '@octokit/types';\n\nexport default class AwsCognitoGitHubProxyBackend extends GitHubBackend {\n constructor(config: Config, options = {}) {\n super(config, options);\n\n this.bypassWriteAccessCheckForAppTokens = true;\n this.tokenKeyword = 'Bearer';\n }\n\n authComponent() {\n const wrappedAuthenticationPage = (props: Record<string, unknown>) => {\n const allProps = { ...props, backend: this };\n return <PKCEAuthenticationPage {...allProps} />;\n };\n wrappedAuthenticationPage.displayName = 'AuthenticationPage';\n return wrappedAuthenticationPage;\n }\n\n async currentUser({ token }: { token: string }): Promise<GitHubUser> {\n if (!this._currentUserPromise) {\n this._currentUserPromise = fetch(this.baseUrl + '/oauth2/userInfo', {\n headers: {\n Authorization: `${this.tokenKeyword} ${token}`,\n },\n }).then(async (res: Response): Promise<GitHubUser> => {\n if (res.status == 401) {\n this.logout();\n return Promise.reject('Token expired');\n }\n const userInfo = await res.json();\n const owner = this.originRepo.split('/')[1];\n return {\n name: userInfo.email,\n login: owner,\n avatar_url: `https://github.com/${owner}.png`,\n } as GitHubUser;\n });\n }\n return this._currentUserPromise;\n }\n\n async getPullRequestAuthor(\n pullRequest: Endpoints['GET /repos/{owner}/{repo}/pulls']['response']['data'][0],\n ) {\n return pullRequest.user?.login;\n }\n}\n","import { API } from 'decap-cms-backend-github';\n\nimport AwsCognitoGitHubProxyBackend from './implementation';\n\nexport const DecapCmsBackendAwsCognitoGithubProxy = {\n AwsCognitoGitHubProxyBackend,\n API,\n};\n\nexport { AwsCognitoGitHubProxyBackend, API };\n"],"names":["root","factory","exports","module","require","define","amd","window","__WEBPACK_EXTERNAL_MODULE__403__","__WEBPACK_EXTERNAL_MODULE__119__","__WEBPACK_EXTERNAL_MODULE__484__","__WEBPACK_EXTERNAL_MODULE__110__","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","undefined","__webpack_modules__","d","definition","key","o","Object","defineProperty","enumerable","get","obj","prop","prototype","hasOwnProperty","call","AwsCognitoGitHubProxyBackend","GitHubBackend","constructor","config","options","super","this","bypassWriteAccessCheckForAppTokens","tokenKeyword","authComponent","wrappedAuthenticationPage","props","allProps","backend","___EmotionJSX","PKCEAuthenticationPage","displayName","currentUser","token","_currentUserPromise","fetch","baseUrl","headers","Authorization","then","async","res","status","logout","Promise","reject","userInfo","json","owner","originRepo","split","name","email","login","avatar_url","getPullRequestAuthor","pullRequest","user","DecapCmsBackendAwsCognitoGithubProxy","API"],"sourceRoot":""}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "decap-cms-backend-aws-cognito-github-proxy",
|
|
3
3
|
"description": "GitHub backend for Decap CMS proxied through AWS Cognito",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.6.0",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": "https://github.com/decaporg/decap-cms/tree/main/packages/decap-cms-backend-aws-cognito-github-proxy",
|
|
7
7
|
"bugs": "https://github.com/decaporg/decap-cms/issues",
|
|
@@ -19,17 +19,6 @@
|
|
|
19
19
|
"build": "cross-env NODE_ENV=production webpack",
|
|
20
20
|
"build:esm": "cross-env NODE_ENV=esm babel src --out-dir dist/esm --ignore **/__tests__ --root-mode upward --extensions \".js,.jsx,.ts,.tsx\""
|
|
21
21
|
},
|
|
22
|
-
"dependencies": {
|
|
23
|
-
"apollo-cache-inmemory": "^1.6.2",
|
|
24
|
-
"apollo-client": "^2.6.3",
|
|
25
|
-
"apollo-link-context": "^1.0.18",
|
|
26
|
-
"apollo-link-http": "^1.5.15",
|
|
27
|
-
"common-tags": "^1.8.0",
|
|
28
|
-
"graphql": "^15.0.0",
|
|
29
|
-
"graphql-tag": "^2.10.1",
|
|
30
|
-
"js-base64": "^3.0.0",
|
|
31
|
-
"semaphore": "^1.1.0"
|
|
32
|
-
},
|
|
33
22
|
"peerDependencies": {
|
|
34
23
|
"@emotion/react": "^11.11.1",
|
|
35
24
|
"@emotion/styled": "^11.11.0",
|
|
@@ -42,5 +31,5 @@
|
|
|
42
31
|
"prop-types": "^15.7.2",
|
|
43
32
|
"react": "^19.1.0"
|
|
44
33
|
},
|
|
45
|
-
"gitHead": "
|
|
34
|
+
"gitHead": "567a80101f4846853701ad7d8abdc29b5e4fab56"
|
|
46
35
|
}
|