sealnet 1.4.0 → 1.5.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/README.md CHANGED
@@ -20,8 +20,8 @@ and the SDK arrives as one global.
20
20
 
21
21
  ```html
22
22
  <script
23
- src="https://seal.net/sdk/v1.4.0/seal.js"
24
- integrity="sha384-tLe4sOcc/DDwe9iof3rJafPeSusTQaHeiGfS4nrsrfVTCk/rudbOq/uEmvudg9re"
23
+ src="https://seal.net/sdk/v1.5.0/seal.js"
24
+ integrity="sha384-k125VC/xjGAGVbK1q1A7W2ihRtQbFBPOTNxPFrjKfI96lwnIgZI2U5/TDnTh7F9f"
25
25
  crossorigin="anonymous"
26
26
  ></script>
27
27
  <script>
@@ -54,7 +54,7 @@ const seal = new SealClient()
54
54
  const result = await seal.send({
55
55
  file: fileInput.files[0], // File | Blob | ArrayBuffer | Uint8Array
56
56
  filename: 'contract.pdf', // what the RECIPIENT sees; overrides the File own name
57
- ttl: '7d', // '5m' | '30m' | '1h' | '1d' | '7d'
57
+ ttl: '7d', // one of the lifetimes seal.net offers
58
58
  })
59
59
 
60
60
  result.shareUrl // give to the recipient
@@ -95,17 +95,17 @@ await seal.send({
95
95
 
96
96
  ### Files over 1 GB
97
97
 
98
- Up to 1 GB is free. Above it the person pays once by card for a tier
99
- (`5gb` $9 90 days, `50gb` $29 180 days, `500gb` $99 365 days). Show them the
100
- payment page; `send` waits for the payment and finishes the upload into the
101
- same seal. Not paid in time (the seal's expiry, at most 23 hours): the seal
102
- is revoked and `send` throws `PAYMENT_REQUIRED`.
98
+ Up to 1 GB is free. Above it the person pays once by card for a tier (prices
99
+ and terms: seal.net/pricing). Show them the payment page; `send` waits for the
100
+ payment and finishes the upload into the same seal. Not paid in time (the
101
+ seal's expiry, at most 23 hours): the seal is revoked and `send` throws
102
+ `PAYMENT_REQUIRED`.
103
103
 
104
104
  ```typescript
105
105
  await seal.send({
106
106
  file,
107
107
  filename: 'dump.sql',
108
- ttl: '1d', // 1d or 7d with a tier
108
+ ttl: '1d', // a lifetime the server allows a paid seal
109
109
  tier: '5gb',
110
110
  onPaymentRequired: (checkoutUrl) => window.open(checkoutUrl),
111
111
  })
@@ -1,4 +1,4 @@
1
- sealnet 1.4.0 — third-party notices
1
+ sealnet 1.5.0 — third-party notices
2
2
 
3
3
  The standalone browser build (dist/seal.global.js, also published at
4
4
  https://seal.net/sdk/v<version>/seal.js) bundles the software below.