@better-auth/expo 0.6.3-beta.4

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 (45) hide show
  1. package/.turbo/turbo-build.log +25 -0
  2. package/dist/client.d.mts +136 -0
  3. package/dist/client.d.ts +136 -0
  4. package/dist/client.js +1 -0
  5. package/dist/client.mjs +1 -0
  6. package/dist/index.d.mts +22 -0
  7. package/dist/index.d.ts +22 -0
  8. package/dist/index.js +1 -0
  9. package/dist/index.mjs +1 -0
  10. package/examples/tanstack-example/node_modules/better-sqlite3/LICENSE +21 -0
  11. package/examples/tanstack-example/node_modules/better-sqlite3/README.md +92 -0
  12. package/examples/tanstack-example/node_modules/better-sqlite3/binding.gyp +38 -0
  13. package/examples/tanstack-example/node_modules/better-sqlite3/build/Release/better_sqlite3.node +0 -0
  14. package/examples/tanstack-example/node_modules/better-sqlite3/deps/common.gypi +68 -0
  15. package/examples/tanstack-example/node_modules/better-sqlite3/deps/copy.js +31 -0
  16. package/examples/tanstack-example/node_modules/better-sqlite3/deps/defines.gypi +41 -0
  17. package/examples/tanstack-example/node_modules/better-sqlite3/deps/download.sh +122 -0
  18. package/examples/tanstack-example/node_modules/better-sqlite3/deps/patches/1208.patch +15 -0
  19. package/examples/tanstack-example/node_modules/better-sqlite3/deps/sqlite3/sqlite3.c +260455 -0
  20. package/examples/tanstack-example/node_modules/better-sqlite3/deps/sqlite3/sqlite3.h +13574 -0
  21. package/examples/tanstack-example/node_modules/better-sqlite3/deps/sqlite3/sqlite3ext.h +719 -0
  22. package/examples/tanstack-example/node_modules/better-sqlite3/deps/sqlite3.gyp +80 -0
  23. package/examples/tanstack-example/node_modules/better-sqlite3/deps/test_extension.c +21 -0
  24. package/examples/tanstack-example/node_modules/better-sqlite3/lib/database.js +90 -0
  25. package/examples/tanstack-example/node_modules/better-sqlite3/lib/index.js +3 -0
  26. package/examples/tanstack-example/node_modules/better-sqlite3/lib/methods/aggregate.js +43 -0
  27. package/examples/tanstack-example/node_modules/better-sqlite3/lib/methods/backup.js +67 -0
  28. package/examples/tanstack-example/node_modules/better-sqlite3/lib/methods/function.js +31 -0
  29. package/examples/tanstack-example/node_modules/better-sqlite3/lib/methods/inspect.js +7 -0
  30. package/examples/tanstack-example/node_modules/better-sqlite3/lib/methods/pragma.js +12 -0
  31. package/examples/tanstack-example/node_modules/better-sqlite3/lib/methods/serialize.js +16 -0
  32. package/examples/tanstack-example/node_modules/better-sqlite3/lib/methods/table.js +189 -0
  33. package/examples/tanstack-example/node_modules/better-sqlite3/lib/methods/transaction.js +75 -0
  34. package/examples/tanstack-example/node_modules/better-sqlite3/lib/methods/wrappers.js +54 -0
  35. package/examples/tanstack-example/node_modules/better-sqlite3/lib/sqlite-error.js +20 -0
  36. package/examples/tanstack-example/node_modules/better-sqlite3/lib/util.js +12 -0
  37. package/examples/tanstack-example/node_modules/better-sqlite3/package.json +54 -0
  38. package/examples/tanstack-example/node_modules/better-sqlite3/src/better_sqlite3.cpp +2165 -0
  39. package/examples/tanstack-example/node_modules/better-sqlite3/src/better_sqlite3.hpp +1036 -0
  40. package/package.json +42 -0
  41. package/src/client.ts +198 -0
  42. package/src/expo.test.ts +133 -0
  43. package/src/index.ts +55 -0
  44. package/tsconfig.json +20 -0
  45. package/tsup.config.ts +13 -0
@@ -0,0 +1,41 @@
1
+ # THIS FILE IS AUTOMATICALLY GENERATED BY deps/download.sh (DO NOT EDIT)
2
+
3
+ {
4
+ 'defines': [
5
+ 'HAVE_INT16_T=1',
6
+ 'HAVE_INT32_T=1',
7
+ 'HAVE_INT8_T=1',
8
+ 'HAVE_STDINT_H=1',
9
+ 'HAVE_UINT16_T=1',
10
+ 'HAVE_UINT32_T=1',
11
+ 'HAVE_UINT8_T=1',
12
+ 'HAVE_USLEEP=1',
13
+ 'SQLITE_DEFAULT_CACHE_SIZE=-16000',
14
+ 'SQLITE_DEFAULT_FOREIGN_KEYS=1',
15
+ 'SQLITE_DEFAULT_MEMSTATUS=0',
16
+ 'SQLITE_DEFAULT_WAL_SYNCHRONOUS=1',
17
+ 'SQLITE_DQS=0',
18
+ 'SQLITE_ENABLE_COLUMN_METADATA',
19
+ 'SQLITE_ENABLE_DBSTAT_VTAB',
20
+ 'SQLITE_ENABLE_DESERIALIZE',
21
+ 'SQLITE_ENABLE_FTS3',
22
+ 'SQLITE_ENABLE_FTS3_PARENTHESIS',
23
+ 'SQLITE_ENABLE_FTS4',
24
+ 'SQLITE_ENABLE_FTS5',
25
+ 'SQLITE_ENABLE_GEOPOLY',
26
+ 'SQLITE_ENABLE_JSON1',
27
+ 'SQLITE_ENABLE_MATH_FUNCTIONS',
28
+ 'SQLITE_ENABLE_RTREE',
29
+ 'SQLITE_ENABLE_STAT4',
30
+ 'SQLITE_ENABLE_UPDATE_DELETE_LIMIT',
31
+ 'SQLITE_LIKE_DOESNT_MATCH_BLOBS',
32
+ 'SQLITE_OMIT_DEPRECATED',
33
+ 'SQLITE_OMIT_PROGRESS_CALLBACK',
34
+ 'SQLITE_OMIT_SHARED_CACHE',
35
+ 'SQLITE_OMIT_TCL_VARIABLE',
36
+ 'SQLITE_SOUNDEX',
37
+ 'SQLITE_THREADSAFE=2',
38
+ 'SQLITE_TRACE_SIZE_LIMIT=32',
39
+ 'SQLITE_USE_URI=0',
40
+ ],
41
+ }
@@ -0,0 +1,122 @@
1
+ #!/usr/bin/env bash
2
+
3
+ # ===
4
+ # This script defines and generates the bundled SQLite3 unit (sqlite3.c).
5
+ #
6
+ # The following steps are taken:
7
+ # 1. populate the shell environment with the defined compile-time options.
8
+ # 2. download and extract the SQLite3 source code into a temporary directory.
9
+ # 3. run "sh configure" and "make sqlite3.c" within the source directory.
10
+ # 4. copy the generated amalgamation into the output directory (./sqlite3).
11
+ # 5. export the defined compile-time options to a gyp file (./defines.gypi).
12
+ # 6. update the docs (../docs/compilation.md) with details of this distribution.
13
+ #
14
+ # When a user builds better-sqlite3, the following steps are taken:
15
+ # 1. node-gyp loads the previously exported compile-time options (defines.gypi).
16
+ # 2. the copy.js script copies the bundled amalgamation into the build folder.
17
+ # 3. node-gyp compiles the copied sqlite3.c along with better_sqlite3.cpp.
18
+ # 4. node-gyp links the two resulting binaries to generate better_sqlite3.node.
19
+ # ===
20
+
21
+ YEAR="2024"
22
+ VERSION="3470000"
23
+
24
+ # Defines below are sorted alphabetically
25
+ DEFINES="
26
+ HAVE_INT16_T=1
27
+ HAVE_INT32_T=1
28
+ HAVE_INT8_T=1
29
+ HAVE_STDINT_H=1
30
+ HAVE_UINT16_T=1
31
+ HAVE_UINT32_T=1
32
+ HAVE_UINT8_T=1
33
+ HAVE_USLEEP=1
34
+ SQLITE_DEFAULT_CACHE_SIZE=-16000
35
+ SQLITE_DEFAULT_FOREIGN_KEYS=1
36
+ SQLITE_DEFAULT_MEMSTATUS=0
37
+ SQLITE_DEFAULT_WAL_SYNCHRONOUS=1
38
+ SQLITE_DQS=0
39
+ SQLITE_ENABLE_COLUMN_METADATA
40
+ SQLITE_ENABLE_DBSTAT_VTAB
41
+ SQLITE_ENABLE_DESERIALIZE
42
+ SQLITE_ENABLE_FTS3
43
+ SQLITE_ENABLE_FTS3_PARENTHESIS
44
+ SQLITE_ENABLE_FTS4
45
+ SQLITE_ENABLE_FTS5
46
+ SQLITE_ENABLE_GEOPOLY
47
+ SQLITE_ENABLE_JSON1
48
+ SQLITE_ENABLE_MATH_FUNCTIONS
49
+ SQLITE_ENABLE_RTREE
50
+ SQLITE_ENABLE_STAT4
51
+ SQLITE_ENABLE_UPDATE_DELETE_LIMIT
52
+ SQLITE_LIKE_DOESNT_MATCH_BLOBS
53
+ SQLITE_OMIT_DEPRECATED
54
+ SQLITE_OMIT_PROGRESS_CALLBACK
55
+ SQLITE_OMIT_SHARED_CACHE
56
+ SQLITE_OMIT_TCL_VARIABLE
57
+ SQLITE_SOUNDEX
58
+ SQLITE_THREADSAFE=2
59
+ SQLITE_TRACE_SIZE_LIMIT=32
60
+ SQLITE_USE_URI=0
61
+ "
62
+
63
+ # ========== START SCRIPT ========== #
64
+
65
+ echo "setting up environment..."
66
+ DEPS="$(CDPATH= cd -- "$(dirname -- "$0")" && pwd)"
67
+ TEMP="$DEPS/temp"
68
+ OUTPUT="$DEPS/sqlite3"
69
+ rm -rf "$TEMP"
70
+ rm -rf "$OUTPUT"
71
+ mkdir -p "$TEMP"
72
+ mkdir -p "$OUTPUT"
73
+ export CFLAGS=`echo $(echo "$DEFINES" | sed -e "/^\s*$/d" -e "s/^/-D/")`
74
+
75
+ echo "downloading source..."
76
+ curl -#f "https://www.sqlite.org/$YEAR/sqlite-src-$VERSION.zip" > "$TEMP/source.zip" || exit 1
77
+
78
+ echo "extracting source..."
79
+ unzip "$TEMP/source.zip" -d "$TEMP" > /dev/null || exit 1
80
+ cd "$TEMP/sqlite-src-$VERSION" || exit 1
81
+
82
+ echo "configuring amalgamation..."
83
+ sh configure > /dev/null || exit 1
84
+
85
+ echo "building amalgamation..."
86
+ make sqlite3.c > /dev/null || exit 1
87
+
88
+ echo "copying amalgamation..."
89
+ cp sqlite3.c sqlite3.h sqlite3ext.h "$OUTPUT/" || exit 1
90
+
91
+ echo "applying patches..."
92
+ cd "$DEPS" || exit 1
93
+ for patch in patches/*.patch; do
94
+ # If a patch fails, just skip it an move on.
95
+ # By default `patch` tries to be clever and reverse the patch, so we have to specify `--forward`.
96
+ # If the patch fails, we # don't write .orig and .rej files, so we have to specify `--no-backup-if-mismatch` and `--reject-file=-`.
97
+ patch --batch --forward --no-backup-if-mismatch --reject-file=- -p2 < "$patch"
98
+ done
99
+
100
+ echo "updating gyp configs..."
101
+ GYP="$DEPS/defines.gypi"
102
+ printf "# THIS FILE IS AUTOMATICALLY GENERATED BY deps/download.sh (DO NOT EDIT)\n\n{\n 'defines': [\n" > "$GYP"
103
+ printf "$DEFINES" | sed -e "/^\s*$/d" -e "s/\(.*\)/ '\1',/" >> "$GYP"
104
+ printf " ],\n}\n" >> "$GYP"
105
+
106
+ echo "updating docs..."
107
+ DOCS="$DEPS/../docs/compilation.md"
108
+ MAJOR=`expr "${VERSION:0:1}" + 0`
109
+ MINOR=`expr "${VERSION:1:2}" + 0`
110
+ PATCH=`expr "${VERSION:3:2}" + 0`
111
+ sed -Ei.bak -e "s/version [0-9]+\.[0-9]+\.[0-9]+/version $MAJOR.$MINOR.$PATCH/g" "$DOCS"
112
+ sed -i.bak -e "/^SQLITE_/,\$d" "$DOCS"
113
+ sed -i.bak -e "/^HAVE_/,\$d" "$DOCS"
114
+ rm "$DOCS".bak
115
+ printf "$DEFINES" | sed -e "/^\s*$/d" >> "$DOCS"
116
+ printf "\`\`\`\n" >> "$DOCS"
117
+
118
+ echo "cleaning up..."
119
+ cd - > /dev/null || exit 1
120
+ rm -rf "$TEMP"
121
+
122
+ echo "done!"
@@ -0,0 +1,15 @@
1
+ diff --git a/deps/sqlite3/sqlite3.c b/deps/sqlite3/sqlite3.c
2
+ index b1a807f..38bd1e6 100644
3
+ --- a/deps/sqlite3/sqlite3.c
4
+ +++ b/deps/sqlite3/sqlite3.c
5
+ @@ -24887,8 +24887,8 @@ static const struct {
6
+ /* 1 */ { 6, "minute", 7.7379e+12, 60.0 },
7
+ /* 2 */ { 4, "hour", 1.2897e+11, 3600.0 },
8
+ /* 3 */ { 3, "day", 5373485.0, 86400.0 },
9
+ - /* 4 */ { 5, "month", 176546.0, 30.0*86400.0 },
10
+ - /* 5 */ { 4, "year", 14713.0, 365.0*86400.0 },
11
+ + /* 4 */ { 5, "month", 176546.0, 2592000.0 },
12
+ + /* 5 */ { 4, "year", 14713.0, 31536000.0 },
13
+ };
14
+
15
+ /*