@xwiki/cristal-electron-authentication-github-preload 0.18.0 → 0.19.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 +11 -0
- package/dist/index.d.cts +1 -0
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js.map +1 -1
- package/package.json +7 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
# @xwiki/cristal-electron-authentication-github-preload
|
|
2
2
|
|
|
3
|
+
## 0.19.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 3eea53e: Cristal 0.19 Release
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- Updated dependencies [3eea53e]
|
|
12
|
+
- @xwiki/cristal-authentication-api@0.19.0
|
|
13
|
+
|
|
3
14
|
## 0.18.0
|
|
4
15
|
|
|
5
16
|
### Minor Changes
|
package/dist/index.d.cts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/index.es.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es.js","sources":["../__vite-browser-external","../../../../../node_modules/.pnpm/electron@36.
|
|
1
|
+
{"version":3,"file":"index.es.js","sources":["../__vite-browser-external","../../../../../node_modules/.pnpm/electron@36.4.0/node_modules/electron/index.js","../src/index.ts"],"sourcesContent":["export default {}","const fs = require('fs');\nconst path = require('path');\n\nconst pathFile = path.join(__dirname, 'path.txt');\n\nfunction getElectronPath () {\n let executablePath;\n if (fs.existsSync(pathFile)) {\n executablePath = fs.readFileSync(pathFile, 'utf-8');\n }\n if (process.env.ELECTRON_OVERRIDE_DIST_PATH) {\n return path.join(process.env.ELECTRON_OVERRIDE_DIST_PATH, executablePath || 'electron');\n }\n if (executablePath) {\n return path.join(__dirname, 'dist', executablePath);\n } else {\n throw new Error('Electron failed to install correctly, please delete node_modules/electron and try installing again');\n }\n}\n\nmodule.exports = getElectronPath();\n","/*\n * See the LICENSE file distributed with this work for additional\n * information regarding copyright ownership.\n *\n * This is free software; you can redistribute it and/or modify it\n * under the terms of the GNU Lesser General Public License as\n * published by the Free Software Foundation; either version 2.1 of\n * the License, or (at your option) any later version.\n *\n * This software is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with this software; if not, write to the Free\n * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA\n * 02110-1301 USA, or see the FSF site: http://www.fsf.org.\n */\n\nimport { UserDetails } from \"@xwiki/cristal-authentication-api\";\nimport { contextBridge, ipcRenderer } from \"electron\";\n\ncontextBridge.exposeInMainWorld(\"authenticationGitHub\", {\n login: async (\n baseUrl: string,\n deviceCode: string,\n interval: string,\n expiresIn: string,\n ): Promise<void> => {\n await ipcRenderer.invoke(\"authentication:github:login\", {\n baseUrl,\n deviceCode,\n interval,\n expiresIn,\n });\n },\n isLoggedIn(): Promise<boolean> {\n return ipcRenderer.invoke(\"authentication:github:isLoggedIn\");\n },\n\n getUserDetails(): Promise<UserDetails> {\n return ipcRenderer.invoke(\"authentication:github:userDetails\");\n },\n\n getAuthorizationValue(): Promise<{ tokenType: string; accessToken: string }> {\n return ipcRenderer.invoke(\"authentication:github:authorizationValue\");\n },\n\n async logout(): Promise<void> {\n await ipcRenderer.invoke(\"authentication:github:logout\");\n },\n});\n"],"names":["__viteBrowserExternal","fs","require$$0","path","require$$1","pathFile","getElectronPath","executablePath","electron","contextBridge","baseUrl","deviceCode","interval","expiresIn","ipcRenderer"],"mappings":";;;;;;;;;;;;;;;;;;;AAAA,MAAeA,IAAA,CAAA;;;;;;;;ACAf,QAAMC,IAAKC,GACLC,IAAOC,GAEPC,IAAWF,EAAK,KAAK,WAAW,UAAU;AAEhD,WAASG,IAAmB;AAC1B,QAAIC;AAIJ,QAHIN,EAAG,WAAWI,CAAQ,MACxBE,IAAiBN,EAAG,aAAaI,GAAU,OAAO,IAEhD,QAAQ,IAAI;AACd,aAAOF,EAAK,KAAK,QAAQ,IAAI,6BAA6BI,KAAkB,UAAU;AAExF,QAAIA;AACF,aAAOJ,EAAK,KAAK,WAAW,QAAQI,CAAc;AAElD,UAAM,IAAI,MAAM,oGAAoG;AAAA,EAExH;AAEc,SAAAC,IAAGF,EAAiB;;;ACGlCG,EAAAA,cAAc,kBAAkB,wBAAwB;AAAA,EACtD,OAAO,OACLC,GACAC,GACAC,GACAC,MACkB;AACZ,UAAAC,EAAA,YAAY,OAAO,+BAA+B;AAAA,MACtD,SAAAJ;AAAA,MACA,YAAAC;AAAA,MACA,UAAAC;AAAA,MACA,WAAAC;AAAA,IAAA,CACD;AAAA,EACH;AAAA,EACA,aAA+B;AACtB,WAAAC,EAAA,YAAY,OAAO,kCAAkC;AAAA,EAC9D;AAAA,EAEA,iBAAuC;AAC9B,WAAAA,EAAA,YAAY,OAAO,mCAAmC;AAAA,EAC/D;AAAA,EAEA,wBAA6E;AACpE,WAAAA,EAAA,YAAY,OAAO,0CAA0C;AAAA,EACtE;AAAA,EAEA,MAAM,SAAwB;AACtB,UAAAA,EAAA,YAAY,OAAO,8BAA8B;AAAA,EAAA;AAE3D,CAAC;","x_google_ignoreList":[1]}
|
package/dist/index.umd.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.umd.js","sources":["../__vite-browser-external","../../../../../node_modules/.pnpm/electron@36.
|
|
1
|
+
{"version":3,"file":"index.umd.js","sources":["../__vite-browser-external","../../../../../node_modules/.pnpm/electron@36.4.0/node_modules/electron/index.js","../src/index.ts"],"sourcesContent":["export default {}","const fs = require('fs');\nconst path = require('path');\n\nconst pathFile = path.join(__dirname, 'path.txt');\n\nfunction getElectronPath () {\n let executablePath;\n if (fs.existsSync(pathFile)) {\n executablePath = fs.readFileSync(pathFile, 'utf-8');\n }\n if (process.env.ELECTRON_OVERRIDE_DIST_PATH) {\n return path.join(process.env.ELECTRON_OVERRIDE_DIST_PATH, executablePath || 'electron');\n }\n if (executablePath) {\n return path.join(__dirname, 'dist', executablePath);\n } else {\n throw new Error('Electron failed to install correctly, please delete node_modules/electron and try installing again');\n }\n}\n\nmodule.exports = getElectronPath();\n","/*\n * See the LICENSE file distributed with this work for additional\n * information regarding copyright ownership.\n *\n * This is free software; you can redistribute it and/or modify it\n * under the terms of the GNU Lesser General Public License as\n * published by the Free Software Foundation; either version 2.1 of\n * the License, or (at your option) any later version.\n *\n * This software is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with this software; if not, write to the Free\n * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA\n * 02110-1301 USA, or see the FSF site: http://www.fsf.org.\n */\n\nimport { UserDetails } from \"@xwiki/cristal-authentication-api\";\nimport { contextBridge, ipcRenderer } from \"electron\";\n\ncontextBridge.exposeInMainWorld(\"authenticationGitHub\", {\n login: async (\n baseUrl: string,\n deviceCode: string,\n interval: string,\n expiresIn: string,\n ): Promise<void> => {\n await ipcRenderer.invoke(\"authentication:github:login\", {\n baseUrl,\n deviceCode,\n interval,\n expiresIn,\n });\n },\n isLoggedIn(): Promise<boolean> {\n return ipcRenderer.invoke(\"authentication:github:isLoggedIn\");\n },\n\n getUserDetails(): Promise<UserDetails> {\n return ipcRenderer.invoke(\"authentication:github:userDetails\");\n },\n\n getAuthorizationValue(): Promise<{ tokenType: string; accessToken: string }> {\n return ipcRenderer.invoke(\"authentication:github:authorizationValue\");\n },\n\n async logout(): Promise<void> {\n await ipcRenderer.invoke(\"authentication:github:logout\");\n },\n});\n"],"names":["fs","require$$0","path","require$$1","pathFile","getElectronPath","executablePath","electron","contextBridge","baseUrl","deviceCode","interval","expiresIn","ipcRenderer"],"mappings":"yoBAAe,CAAA,iFCAf,MAAMA,EAAKC,EACLC,EAAOC,EAEPC,EAAWF,EAAK,KAAK,UAAW,UAAU,EAEhD,SAASG,GAAmB,CAC1B,IAAIC,EAIJ,GAHIN,EAAG,WAAWI,CAAQ,IACxBE,EAAiBN,EAAG,aAAaI,EAAU,OAAO,GAEhD,QAAQ,IAAI,4BACd,OAAOF,EAAK,KAAK,QAAQ,IAAI,4BAA6BI,GAAkB,UAAU,EAExF,GAAIA,EACF,OAAOJ,EAAK,KAAK,UAAW,OAAQI,CAAc,EAElD,MAAM,IAAI,MAAM,oGAAoG,CAExH,CAEc,OAAAC,EAAGF,EAAiB,cCGlCG,EAAAA,cAAc,kBAAkB,uBAAwB,CACtD,MAAO,MACLC,EACAC,EACAC,EACAC,IACkB,CACZ,MAAAC,EAAA,YAAY,OAAO,8BAA+B,CACtD,QAAAJ,EACA,WAAAC,EACA,SAAAC,EACA,UAAAC,CAAA,CACD,CACH,EACA,YAA+B,CACtB,OAAAC,EAAA,YAAY,OAAO,kCAAkC,CAC9D,EAEA,gBAAuC,CAC9B,OAAAA,EAAA,YAAY,OAAO,mCAAmC,CAC/D,EAEA,uBAA6E,CACpE,OAAAA,EAAA,YAAY,OAAO,0CAA0C,CACtE,EAEA,MAAM,QAAwB,CACtB,MAAAA,EAAA,YAAY,OAAO,8BAA8B,CAAA,CAE3D,CAAC","x_google_ignoreList":[1]}
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xwiki/cristal-electron-authentication-github-preload",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.19.0",
|
|
4
4
|
"license": "LGPL 2.1",
|
|
5
5
|
"author": "XWiki Org Community <contact@xwiki.org>",
|
|
6
6
|
"homepage": "https://cristal.xwiki.org/",
|
|
7
7
|
"repository": {
|
|
8
8
|
"type": "git",
|
|
9
9
|
"directory": "electron/authentication/authentication-github/authentication-github-preload",
|
|
10
|
-
"url": "https://github.com/xwiki-contrib/cristal
|
|
10
|
+
"url": "git+https://github.com/xwiki-contrib/cristal.git"
|
|
11
11
|
},
|
|
12
12
|
"bugs": {
|
|
13
13
|
"url": "https://jira.xwiki.org/projects/CRISTAL/"
|
|
@@ -15,21 +15,21 @@
|
|
|
15
15
|
"type": "module",
|
|
16
16
|
"exports": {
|
|
17
17
|
".": {
|
|
18
|
-
"
|
|
19
|
-
"
|
|
18
|
+
"types": "./dist/index.d.ts",
|
|
19
|
+
"require": "./dist/index.umd.js"
|
|
20
20
|
}
|
|
21
21
|
},
|
|
22
22
|
"main": "./dist/index.umd.js",
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@xwiki/cristal-authentication-api": "0.
|
|
24
|
+
"@xwiki/cristal-authentication-api": "0.19.0"
|
|
25
25
|
},
|
|
26
26
|
"peerDependencies": {
|
|
27
|
-
"electron": "36.
|
|
27
|
+
"electron": "36.4.0"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"typescript": "5.8.3",
|
|
31
31
|
"vite": "6.3.5",
|
|
32
|
-
"@xwiki/cristal-dev-config": "0.
|
|
32
|
+
"@xwiki/cristal-dev-config": "0.19.0"
|
|
33
33
|
},
|
|
34
34
|
"scripts": {
|
|
35
35
|
"build": "tsc --project tsconfig.json && vite build",
|