Skip to content

Commit 919eee1

Browse files
Vikram KaltaVikram Kalta
authored andcommitted
fix: replaced default export to named export
1 parent fd63ce1 commit 919eee1

4 files changed

Lines changed: 7 additions & 5 deletions

File tree

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@contentstack/delivery-sdk",
3-
"version": "4.1.0",
3+
"version": "5.0.0",
44
"type": "commonjs",
55
"main": "./dist/cjs/src/index.js",
66
"types": "./dist/types/src/index.d.ts",

src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import * as contentstack from './lib/contentstack';
1+
import contentstack from './lib/contentstack';
22
export * from './lib/types';
33

4-
export default contentstack;
4+
export { contentstack as stack };

src/lib/contentstack.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,3 +112,5 @@ export function stack(config: StackConfig): StackClass {
112112

113113
return new StackClass(client, config);
114114
}
115+
116+
export default stack;

0 commit comments

Comments
 (0)