bump ipfs-http-client

pull/452/head
yann300 4 years ago committed by Aniket
parent 8f764a45e0
commit 654442f085
  1. 7
      apps/remix-ide/ci/publishIpfs
  2. 1357
      package-lock.json
  3. 2
      package.json

@ -1,14 +1,15 @@
#!/usr/bin/env node
const ipfsClient = require('ipfs-http-client')
const IpfsHttpClient = require('ipfs-http-client')
const { globSource } = IpfsHttpClient
console.log('current folder', process.cwd())
const folder = process.cwd() + '/temp_publish_docker';
(async () => {
const host = 'ipfs.komputing.org' // ethdev berlin ipfs node
const ipfs = ipfsClient({ host, port: 443, protocol: 'https' })
const ipfs = IpfsHttpClient({ host, port: 443, protocol: 'https' })
try {
let result = await ipfs.addFromFs(folder, { recursive: true, pin: false })
let result = await ipfs.add(globSource(folder, { recursive: true, pin: false }))
const remoteFolder = result[result.length - 1]
console.log('ipfs://' + remoteFolder.hash)
console.log('https://ipfsgw.komputing.org/ipfs/' + remoteFolder.hash)

1357
package-lock.json generated

File diff suppressed because it is too large Load Diff

@ -209,7 +209,7 @@
"ganache-cli": "^6.8.1",
"gists": "^1.0.1",
"gulp": "^4.0.2",
"ipfs-http-client": "35.1.1",
"ipfs-http-client": "^47.0.1",
"ipfs-mini": "^1.1.5",
"is-electron": "^2.2.0",
"javascript-serialize": "^1.6.1",

Loading…
Cancel
Save