Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@baiducloud/sdk

Package Overview
Dependencies
Maintainers
0
Versions
63
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@baiducloud/sdk - npm Package Versions

1
7

1.0.1-beta.1

Diff

Changelog

Source

1.0.1-beta.1

published on 2024-01-08

  • BosClient: requestInstance use _req.abort() in Node.js env.
lurunze
published 1.0.1-beta.0 •

Changelog

Source

1.0.1-beta.0

published on 2023-11-29

  • BosClient: support requestInstance to manipulate request cancellation.
lurunze
published 1.0.0-rc.42 •

Changelog

Source

1.0.0-rc.42

published on 2023-10-26

  • BosClient: support callback parameter in options;

Approach 1:

Use the callback parameter, the SDK will help you process the parameter and add it to the request header.

try {
  const res = await client.putObjectFromString('bucketName', 'fileName', 'demo-string', {
    callback: {
      urls: ['https://www.test.com/callback'],
      vars: {name: 'baidu'},
      encrypt: 'config',
      key: 'callback1'
    }
  });

  /* callback result */
  console.log(res.body.callback.result);
} catch (e) {
  /* callback error code */
  console.error(res.body.callback.code);
  /* callback error message */
  console.error(res.body.callback.message);
}

Approach 2:

Directly pass the "x-bce-process" parameter to headers.

try {
  const res = await client.putObjectFromString('bucketName', 'fileName', 'demo-string', {
    'x-bce-process': 'callback/callback,u_WyJodHRwczovL3d3dy50ZXN0LmNvbS9jYWxsYmFjayJd,m_sync,v_eyJuYW1lIjoiYmFpZHUifQ'
  });

  /* callback result */
  console.log(res.body.callback.result);
} catch (e) {
  /* callback error code */
  console.error(res.body.callback.code);
  /* callback error message */
  console.error(res.body.callback.message);
}
lurunze
published 1.0.0-rc.41 •

Changelog

Source

1.0.0-rc.41

published on 2023-10-26

  • BosClient: support 'x-bce-process' in headers;
  • BosClient: add createFolderShareUrl method for sharing links;
lurunze
published 1.0.0-rc.40 •

Changelog

Source

1.0.0-rc.40

published on 2023-06-19

  • BosClient: 'x-bce-security-token' considered in auth token.
lurunze
published 1.0.0-rc.39 •

Changelog

Source

1.0.0-rc.39

published on 2023-06-16

  • BosClient: Add 'x-bce-security-token' when using generatePresignedUrl with sessionToken;
lurunze
published 1.0.0-rc.38 •

Changelog

Source

1.0.0-rc.38

published on 2023-02-16

  • BosClient: support symlink;
lurunze
published 1.0.0-rc.37 •

Changelog

Source

1.0.0-rc.37

published on 2023-01-09

  • BosClient: support 'x-bce-server-side-encryption', 'x-bce-restore-days', 'x-bce-restore-tier' headers;
lurunze
published 1.0.0-rc.36 •

Changelog

Source

1.0.0-rc.36

published on 2022-05-06

  • BOSClient: fix getObject stream.store
lurunze
published 1.0.0-rc.35 •

Changelog

Source

1.0.0-rc.35

published on 2022-05-05

  • BOSClient: Just keep an array of all of buffers and concat at the end.
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc