7.1.8 • Published 7 months ago

fano-oss-js-sdk v7.1.8

Weekly downloads
-
License
Apache-2.0
Repository
-
Last release
7 months ago

Fano OSS JavaScript SDK

This is a fork of Minio-js for adding custom feature targeted for Fano OSS.

Difference

  • Add externalHost and contextualPath to ClientOptions
  • getPresignedUrl and presignedGetObject are changed with the new isExternal parameter (it should be set before expires)

Sample:

  var client = new minio.Client({
    endPoint: "127.0.0.1",
    externalHost: "sample.fano.ai",
    useExternalSSL: true,
    port: 9000,
    useSSL: false,
    accessKey: "accesskey",
    secretKey: "secretkey",
    contextualPath: true
  });

  a = await client.presignedGetObject("example", "test", isExternal=true)
  console.log(`external: ${a}`)
  b = await client.presignedGetObject("example", "test")
  console.log(`internal: ${b}`)