@tokshare/pick 0.1.0 → 0.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.
- package/LICENSE +1 -1
- package/README.md +28 -3
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/picker.global.js +1 -1
- package/package.json +12 -3
package/LICENSE
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
MIT License
|
|
2
2
|
|
|
3
|
-
Copyright (c) 2026 Peter Torki
|
|
3
|
+
Copyright (c) 2026 Peter Torki (https://petertorki.tech, https://instagram.com/peter_torki)
|
|
4
4
|
|
|
5
5
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
6
|
of this software and associated documentation files (the "Software"), to deal
|
package/README.md
CHANGED
|
@@ -1,7 +1,20 @@
|
|
|
1
|
+
<p align="center">
|
|
2
|
+
<img src="https://tokshare-pick.pjturki.workers.dev/media/logo.png" alt="TokShare" width="72" height="72">
|
|
3
|
+
</p>
|
|
4
|
+
|
|
1
5
|
# @tokshare/pick
|
|
2
6
|
|
|
3
7
|
Let visitors send files from their phone to your website: a button, a QR code, and ordinary `File`
|
|
4
|
-
objects in your page. No app on the phone
|
|
8
|
+
objects in your page. No app on the phone, and straight over Wi-Fi when the phone and the computer are
|
|
9
|
+
on the same network.
|
|
10
|
+
|
|
11
|
+

|
|
12
|
+
|
|
13
|
+

|
|
14
|
+
|
|
15
|
+
```sh
|
|
16
|
+
npm install @tokshare/pick
|
|
17
|
+
```
|
|
5
18
|
|
|
6
19
|
## Upload field (recommended)
|
|
7
20
|
|
|
@@ -148,6 +161,18 @@ with a constructable stylesheet and draws the QR on a canvas.
|
|
|
148
161
|
|
|
149
162
|
## Privacy
|
|
150
163
|
|
|
151
|
-
Files travel from the phone to your page
|
|
152
|
-
|
|
164
|
+
Files travel from the phone to your page directly over the local network when both are on the same
|
|
165
|
+
Wi-Fi, otherwise through TokShare's relay, where they are deleted as soon as your page receives them
|
|
166
|
+
(at most 10 minutes after upload). Contents are never inspected beyond the first bytes
|
|
153
167
|
used to check the file type, and never logged.
|
|
168
|
+
|
|
169
|
+
## Author
|
|
170
|
+
|
|
171
|
+
Made by **Peter Torki**: [petertorki.tech](https://petertorki.tech) ·
|
|
172
|
+
[Instagram @peter_torki](https://instagram.com/peter_torki). Also by Peter:
|
|
173
|
+
[TokShare for desktop](https://tokshare.vercel.app), which moves photos and videos between your phone
|
|
174
|
+
and your own PC over Wi-Fi.
|
|
175
|
+
|
|
176
|
+
## License
|
|
177
|
+
|
|
178
|
+
MIT © 2026 Peter Torki. See [LICENSE](./LICENSE).
|
package/dist/index.cjs
CHANGED
|
@@ -168,7 +168,7 @@ function checkSniffed(accept, name, declared, sniffed) {
|
|
|
168
168
|
|
|
169
169
|
// src/config.ts
|
|
170
170
|
var DEFAULT_RELAY = "https://tokshare-pick.pjturki.workers.dev";
|
|
171
|
-
var SDK_VERSION = "0.1.
|
|
171
|
+
var SDK_VERSION = "0.1.1";
|
|
172
172
|
|
|
173
173
|
// src/direct.ts
|
|
174
174
|
function verifyDirectFile(meta, chunks, size, accept, maxBytes) {
|