omnipin 2.2.4 → 2.2.5

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 (2) hide show
  1. package/dist/index.js +2 -2
  2. package/package.json +2 -3
package/dist/index.js CHANGED
@@ -17977,7 +17977,7 @@ let uploadCAR = async (conf, car)=>{
17977
17977
  return multihash = digest_create(0x1b, function(hex, options = {}) {
17978
17978
  return fromHex(hex, options);
17979
17979
  }(ref)).bytes, bytes = new Uint8Array((hashOffset = (codeOffset = varint_0.encodingLength(1)) + varint_0.encodingLength(0xfa)) + multihash.byteLength), varint_0.encode(1, bytes, 0), varint_0.encode(0xfa, bytes, codeOffset), bytes.set(multihash, hashOffset), bytes;
17980
- }, referenceToCIDString = (ref)=>base32.encode(referenceToCID(ref)), swarmy_providerName = 'Swarmy', PROVIDERS = {
17980
+ }, referenceToCIDString = (ref)=>base32.encode(referenceToCID(ref)), DEFAULT_BEE_URL = 'http://localhost:1633', swarmy_providerName = 'Swarmy', PROVIDERS = {
17981
17981
  STORACHA_TOKEN: {
17982
17982
  name: 'Storacha',
17983
17983
  upload: async ({ token, bytes, proof })=>{
@@ -18088,7 +18088,7 @@ let uploadCAR = async (conf, car)=>{
18088
18088
  },
18089
18089
  BEE_TOKEN: {
18090
18090
  name: 'Bee',
18091
- upload: async ({ token, bytes, verbose, beeURL, first })=>{
18091
+ upload: async ({ token, bytes, verbose, beeURL = DEFAULT_BEE_URL, first })=>{
18092
18092
  if (!first) throw new PinningNotSupportedError('Bee');
18093
18093
  let res = await fetch(`${beeURL}/bzz`, {
18094
18094
  body: new Blob([
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "omnipin",
3
- "version": "2.2.4",
3
+ "version": "2.2.5",
4
4
  "author": "v1rtl <hi@v1rtl.site>",
5
5
  "repository": {
6
6
  "type": "git",
@@ -32,8 +32,7 @@
32
32
  "spektr": "^0.2.0",
33
33
  "tinyglobby": "^0.2.15",
34
34
  "typescript": "^5.9.3",
35
- "varint": "^6.0.0",
36
- "vitepress": "^1.6.4"
35
+ "varint": "^6.0.0"
37
36
  },
38
37
  "bin": {
39
38
  "omnipin": "dist/index.js"