@sendoracloud/sdk-react-native 1.23.0 → 1.24.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/app.plugin.js +10 -2
- package/dist/index.cjs +3 -1
- package/dist/index.d.cts +12 -0
- package/dist/index.d.ts +12 -0
- package/dist/index.js +3 -1
- package/package.json +1 -1
package/app.plugin.js
CHANGED
|
@@ -24,13 +24,21 @@
|
|
|
24
24
|
// ESM (the package is `type: module`) — requires Expo SDK 50+ (ESM config
|
|
25
25
|
// plugins). The bug-prone transforms live in ./plugin/apply.js (pure,
|
|
26
26
|
// unit-tested); this file just wires them into the Expo mod pipeline.
|
|
27
|
-
import
|
|
27
|
+
// ⚠ `@expo/config-plugins` is CommonJS. A NAMED ESM import from it relies on
|
|
28
|
+
// Node's cjs-module-lexer statically detecting each member — under config-plugins
|
|
29
|
+
// 54 (Expo SDK 54) `AndroidConfig` is NOT surfaced that way, so the import throws
|
|
30
|
+
// `SyntaxError: does not provide an export named 'AndroidConfig'` at load time and
|
|
31
|
+
// aborts `expo prebuild`. Default-import the namespace + destructure at runtime
|
|
32
|
+
// (version-agnostic; default export = the CJS `module.exports`). Guarded by
|
|
33
|
+
// test/plugin.test.ts.
|
|
34
|
+
import configPlugins from "@expo/config-plugins";
|
|
35
|
+
const {
|
|
28
36
|
withEntitlementsPlist,
|
|
29
37
|
withAndroidManifest,
|
|
30
38
|
AndroidConfig,
|
|
31
39
|
createRunOncePlugin,
|
|
32
40
|
WarningAggregator,
|
|
33
|
-
}
|
|
41
|
+
} = configPlugins;
|
|
34
42
|
import { createRequire } from "node:module";
|
|
35
43
|
import {
|
|
36
44
|
resolveHosts,
|
package/dist/index.cjs
CHANGED
|
@@ -200,7 +200,7 @@ var Storage = class {
|
|
|
200
200
|
// package.json
|
|
201
201
|
var package_default = {
|
|
202
202
|
name: "@sendoracloud/sdk-react-native",
|
|
203
|
-
version: "1.
|
|
203
|
+
version: "1.24.0",
|
|
204
204
|
description: "Sendora Cloud React Native + Expo SDK \u2014 analytics, identity, push-token registration, auth (incl. Game Center / Play Games), deep links (Branch / Firebase Dynamic Links parity). Auth + analytics + deep links work in Expo Go; push-token registration and the no-arg Game Center / Play Games sign-in require a Dev Client (EAS Build or `npx expo prebuild`).",
|
|
205
205
|
type: "module",
|
|
206
206
|
main: "./dist/index.cjs",
|
|
@@ -416,6 +416,8 @@ function isAuthApiResponse(v) {
|
|
|
416
416
|
if (user.email !== void 0 && user.email !== null && typeof user.email !== "string") return false;
|
|
417
417
|
if (user.emailVerified !== void 0 && typeof user.emailVerified !== "boolean") return false;
|
|
418
418
|
if (user.name !== void 0 && user.name !== null && typeof user.name !== "string") return false;
|
|
419
|
+
if (user.signupMethod !== void 0 && user.signupMethod !== null && typeof user.signupMethod !== "string") return false;
|
|
420
|
+
if (user.lastLoginMethod !== void 0 && user.lastLoginMethod !== null && typeof user.lastLoginMethod !== "string") return false;
|
|
419
421
|
return true;
|
|
420
422
|
}
|
|
421
423
|
var EmailAlreadyTakenError = class extends Error {
|
package/dist/index.d.cts
CHANGED
|
@@ -254,6 +254,18 @@ interface AuthUser {
|
|
|
254
254
|
emailVerified: boolean;
|
|
255
255
|
name: string | null;
|
|
256
256
|
isAnonymous: boolean;
|
|
257
|
+
/**
|
|
258
|
+
* How this account was FIRST created (`signupMethod`, immutable) and how it
|
|
259
|
+
* MOST RECENTLY authenticated (`lastLoginMethod`). Free-form provider tokens:
|
|
260
|
+
* `password | anonymous | google | apple | github | microsoft | linkedin |
|
|
261
|
+
* facebook | discord | gamecenter | playgames | magic_link | email_otp |
|
|
262
|
+
* passkey | oidc | saml | scim | import`. Read-only, display-only (routing /
|
|
263
|
+
* UI) — never an authorization signal. Optional: `undefined` against a backend
|
|
264
|
+
* older than s58.266, and `null` for an end-user row created before that
|
|
265
|
+
* backend shipped (backfilled on their next sign-in). SDK 1.24.0+.
|
|
266
|
+
*/
|
|
267
|
+
signupMethod?: string | null;
|
|
268
|
+
lastLoginMethod?: string | null;
|
|
257
269
|
}
|
|
258
270
|
interface AuthTokens {
|
|
259
271
|
accessToken: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -254,6 +254,18 @@ interface AuthUser {
|
|
|
254
254
|
emailVerified: boolean;
|
|
255
255
|
name: string | null;
|
|
256
256
|
isAnonymous: boolean;
|
|
257
|
+
/**
|
|
258
|
+
* How this account was FIRST created (`signupMethod`, immutable) and how it
|
|
259
|
+
* MOST RECENTLY authenticated (`lastLoginMethod`). Free-form provider tokens:
|
|
260
|
+
* `password | anonymous | google | apple | github | microsoft | linkedin |
|
|
261
|
+
* facebook | discord | gamecenter | playgames | magic_link | email_otp |
|
|
262
|
+
* passkey | oidc | saml | scim | import`. Read-only, display-only (routing /
|
|
263
|
+
* UI) — never an authorization signal. Optional: `undefined` against a backend
|
|
264
|
+
* older than s58.266, and `null` for an end-user row created before that
|
|
265
|
+
* backend shipped (backfilled on their next sign-in). SDK 1.24.0+.
|
|
266
|
+
*/
|
|
267
|
+
signupMethod?: string | null;
|
|
268
|
+
lastLoginMethod?: string | null;
|
|
257
269
|
}
|
|
258
270
|
interface AuthTokens {
|
|
259
271
|
accessToken: string;
|
package/dist/index.js
CHANGED
|
@@ -157,7 +157,7 @@ var Storage = class {
|
|
|
157
157
|
// package.json
|
|
158
158
|
var package_default = {
|
|
159
159
|
name: "@sendoracloud/sdk-react-native",
|
|
160
|
-
version: "1.
|
|
160
|
+
version: "1.24.0",
|
|
161
161
|
description: "Sendora Cloud React Native + Expo SDK \u2014 analytics, identity, push-token registration, auth (incl. Game Center / Play Games), deep links (Branch / Firebase Dynamic Links parity). Auth + analytics + deep links work in Expo Go; push-token registration and the no-arg Game Center / Play Games sign-in require a Dev Client (EAS Build or `npx expo prebuild`).",
|
|
162
162
|
type: "module",
|
|
163
163
|
main: "./dist/index.cjs",
|
|
@@ -373,6 +373,8 @@ function isAuthApiResponse(v) {
|
|
|
373
373
|
if (user.email !== void 0 && user.email !== null && typeof user.email !== "string") return false;
|
|
374
374
|
if (user.emailVerified !== void 0 && typeof user.emailVerified !== "boolean") return false;
|
|
375
375
|
if (user.name !== void 0 && user.name !== null && typeof user.name !== "string") return false;
|
|
376
|
+
if (user.signupMethod !== void 0 && user.signupMethod !== null && typeof user.signupMethod !== "string") return false;
|
|
377
|
+
if (user.lastLoginMethod !== void 0 && user.lastLoginMethod !== null && typeof user.lastLoginMethod !== "string") return false;
|
|
376
378
|
return true;
|
|
377
379
|
}
|
|
378
380
|
var EmailAlreadyTakenError = class extends Error {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sendoracloud/sdk-react-native",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.24.0",
|
|
4
4
|
"description": "Sendora Cloud React Native + Expo SDK — analytics, identity, push-token registration, auth (incl. Game Center / Play Games), deep links (Branch / Firebase Dynamic Links parity). Auth + analytics + deep links work in Expo Go; push-token registration and the no-arg Game Center / Play Games sign-in require a Dev Client (EAS Build or `npx expo prebuild`).",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|