@buoy-gg/license 7.0.79 → 7.0.81

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.
Files changed (59) hide show
  1. package/lib/commonjs/DeviceRegistrationModal.d.js +1 -0
  2. package/lib/commonjs/LicenseManager.d.js +1 -0
  3. package/lib/commonjs/accountAccess.d.js +1 -0
  4. package/lib/commonjs/accountKeyNames.d.js +1 -0
  5. package/lib/commonjs/api.d.js +1 -0
  6. package/lib/commonjs/cacheSignature.d.js +1 -0
  7. package/lib/commonjs/capacitorBridge.d.js +1 -0
  8. package/lib/commonjs/capacitorHost.d.js +1 -0
  9. package/lib/commonjs/config.d.js +1 -0
  10. package/lib/commonjs/devToken.d.js +1 -0
  11. package/lib/commonjs/device-info.d.js +1 -0
  12. package/lib/commonjs/device-info.js +1 -1
  13. package/lib/commonjs/fingerprint.d.js +1 -0
  14. package/lib/commonjs/fingerprintOwner.d.js +1 -0
  15. package/lib/commonjs/foreground.d.js +1 -0
  16. package/lib/commonjs/freeToken.d.js +1 -0
  17. package/lib/commonjs/freeTokenKey.d.js +1 -0
  18. package/lib/commonjs/hooks.d.js +1 -0
  19. package/lib/commonjs/index.d.js +1 -0
  20. package/lib/commonjs/realNow.d.js +1 -0
  21. package/lib/commonjs/serviceKey.d.js +1 -0
  22. package/lib/commonjs/sessionManager.d.js +1 -0
  23. package/lib/commonjs/sessionToken.d.js +1 -0
  24. package/lib/commonjs/sessionTokenKey.d.js +1 -0
  25. package/lib/commonjs/storage.d.js +1 -0
  26. package/lib/commonjs/syncCredential.d.js +1 -0
  27. package/lib/commonjs/tier.d.js +1 -0
  28. package/lib/commonjs/types.d.js +1 -0
  29. package/lib/commonjs/weekendPro.d.js +1 -0
  30. package/lib/module/DeviceRegistrationModal.d.js +1 -0
  31. package/lib/module/LicenseManager.d.js +16 -0
  32. package/lib/module/accountAccess.d.js +1 -0
  33. package/lib/module/accountKeyNames.d.js +1 -0
  34. package/lib/module/api.d.js +1 -0
  35. package/lib/module/cacheSignature.d.js +1 -0
  36. package/lib/module/capacitorBridge.d.js +1 -0
  37. package/lib/module/capacitorHost.d.js +1 -0
  38. package/lib/module/config.d.js +17 -0
  39. package/lib/module/devToken.d.js +1 -0
  40. package/lib/module/device-info.d.js +1 -0
  41. package/lib/module/device-info.js +1 -1
  42. package/lib/module/fingerprint.d.js +1 -0
  43. package/lib/module/fingerprintOwner.d.js +1 -0
  44. package/lib/module/foreground.d.js +1 -0
  45. package/lib/module/freeToken.d.js +1 -0
  46. package/lib/module/freeTokenKey.d.js +1 -0
  47. package/lib/module/hooks.d.js +1 -0
  48. package/lib/module/index.d.js +18 -0
  49. package/lib/module/realNow.d.js +1 -0
  50. package/lib/module/serviceKey.d.js +6 -0
  51. package/lib/module/sessionManager.d.js +6 -0
  52. package/lib/module/sessionToken.d.js +6 -0
  53. package/lib/module/sessionTokenKey.d.js +1 -0
  54. package/lib/module/storage.d.js +1 -0
  55. package/lib/module/syncCredential.d.js +1 -0
  56. package/lib/module/tier.d.js +1 -0
  57. package/lib/module/types.d.js +1 -0
  58. package/lib/module/weekendPro.d.js +1 -0
  59. package/package.json +3 -2
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:true});
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:true});
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:true});
@@ -0,0 +1 @@
1
+ "use strict";
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:true});
@@ -0,0 +1 @@
1
+ "use strict";
@@ -0,0 +1 @@
1
+ "use strict";
@@ -0,0 +1 @@
1
+ "use strict";
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:true});Object.defineProperty(exports,"FREE_TOKEN_PUBLIC_KEY",{enumerable:true,get:function(){return _freeTokenKey.FREE_TOKEN_PUBLIC_KEY}});Object.defineProperty(exports,"SESSION_TOKEN_PUBLIC_KEY",{enumerable:true,get:function(){return _sessionTokenKey.SESSION_TOKEN_PUBLIC_KEY}});var _freeTokenKey=require("./freeTokenKey.js");var _sessionTokenKey=require("./sessionTokenKey.js");
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:true});
@@ -0,0 +1 @@
1
+ "use strict";
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:true});exports.generateUUID=generateUUID;exports.getDefaultDeviceName=getDefaultDeviceName;exports.getDeviceMetadata=getDeviceMetadata;exports.getDeviceOwnerId=getDeviceOwnerId;exports.isDevBundle=isDevBundle;exports.isSimulator=isSimulator;var _reactNative=require("react-native");function generateUUID(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,e=>{const t=Math.random()*16|0;const r=e==="x"?t:t&3|8;return r.toString(16)})}function isDevBundle(){try{const e=_reactNative.NativeModules?.SourceCode;const t=e?.scriptURL??e?.getConstants?.()?.scriptURL;if(typeof t==="string"&&t.length>0)return/^https?:\/\//i.test(t)}catch{}return typeof __DEV__!=="undefined"&&__DEV__}function isSimulator(){if(_reactNative.Platform.OS==="ios"){const e=_reactNative.Platform.constants;if(e?.interfaceIdiom==="simulator"){return true}if("isTesting"in _reactNative.Platform&&_reactNative.Platform.isTesting){return true}return false}if(_reactNative.Platform.OS==="android"){const e=_reactNative.Platform.constants;const t=String(e?.Brand||"").toLowerCase();const r=String(e?.Model||"").toLowerCase();const n=String(e?.Fingerprint||"").toLowerCase();const o=t.includes("generic")||r.includes("sdk")||r.includes("emulator")||r.includes("android sdk")||n.includes("generic");return o}return false}function getDeviceMetadata(){const e={platform:_reactNative.Platform.OS,osVersion:String(_reactNative.Platform.Version),isSimulator:String(isSimulator())};if(_reactNative.Platform.OS==="android"){const t=_reactNative.Platform.constants;if(t?.Brand)e.brand=String(t.Brand);if(t?.Model)e.model=String(t.Model);if(t?.Manufacturer)e.manufacturer=String(t.Manufacturer)}if(_reactNative.Platform.OS==="ios"){const t=_reactNative.Platform.constants;if(t?.systemName)e.systemName=String(t.systemName);if(t?.interfaceIdiom)e.interfaceIdiom=String(t.interfaceIdiom)}return e}function getDefaultDeviceName(){const e=_reactNative.Platform.OS==="ios"?"iOS":_reactNative.Platform.OS==="android"?"Android":_reactNative.Platform.OS;const t=isSimulator()?" Simulator":"";return`My ${e} Device${t}`}async function getDeviceOwnerId(){try{if(_reactNative.Platform.OS==="android"){const e=_reactNative.TurboModuleRegistry?.get?.("PlatformConstants");const t=_reactNative.NativeModules?.PlatformConstants;const r=(e?.getAndroidID??t?.getAndroidID)?.call(e?.getAndroidID?e:t);return typeof r==="string"&&r.length>0?r:null}if(_reactNative.Platform.OS==="ios"){const e=require("expo-application");const t=await(e?.getIosIdForVendorAsync?.()??null);return typeof t==="string"&&t.length>0?t:null}}catch{}return null}
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:true});exports.generateUUID=generateUUID;exports.getDefaultDeviceName=getDefaultDeviceName;exports.getDeviceMetadata=getDeviceMetadata;exports.getDeviceOwnerId=getDeviceOwnerId;exports.isDevBundle=isDevBundle;exports.isSimulator=isSimulator;var _reactNative=require("react-native");function generateUUID(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,e=>{const t=Math.random()*16|0;const r=e==="x"?t:t&3|8;return r.toString(16)})}function isDevBundle(){try{const e=_reactNative.NativeModules?.SourceCode;const t=e?.scriptURL??e?.getConstants?.()?.scriptURL;if(typeof t==="string"&&t.length>0)return/^https?:\/\//i.test(t)}catch{}return typeof __DEV__!=="undefined"&&__DEV__}function isSimulator(){if(_reactNative.Platform.OS==="ios"){const e=_reactNative.Platform.constants;if(e?.interfaceIdiom==="simulator"){return true}if("isTesting"in _reactNative.Platform&&_reactNative.Platform.isTesting){return true}return false}if(_reactNative.Platform.OS==="android"){const e=_reactNative.Platform.constants;const t=String(e?.Brand||"").toLowerCase();const r=String(e?.Model||"").toLowerCase();const n=String(e?.Fingerprint||"").toLowerCase();const o=t.includes("generic")||r.includes("sdk")||r.includes("emulator")||r.includes("android sdk")||n.includes("generic");return o}return false}function getDeviceMetadata(){const e={platform:_reactNative.Platform.OS,osVersion:String(_reactNative.Platform.Version),isSimulator:String(isSimulator())};if(_reactNative.Platform.OS==="android"){const t=_reactNative.Platform.constants;if(t?.Brand)e.brand=String(t.Brand);if(t?.Model)e.model=String(t.Model);if(t?.Manufacturer)e.manufacturer=String(t.Manufacturer)}if(_reactNative.Platform.OS==="ios"){const t=_reactNative.Platform.constants;if(t?.systemName)e.systemName=String(t.systemName);if(t?.interfaceIdiom)e.interfaceIdiom=String(t.interfaceIdiom)}return e}function getDefaultDeviceName(){const e=_reactNative.Platform.OS==="ios"?"iOS":_reactNative.Platform.OS==="android"?"Android":_reactNative.Platform.OS;const t=isSimulator()?" Simulator":"";return`My ${e} Device${t}`}async function getDeviceOwnerId(){try{if(_reactNative.Platform.OS==="android"){const e=_reactNative.TurboModuleRegistry?.get?.("PlatformConstants");const t=_reactNative.NativeModules?.PlatformConstants;const r=(e?.getAndroidID??t?.getAndroidID)?.call(e?.getAndroidID?e:t);return typeof r==="string"&&r.length>0?r:null}if(_reactNative.Platform.OS==="ios"){const e=loadExpoApplication();const t=await(e?.getIosIdForVendorAsync?.()??null);return typeof t==="string"&&t.length>0?t:null}}catch{}return null}function loadExpoApplication(){try{return require("expo-application")}catch{return null}}
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:true});Object.defineProperty(exports,"generateUUID",{enumerable:true,get:function(){return _deviceInfo.generateUUID}});Object.defineProperty(exports,"getDefaultDeviceName",{enumerable:true,get:function(){return _deviceInfo.getDefaultDeviceName}});Object.defineProperty(exports,"getDeviceMetadata",{enumerable:true,get:function(){return _deviceInfo.getDeviceMetadata}});Object.defineProperty(exports,"getDeviceOwnerId",{enumerable:true,get:function(){return _deviceInfo.getDeviceOwnerId}});Object.defineProperty(exports,"isDevBundle",{enumerable:true,get:function(){return _deviceInfo.isDevBundle}});Object.defineProperty(exports,"isSimulator",{enumerable:true,get:function(){return _deviceInfo.isSimulator}});var _deviceInfo=require("./device-info");
@@ -0,0 +1 @@
1
+ "use strict";
@@ -0,0 +1 @@
1
+ "use strict";
@@ -0,0 +1 @@
1
+ "use strict";
@@ -0,0 +1 @@
1
+ "use strict";
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:true});
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:true});Object.defineProperty(exports,"BUOY_ACCOUNT_KEY_NAMES",{enumerable:true,get:function(){return _accountKeyNames.BUOY_ACCOUNT_KEY_NAMES}});Object.defineProperty(exports,"DeviceRegistrationModal",{enumerable:true,get:function(){return _DeviceRegistrationModal.DeviceRegistrationModal}});Object.defineProperty(exports,"LicenseManager",{enumerable:true,get:function(){return _LicenseManager.LicenseManager}});Object.defineProperty(exports,"LicenseTransportError",{enumerable:true,get:function(){return _api.LicenseTransportError}});Object.defineProperty(exports,"SessionError",{enumerable:true,get:function(){return _sessionManager.SessionError}});Object.defineProperty(exports,"SessionManager",{enumerable:true,get:function(){return _sessionManager.SessionManager}});Object.defineProperty(exports,"callCapacitorAsApp",{enumerable:true,get:function(){return _capacitorBridge.callCapacitorAsApp}});Object.defineProperty(exports,"callCapacitorNative",{enumerable:true,get:function(){return _capacitorBridge.callCapacitorNative}});Object.defineProperty(exports,"callCapacitorNativeCallback",{enumerable:true,get:function(){return _capacitorBridge.callCapacitorNativeCallback}});Object.defineProperty(exports,"capacitorDebug",{enumerable:true,get:function(){return _capacitorHost.capacitorDebug}});Object.defineProperty(exports,"capacitorListenerCount",{enumerable:true,get:function(){return _capacitorBridge.capacitorListenerCount}});Object.defineProperty(exports,"capacitorPlatform",{enumerable:true,get:function(){return _capacitorHost.capacitorPlatform}});Object.defineProperty(exports,"capacitorPlugin",{enumerable:true,get:function(){return _capacitorBridge.capacitorPlugin}});Object.defineProperty(exports,"clearCapacitorCalls",{enumerable:true,get:function(){return _capacitorBridge.clearCapacitorCalls}});Object.defineProperty(exports,"colorSchemeQueryValue",{enumerable:true,get:function(){return _capacitorBridge.colorSchemeQueryValue}});Object.defineProperty(exports,"emitCapacitorEvent",{enumerable:true,get:function(){return _capacitorBridge.emitCapacitorEvent}});Object.defineProperty(exports,"getCapacitorAppHost",{enumerable:true,get:function(){return _capacitorBridge.getCapacitorAppHost}});Object.defineProperty(exports,"getCapacitorCalls",{enumerable:true,get:function(){return _capacitorBridge.getCapacitorCalls}});Object.defineProperty(exports,"getColorSchemeQueries",{enumerable:true,get:function(){return _capacitorBridge.getColorSchemeQueries}});Object.defineProperty(exports,"getSyncCredential",{enumerable:true,get:function(){return _syncCredential.getSyncCredential}});Object.defineProperty(exports,"getTeamCredential",{enumerable:true,get:function(){return _syncCredential.getTeamCredential}});Object.defineProperty(exports,"hasCapacitorPlugin",{enumerable:true,get:function(){return _capacitorBridge.hasCapacitorPlugin}});Object.defineProperty(exports,"installCapacitorBridge",{enumerable:true,get:function(){return _capacitorBridge.installCapacitorBridge}});Object.defineProperty(exports,"interceptCapacitor",{enumerable:true,get:function(){return _capacitorBridge.interceptCapacitor}});Object.defineProperty(exports,"isBuoyAccountKeyName",{enumerable:true,get:function(){return _accountKeyNames.isBuoyAccountKeyName}});Object.defineProperty(exports,"isBuoyToken",{enumerable:true,get:function(){return _freeToken.isBuoyToken}});Object.defineProperty(exports,"isCapacitorBridgeInstalled",{enumerable:true,get:function(){return _capacitorBridge.isCapacitorBridgeInstalled}});Object.defineProperty(exports,"isCapacitorNative",{enumerable:true,get:function(){return _capacitorHost.isCapacitorNative}});Object.defineProperty(exports,"isDevToken",{enumerable:true,get:function(){return _devToken.isDevToken}});Object.defineProperty(exports,"isServiceKey",{enumerable:true,get:function(){return _serviceKey.isServiceKey}});Object.defineProperty(exports,"isTransientLicenseError",{enumerable:true,get:function(){return _api.isTransientLicenseError}});Object.defineProperty(exports,"isWeekendFreePro",{enumerable:true,get:function(){return _weekendPro.isWeekendFreePro}});Object.defineProperty(exports,"listenCapacitorNative",{enumerable:true,get:function(){return _capacitorBridge.listenCapacitorNative}});Object.defineProperty(exports,"loadCapacitorAppHost",{enumerable:true,get:function(){return _capacitorBridge.loadCapacitorAppHost}});Object.defineProperty(exports,"makeCapacitorCallbackId",{enumerable:true,get:function(){return _capacitorBridge.makeCapacitorCallbackId}});Object.defineProperty(exports,"maskBuoyAccountKey",{enumerable:true,get:function(){return _accountKeyNames.maskBuoyAccountKey}});Object.defineProperty(exports,"maskBuoyAccountKeys",{enumerable:true,get:function(){return _accountKeyNames.maskBuoyAccountKeys}});Object.defineProperty(exports,"normalizeLicenseKey",{enumerable:true,get:function(){return _serviceKey.normalizeLicenseKey}});Object.defineProperty(exports,"resolveAccountAccess",{enumerable:true,get:function(){return _accountAccess.resolveAccountAccess}});Object.defineProperty(exports,"resolveDevBuild",{enumerable:true,get:function(){return _capacitorHost.resolveDevBuild}});Object.defineProperty(exports,"sameLicenseKey",{enumerable:true,get:function(){return _serviceKey.sameLicenseKey}});Object.defineProperty(exports,"subscribeCapacitorCalls",{enumerable:true,get:function(){return _capacitorBridge.subscribeCapacitorCalls}});Object.defineProperty(exports,"useAccountAccess",{enumerable:true,get:function(){return _hooks.useAccountAccess}});Object.defineProperty(exports,"useBuoySession",{enumerable:true,get:function(){return _hooks.useBuoySession}});Object.defineProperty(exports,"useFeatureAccess",{enumerable:true,get:function(){return _hooks.useFeatureAccess}});Object.defineProperty(exports,"useIsPro",{enumerable:true,get:function(){return _hooks.useIsPro}});Object.defineProperty(exports,"useLicense",{enumerable:true,get:function(){return _hooks.useLicense}});Object.defineProperty(exports,"useProAccess",{enumerable:true,get:function(){return _hooks.useProAccess}});Object.defineProperty(exports,"useTier",{enumerable:true,get:function(){return _hooks.useTier}});Object.defineProperty(exports,"useWeekendFreePro",{enumerable:true,get:function(){return _weekendPro.useWeekendFreePro}});var _LicenseManager=require("./LicenseManager.js");var _DeviceRegistrationModal=require("./DeviceRegistrationModal.js");var _hooks=require("./hooks.js");var _accountAccess=require("./accountAccess.js");var _api=require("./api.js");var _sessionManager=require("./sessionManager.js");var _serviceKey=require("./serviceKey.js");var _accountKeyNames=require("./accountKeyNames.js");var _capacitorHost=require("./capacitorHost.js");var _capacitorBridge=require("./capacitorBridge.js");var _devToken=require("./devToken.js");var _syncCredential=require("./syncCredential.js");var _freeToken=require("./freeToken.js");var _weekendPro=require("./weekendPro.js");
@@ -0,0 +1 @@
1
+ "use strict";
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:true});
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:true});
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:true});
@@ -0,0 +1 @@
1
+ "use strict";
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:true});
@@ -0,0 +1 @@
1
+ "use strict";
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:true});
@@ -0,0 +1 @@
1
+ "use strict";
@@ -0,0 +1 @@
1
+ "use strict";
@@ -0,0 +1 @@
1
+ "use strict";export{};
@@ -0,0 +1,16 @@
1
+ "use strict";/*!
2
+ * PROPRIETARY — Buoy Pro license enforcement. NOT open source.
3
+ *
4
+ * Copyright (c) Buoy. All rights reserved. Licensed under the Buoy EULA
5
+ * (https://buoy.gg/terms), not an OSS license.
6
+ *
7
+ * This file is the technological measure that controls access to paid Buoy Pro
8
+ * features. Modifying, patching, aliasing, stubbing, or otherwise altering it
9
+ * so that Pro features unlock without a valid license is a breach of the EULA
10
+ * and, in the United States, circumvention of an access control under
11
+ * 17 U.S.C. § 1201 — which applies whether or not any code is copied.
12
+ *
13
+ * Pro is $9/mo, and is free every weekend for anyone holding a key —
14
+ * including a free one (`npx --package=@buoy-gg/core buoy login`). Buy a key at
15
+ * https://buoy.gg or use it free on Saturday and Sunday.
16
+ */export{};
@@ -0,0 +1 @@
1
+ "use strict";export{};
@@ -0,0 +1 @@
1
+ "use strict";
@@ -0,0 +1 @@
1
+ "use strict";export{};
@@ -0,0 +1 @@
1
+ "use strict";
@@ -0,0 +1 @@
1
+ "use strict";
@@ -0,0 +1 @@
1
+ "use strict";
@@ -0,0 +1,17 @@
1
+ "use strict";/*!
2
+ * PROPRIETARY — Buoy Pro license enforcement. NOT open source.
3
+ *
4
+ * Copyright (c) Buoy. All rights reserved. Licensed under the Buoy EULA
5
+ * (https://buoy.gg/terms), not an OSS license.
6
+ *
7
+ * This file configures the technological measure that controls access to paid
8
+ * Buoy Pro features. Modifying, patching, aliasing, stubbing, or otherwise
9
+ * altering it — including repointing `apiUrl` at a stand-in license server — so
10
+ * that Pro features unlock without a valid license is a breach of the EULA and,
11
+ * in the United States, circumvention of an access control under 17 U.S.C.
12
+ * § 1201, which applies whether or not any code is copied.
13
+ *
14
+ * Pro is $9/mo, and is free every weekend for anyone holding a key —
15
+ * including a free one (`npx --package=@buoy-gg/core buoy login`). Buy a key at
16
+ * https://buoy.gg or use it free on Saturday and Sunday.
17
+ */export{FREE_TOKEN_PUBLIC_KEY}from"./freeTokenKey.js";export{SESSION_TOKEN_PUBLIC_KEY}from"./sessionTokenKey.js";
@@ -0,0 +1 @@
1
+ "use strict";export{};
@@ -0,0 +1 @@
1
+ "use strict";
@@ -1 +1 @@
1
- "use strict";import{NativeModules as o,Platform as e,TurboModuleRegistry as a}from"react-native";export function generateUUID(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,n=>{const t=Math.random()*16|0;const r=n==="x"?t:t&3|8;return r.toString(16)})}export function isDevBundle(){try{const n=o?.SourceCode;const t=n?.scriptURL??n?.getConstants?.()?.scriptURL;if(typeof t==="string"&&t.length>0)return/^https?:\/\//i.test(t)}catch{}return typeof __DEV__!=="undefined"&&__DEV__}export function isSimulator(){if(e.OS==="ios"){const n=e.constants;if(n?.interfaceIdiom==="simulator"){return true}if("isTesting"in e&&e.isTesting){return true}return false}if(e.OS==="android"){const n=e.constants;const t=String(n?.Brand||"").toLowerCase();const r=String(n?.Model||"").toLowerCase();const i=String(n?.Fingerprint||"").toLowerCase();const s=t.includes("generic")||r.includes("sdk")||r.includes("emulator")||r.includes("android sdk")||i.includes("generic");return s}return false}export function getDeviceMetadata(){const n={platform:e.OS,osVersion:String(e.Version),isSimulator:String(isSimulator())};if(e.OS==="android"){const t=e.constants;if(t?.Brand)n.brand=String(t.Brand);if(t?.Model)n.model=String(t.Model);if(t?.Manufacturer)n.manufacturer=String(t.Manufacturer)}if(e.OS==="ios"){const t=e.constants;if(t?.systemName)n.systemName=String(t.systemName);if(t?.interfaceIdiom)n.interfaceIdiom=String(t.interfaceIdiom)}return n}export function getDefaultDeviceName(){const n=e.OS==="ios"?"iOS":e.OS==="android"?"Android":e.OS;const t=isSimulator()?" Simulator":"";return`My ${n} Device${t}`}export async function getDeviceOwnerId(){try{if(e.OS==="android"){const n=a?.get?.("PlatformConstants");const t=o?.PlatformConstants;const r=(n?.getAndroidID??t?.getAndroidID)?.call(n?.getAndroidID?n:t);return typeof r==="string"&&r.length>0?r:null}if(e.OS==="ios"){const n=require("expo-application");const t=await(n?.getIosIdForVendorAsync?.()??null);return typeof t==="string"&&t.length>0?t:null}}catch{}return null}
1
+ "use strict";import{NativeModules as o,Platform as e,TurboModuleRegistry as a}from"react-native";export function generateUUID(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,n=>{const t=Math.random()*16|0;const r=n==="x"?t:t&3|8;return r.toString(16)})}export function isDevBundle(){try{const n=o?.SourceCode;const t=n?.scriptURL??n?.getConstants?.()?.scriptURL;if(typeof t==="string"&&t.length>0)return/^https?:\/\//i.test(t)}catch{}return typeof __DEV__!=="undefined"&&__DEV__}export function isSimulator(){if(e.OS==="ios"){const n=e.constants;if(n?.interfaceIdiom==="simulator"){return true}if("isTesting"in e&&e.isTesting){return true}return false}if(e.OS==="android"){const n=e.constants;const t=String(n?.Brand||"").toLowerCase();const r=String(n?.Model||"").toLowerCase();const i=String(n?.Fingerprint||"").toLowerCase();const s=t.includes("generic")||r.includes("sdk")||r.includes("emulator")||r.includes("android sdk")||i.includes("generic");return s}return false}export function getDeviceMetadata(){const n={platform:e.OS,osVersion:String(e.Version),isSimulator:String(isSimulator())};if(e.OS==="android"){const t=e.constants;if(t?.Brand)n.brand=String(t.Brand);if(t?.Model)n.model=String(t.Model);if(t?.Manufacturer)n.manufacturer=String(t.Manufacturer)}if(e.OS==="ios"){const t=e.constants;if(t?.systemName)n.systemName=String(t.systemName);if(t?.interfaceIdiom)n.interfaceIdiom=String(t.interfaceIdiom)}return n}export function getDefaultDeviceName(){const n=e.OS==="ios"?"iOS":e.OS==="android"?"Android":e.OS;const t=isSimulator()?" Simulator":"";return`My ${n} Device${t}`}export async function getDeviceOwnerId(){try{if(e.OS==="android"){const n=a?.get?.("PlatformConstants");const t=o?.PlatformConstants;const r=(n?.getAndroidID??t?.getAndroidID)?.call(n?.getAndroidID?n:t);return typeof r==="string"&&r.length>0?r:null}if(e.OS==="ios"){const n=c();const t=await(n?.getIosIdForVendorAsync?.()??null);return typeof t==="string"&&t.length>0?t:null}}catch{}return null}function c(){try{return require("expo-application")}catch{return null}}
@@ -0,0 +1 @@
1
+ "use strict";export{generateUUID,isDevBundle,isSimulator,getDeviceMetadata,getDefaultDeviceName,getDeviceOwnerId}from"./device-info";
@@ -0,0 +1 @@
1
+ "use strict";
@@ -0,0 +1 @@
1
+ "use strict";
@@ -0,0 +1 @@
1
+ "use strict";
@@ -0,0 +1 @@
1
+ "use strict";
@@ -0,0 +1 @@
1
+ "use strict";export{};
@@ -0,0 +1,18 @@
1
+ "use strict";/*!
2
+ * PROPRIETARY — Buoy Pro license enforcement. NOT open source.
3
+ *
4
+ * Copyright (c) Buoy. All rights reserved. Licensed under the Buoy EULA
5
+ * (https://buoy.gg/terms), not an OSS license.
6
+ *
7
+ * This package is the technological measure that controls access to paid Buoy
8
+ * Pro features. Modifying, patching, aliasing, stubbing, or otherwise altering
9
+ * it — including replacing this module via a bundler alias, package override,
10
+ * or postinstall patch — so that Pro features unlock without a valid license is
11
+ * a breach of the EULA and, in the United States, circumvention of an access
12
+ * control under 17 U.S.C. § 1201, which applies whether or not any code is
13
+ * copied.
14
+ *
15
+ * Pro is $9/mo, and is free every weekend for anyone holding a key —
16
+ * including a free one (`npx --package=@buoy-gg/core buoy login`). Buy a key at
17
+ * https://buoy.gg or use it free on Saturday and Sunday.
18
+ */export{LicenseManager}from"./LicenseManager.js";export{DeviceRegistrationModal}from"./DeviceRegistrationModal.js";export{useLicense,useFeatureAccess,useIsPro,useProAccess,useTier}from"./hooks.js";export{useAccountAccess}from"./hooks.js";export{resolveAccountAccess}from"./accountAccess.js";export{LicenseTransportError,isTransientLicenseError}from"./api.js";export{SessionManager,SessionError}from"./sessionManager.js";export{useBuoySession}from"./hooks.js";export{isServiceKey,normalizeLicenseKey,sameLicenseKey}from"./serviceKey.js";export{BUOY_ACCOUNT_KEY_NAMES,isBuoyAccountKeyName,maskBuoyAccountKey,maskBuoyAccountKeys}from"./accountKeyNames.js";export{isCapacitorNative,capacitorPlatform,capacitorDebug,resolveDevBuild}from"./capacitorHost.js";export{installCapacitorBridge,isCapacitorBridgeInstalled,interceptCapacitor,emitCapacitorEvent,capacitorListenerCount,hasCapacitorPlugin,capacitorPlugin,callCapacitorNative,callCapacitorAsApp,callCapacitorNativeCallback,listenCapacitorNative,makeCapacitorCallbackId,getCapacitorCalls,clearCapacitorCalls,subscribeCapacitorCalls,loadCapacitorAppHost,getCapacitorAppHost,colorSchemeQueryValue,getColorSchemeQueries}from"./capacitorBridge.js";export{isDevToken}from"./devToken.js";export{getSyncCredential,getTeamCredential}from"./syncCredential.js";export{isBuoyToken}from"./freeToken.js";export{isWeekendFreePro,useWeekendFreePro}from"./weekendPro.js";
@@ -0,0 +1 @@
1
+ "use strict";
@@ -0,0 +1,6 @@
1
+ "use strict";/*!
2
+ * PROPRIETARY — Buoy license enforcement. NOT open source.
3
+ *
4
+ * Copyright (c) Buoy. All rights reserved. Licensed under the Buoy EULA
5
+ * (https://buoy.gg/terms), not an OSS license.
6
+ */export{};
@@ -0,0 +1,6 @@
1
+ "use strict";/*!
2
+ * PROPRIETARY — Buoy license enforcement. NOT open source.
3
+ *
4
+ * Copyright (c) Buoy. All rights reserved. Licensed under the Buoy EULA
5
+ * (https://buoy.gg/terms), not an OSS license.
6
+ */export{};
@@ -0,0 +1,6 @@
1
+ "use strict";/*!
2
+ * PROPRIETARY — Buoy Pro license enforcement. NOT open source.
3
+ *
4
+ * Copyright (c) Buoy. All rights reserved. Licensed under the Buoy EULA
5
+ * (https://buoy.gg/terms), not an OSS license.
6
+ */export{};
@@ -0,0 +1 @@
1
+ "use strict";
@@ -0,0 +1 @@
1
+ "use strict";export{};
@@ -0,0 +1 @@
1
+ "use strict";
@@ -0,0 +1 @@
1
+ "use strict";export{};
@@ -0,0 +1 @@
1
+ "use strict";
@@ -0,0 +1 @@
1
+ "use strict";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@buoy-gg/license",
3
- "version": "7.0.79",
3
+ "version": "7.0.81",
4
4
  "description": "License validation for React Buoy Pro features",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "main": "lib/commonjs/index.js",
@@ -87,7 +87,8 @@
87
87
  [
88
88
  "typescript",
89
89
  {
90
- "project": "tsconfig.build.json"
90
+ "project": "tsconfig.build.json",
91
+ "tsc": "../../node_modules/typescript/bin/tsc"
91
92
  }
92
93
  ]
93
94
  ]