dsh-plugin-shop 0.6.0 → 0.7.0-beta.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 +8 -1
- package/lib/client.js +243 -243
- package/lib/index.js +453 -40
- package/lib/typert.host.js +9 -9
- package/lib/typert.remote-client.js +9 -9
- package/lib/types/host/catalog.d.ts +19 -1
- package/lib/types/host/index.d.ts +7 -0
- package/lib/types/host/npm-origin.d.ts +24 -0
- package/lib/types/host/npmrc.d.ts +23 -0
- package/lib/types/host/origin.d.ts +40 -0
- package/lib/types/host/race.d.ts +41 -0
- package/lib/types/host/tar.d.ts +13 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -138,9 +138,16 @@ Compromising the browser half buys an attacker those nine calls and nothing more
|
|
|
138
138
|
|
|
139
139
|
## ⚙️ Configuration
|
|
140
140
|
|
|
141
|
+
The shop reads its catalog from whichever source answers first: the npm
|
|
142
|
+
package `dsh-plugin-shop-catalog` (via your configured registry, npmmirror,
|
|
143
|
+
or npmjs) or `https://LivXue.github.io/dsh-plugin-shop/v1/`. All of them
|
|
144
|
+
carry the same bytes; the race exists because the link to one of them can be
|
|
145
|
+
far slower than the link to another. Setting `DSH_SHOP_CATALOG_URL` opts out
|
|
146
|
+
of the race and uses only what you name.
|
|
147
|
+
|
|
141
148
|
| Variable | Effect |
|
|
142
149
|
|---|---|
|
|
143
|
-
| `DSH_SHOP_CATALOG_URL` |
|
|
150
|
+
| `DSH_SHOP_CATALOG_URL` | Read the catalog only from this base, instead of racing the default sources |
|
|
144
151
|
|
|
145
152
|
## 📚 The catalog
|
|
146
153
|
|