@pinata/sdk 2.0.0-beta.2 → 2.0.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pinata/sdk",
3
- "version": "2.0.0-beta.2",
3
+ "version": "2.0.0",
4
4
  "description": "Official SDK for the Pinata IPFS platform",
5
5
  "main": "lib/pinata-sdk.js",
6
6
  "types": "types/index.d.ts",
package/src/index.ts CHANGED
@@ -114,7 +114,10 @@ class PinataClient {
114
114
  }
115
115
  }
116
116
 
117
+ module.exports = PinataClient;
118
+
117
119
  export * from './commands/data';
118
120
  export * from './commands/pinning';
119
121
 
120
122
  export default PinataClient;
123
+
@@ -1,5 +1,5 @@
1
- import NodeFormData from "form-data";
2
- import { PinataConfig, PinataMetadata } from "../..";
1
+ import NodeFormData from 'form-data';
2
+ import { PinataConfig, PinataMetadata } from '../..';
3
3
  export interface PinataPinPolicyItem {
4
4
  id: string;
5
5
  desiredReplicationCount: number;
@@ -1,3 +1,3 @@
1
- import { PinataConfig } from "../..";
2
- import { PinataPinOptions, PinataPinResponse } from "./pinFileToIPFS";
1
+ import { PinataConfig } from '../..';
2
+ import { PinataPinOptions, PinataPinResponse } from './pinFileToIPFS';
3
3
  export default function pinFromFS(config: PinataConfig, sourcePath: string, options?: PinataPinOptions): Promise<PinataPinResponse>;