hyperapp-is 0.1.41 → 0.1.42

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.
@@ -125,23 +125,14 @@ export class GoogleAuth {
125
125
  }
126
126
  // method: initialize
127
127
  async initialize() {
128
- var _a, _b, _c, _d, _e;
129
128
  if (__classPrivateFieldGet(this, _GoogleAuth_initialized, "f")) {
130
129
  throw new Error("Already initialized");
131
130
  }
132
- __classPrivateFieldSet(this, _GoogleAuth_initialized, true, "f");
133
131
  __classPrivateFieldSet(this, _GoogleAuth_google, await getGoogle(), "f");
132
+ __classPrivateFieldSet(this, _GoogleAuth_initialized, true, "f");
134
133
  const client = __classPrivateFieldGet(this, _GoogleAuth_google, "f").accounts.id;
135
- if ((_a = __classPrivateFieldGet(this, _GoogleAuth_options, "f")) === null || _a === void 0 ? void 0 : _a.renderButton) {
136
- client.renderButton(__classPrivateFieldGet(this, _GoogleAuth_options, "f").renderButton, {
137
- theme: (_b = __classPrivateFieldGet(this, _GoogleAuth_options, "f").theme) !== null && _b !== void 0 ? _b : "outline",
138
- size: (_c = __classPrivateFieldGet(this, _GoogleAuth_options, "f").size) !== null && _c !== void 0 ? _c : "medium",
139
- text: (_d = __classPrivateFieldGet(this, _GoogleAuth_options, "f").text) !== null && _d !== void 0 ? _d : "signin_with",
140
- shape: (_e = __classPrivateFieldGet(this, _GoogleAuth_options, "f").shape) !== null && _e !== void 0 ? _e : "rectangular",
141
- });
142
- }
143
134
  return new Promise(resolve => {
144
- var _a, _b;
135
+ var _a, _b, _c, _d, _e, _f, _g;
145
136
  let resolved = false;
146
137
  const callback = (response) => {
147
138
  if (resolved)
@@ -155,6 +146,14 @@ export class GoogleAuth {
155
146
  ux_mode: (_b = __classPrivateFieldGet(this, _GoogleAuth_config, "f").uxMode) !== null && _b !== void 0 ? _b : "popup",
156
147
  callback
157
148
  });
149
+ if ((_c = __classPrivateFieldGet(this, _GoogleAuth_options, "f")) === null || _c === void 0 ? void 0 : _c.renderButton) {
150
+ client.renderButton(__classPrivateFieldGet(this, _GoogleAuth_options, "f").renderButton, {
151
+ theme: (_d = __classPrivateFieldGet(this, _GoogleAuth_options, "f").theme) !== null && _d !== void 0 ? _d : "outline",
152
+ size: (_e = __classPrivateFieldGet(this, _GoogleAuth_options, "f").size) !== null && _e !== void 0 ? _e : "medium",
153
+ text: (_f = __classPrivateFieldGet(this, _GoogleAuth_options, "f").text) !== null && _f !== void 0 ? _f : "signin_with",
154
+ shape: (_g = __classPrivateFieldGet(this, _GoogleAuth_options, "f").shape) !== null && _g !== void 0 ? _g : "rectangular",
155
+ });
156
+ }
158
157
  client.prompt((notification) => {
159
158
  if (!resolved && (notification.isNotDisplayed() ||
160
159
  notification.isSkippedMoment())) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hyperapp-is",
3
- "version": "0.1.41",
3
+ "version": "0.1.42",
4
4
  "description": "UI foundation library for Hyperapp by is4416",
5
5
  "license": "MIT",
6
6
  "type": "module",