@shipwellapp/cli 0.2.6 → 0.2.7
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/index.js +6 -5
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -970,10 +970,11 @@ function startAuthFlow(baseUrl) {
|
|
|
970
970
|
const email = url.searchParams.get("email") || "";
|
|
971
971
|
const uid = url.searchParams.get("uid") || "";
|
|
972
972
|
const photo = url.searchParams.get("photo") || void 0;
|
|
973
|
-
|
|
974
|
-
res.
|
|
975
|
-
|
|
976
|
-
|
|
973
|
+
const successParams = new URLSearchParams({ name, email });
|
|
974
|
+
res.writeHead(302, {
|
|
975
|
+
Location: `${baseUrl}/cli-auth/success?${successParams.toString()}`
|
|
976
|
+
});
|
|
977
|
+
res.end();
|
|
977
978
|
server.close();
|
|
978
979
|
resolve({ name, email, uid, photo });
|
|
979
980
|
} else {
|
|
@@ -1162,7 +1163,7 @@ function modelsCommand() {
|
|
|
1162
1163
|
}
|
|
1163
1164
|
|
|
1164
1165
|
// src/index.ts
|
|
1165
|
-
var VERSION = "0.2.
|
|
1166
|
+
var VERSION = "0.2.7";
|
|
1166
1167
|
var accent7 = chalk7.hex("#6366f1");
|
|
1167
1168
|
var dim5 = chalk7.dim;
|
|
1168
1169
|
var bold2 = chalk7.bold;
|