@oxy.so/protocol 1.0.1 → 1.1.1

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 (40) hide show
  1. package/LICENSE +675 -201
  2. package/NOTICE +7 -2
  3. package/dist/cjs/.tsbuildinfo +1 -1
  4. package/dist/cjs/auth/registrationPow.js +149 -0
  5. package/dist/cjs/index.js +9 -1
  6. package/dist/cjs/platform/crypto.js +6 -10
  7. package/dist/cjs/platform/crypto.native.js +14 -46
  8. package/dist/cjs/platform/optionalPeer.js +22 -0
  9. package/dist/cjs/platform/random.js +18 -0
  10. package/dist/cjs/platform/random.native.js +52 -0
  11. package/dist/cjs/random.js +25 -0
  12. package/dist/esm/.tsbuildinfo +1 -1
  13. package/dist/esm/auth/registrationPow.js +143 -0
  14. package/dist/esm/index.js +4 -0
  15. package/dist/esm/platform/crypto.js +4 -9
  16. package/dist/esm/platform/crypto.native.js +10 -43
  17. package/dist/esm/platform/optionalPeer.js +19 -0
  18. package/dist/esm/platform/random.js +15 -0
  19. package/dist/esm/platform/random.native.js +48 -0
  20. package/dist/esm/random.js +19 -0
  21. package/dist/types/.tsbuildinfo +1 -1
  22. package/dist/types/auth/registrationPow.d.ts +102 -0
  23. package/dist/types/index.d.ts +1 -0
  24. package/dist/types/platform/crypto.d.ts +1 -7
  25. package/dist/types/platform/crypto.native.d.ts +2 -10
  26. package/dist/types/platform/optionalPeer.d.ts +9 -0
  27. package/dist/types/platform/random.d.ts +13 -0
  28. package/dist/types/platform/random.native.d.ts +33 -0
  29. package/dist/types/random.d.ts +19 -0
  30. package/package.json +21 -4
  31. package/src/__tests__/randomEntry.test.ts +107 -0
  32. package/src/__tests__/registrationPow.test.ts +73 -0
  33. package/src/auth/registrationPow.ts +146 -0
  34. package/src/index.ts +10 -0
  35. package/src/platform/crypto.native.ts +10 -48
  36. package/src/platform/crypto.ts +4 -9
  37. package/src/platform/optionalPeer.ts +23 -0
  38. package/src/platform/random.native.ts +56 -0
  39. package/src/platform/random.ts +18 -0
  40. package/src/random.ts +20 -0
package/NOTICE CHANGED
@@ -4,8 +4,13 @@
4
4
  Copyright (c) 2025-present The Oxy Collective, Inc.
5
5
  ============================================================================
6
6
 
7
- This product is licensed under the Apache License, Version 2.0. See the
8
- LICENSE file in this directory.
7
+ This product is licensed under the Breathe License 1.0, license identifier
8
+ LicenseRef-Breathe-1.0. See the LICENSE file in this directory. Commercial
9
+ terms are available at
10
+ https://github.com/OxyHQ/.github/blob/main/LICENSE-COMMERCIAL.md
11
+
12
+ Attribution under Section 3.1 of the Breathe License is required of
13
+ everyone, including paying commercial licensees, and cannot be waived.
9
14
 
10
15
  ----------------------------------------------------------------------------
11
16
  THIRD PARTY COMPONENTS