@lovable.dev/cloud-auth-js 1.1.2-dev.1 → 1.1.2

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.cjs CHANGED
@@ -24,6 +24,42 @@ __export(src_exports, {
24
24
  });
25
25
  module.exports = __toCommonJS(src_exports);
26
26
 
27
+ // package.json
28
+ var package_default = {
29
+ name: "@lovable.dev/cloud-auth-js",
30
+ version: "1.1.2",
31
+ description: "Lovable Cloud Auth JS",
32
+ main: "./dist/index.cjs",
33
+ module: "./dist/index.js",
34
+ types: "./dist/index.d.ts",
35
+ type: "module",
36
+ files: [
37
+ "dist"
38
+ ],
39
+ scripts: {
40
+ build: "tsup src/index.ts --format cjs,esm --dts --outDir dist",
41
+ dev: "tsup src/index.ts --format cjs,esm --dts --watch",
42
+ test: "vitest run",
43
+ typecheck: "tsgo --noEmit",
44
+ prepublishOnly: "npm run clean && npm run build",
45
+ clean: "rimraf dist"
46
+ },
47
+ keywords: [
48
+ "lovable",
49
+ "oauth",
50
+ "authentication"
51
+ ],
52
+ license: "MIT",
53
+ devDependencies: {
54
+ "@types/node": "^22",
55
+ jsdom: "^26",
56
+ rimraf: "^5.0.0",
57
+ tsup: "^7.2.0",
58
+ typescript: "^5",
59
+ vitest: "^4.1.0"
60
+ }
61
+ };
62
+
27
63
  // src/auth.ts
28
64
  var EXPECTED_MESSAGE_TYPE = "authorization_response";
29
65
  var DEFAULT_OAUTH_BROKER_URL = "/~oauth/initiate";
@@ -194,42 +230,6 @@ function createAuth(config = {}) {
194
230
  };
195
231
  }
196
232
 
197
- // package.json
198
- var package_default = {
199
- name: "@lovable.dev/cloud-auth-js",
200
- version: "1.1.2-dev.1",
201
- description: "Lovable Cloud Auth JS",
202
- main: "./dist/index.cjs",
203
- module: "./dist/index.js",
204
- types: "./dist/index.d.ts",
205
- type: "module",
206
- files: [
207
- "dist"
208
- ],
209
- scripts: {
210
- build: "tsup src/index.ts --format cjs,esm --dts --outDir dist",
211
- dev: "tsup src/index.ts --format cjs,esm --dts --watch",
212
- test: "vitest run",
213
- typecheck: "tsgo --noEmit",
214
- prepublishOnly: "npm run clean && npm run build",
215
- clean: "rimraf dist"
216
- },
217
- keywords: [
218
- "lovable",
219
- "oauth",
220
- "authentication"
221
- ],
222
- license: "MIT",
223
- devDependencies: {
224
- "@types/node": "^22",
225
- jsdom: "^26",
226
- rimraf: "^5.0.0",
227
- tsup: "^7.2.0",
228
- typescript: "^5",
229
- vitest: "^4.1.0"
230
- }
231
- };
232
-
233
233
  // src/index.ts
234
234
  if (typeof window !== "undefined") {
235
235
  window.__lovable_cloud_auth_js_version = package_default.version;
package/dist/index.js CHANGED
@@ -1,3 +1,39 @@
1
+ // package.json
2
+ var package_default = {
3
+ name: "@lovable.dev/cloud-auth-js",
4
+ version: "1.1.2",
5
+ description: "Lovable Cloud Auth JS",
6
+ main: "./dist/index.cjs",
7
+ module: "./dist/index.js",
8
+ types: "./dist/index.d.ts",
9
+ type: "module",
10
+ files: [
11
+ "dist"
12
+ ],
13
+ scripts: {
14
+ build: "tsup src/index.ts --format cjs,esm --dts --outDir dist",
15
+ dev: "tsup src/index.ts --format cjs,esm --dts --watch",
16
+ test: "vitest run",
17
+ typecheck: "tsgo --noEmit",
18
+ prepublishOnly: "npm run clean && npm run build",
19
+ clean: "rimraf dist"
20
+ },
21
+ keywords: [
22
+ "lovable",
23
+ "oauth",
24
+ "authentication"
25
+ ],
26
+ license: "MIT",
27
+ devDependencies: {
28
+ "@types/node": "^22",
29
+ jsdom: "^26",
30
+ rimraf: "^5.0.0",
31
+ tsup: "^7.2.0",
32
+ typescript: "^5",
33
+ vitest: "^4.1.0"
34
+ }
35
+ };
36
+
1
37
  // src/auth.ts
2
38
  var EXPECTED_MESSAGE_TYPE = "authorization_response";
3
39
  var DEFAULT_OAUTH_BROKER_URL = "/~oauth/initiate";
@@ -168,42 +204,6 @@ function createAuth(config = {}) {
168
204
  };
169
205
  }
170
206
 
171
- // package.json
172
- var package_default = {
173
- name: "@lovable.dev/cloud-auth-js",
174
- version: "1.1.2-dev.1",
175
- description: "Lovable Cloud Auth JS",
176
- main: "./dist/index.cjs",
177
- module: "./dist/index.js",
178
- types: "./dist/index.d.ts",
179
- type: "module",
180
- files: [
181
- "dist"
182
- ],
183
- scripts: {
184
- build: "tsup src/index.ts --format cjs,esm --dts --outDir dist",
185
- dev: "tsup src/index.ts --format cjs,esm --dts --watch",
186
- test: "vitest run",
187
- typecheck: "tsgo --noEmit",
188
- prepublishOnly: "npm run clean && npm run build",
189
- clean: "rimraf dist"
190
- },
191
- keywords: [
192
- "lovable",
193
- "oauth",
194
- "authentication"
195
- ],
196
- license: "MIT",
197
- devDependencies: {
198
- "@types/node": "^22",
199
- jsdom: "^26",
200
- rimraf: "^5.0.0",
201
- tsup: "^7.2.0",
202
- typescript: "^5",
203
- vitest: "^4.1.0"
204
- }
205
- };
206
-
207
207
  // src/index.ts
208
208
  if (typeof window !== "undefined") {
209
209
  window.__lovable_cloud_auth_js_version = package_default.version;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lovable.dev/cloud-auth-js",
3
- "version": "1.1.2-dev.1",
3
+ "version": "1.1.2",
4
4
  "description": "Lovable Cloud Auth JS",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.js",