Skip to content

Commit

Permalink
Merge pull request #41 from contentstack/fix/named_export
Browse files Browse the repository at this point in the history
fix: replaced default export to named export
  • Loading branch information
vkalta authored Aug 20, 2024
2 parents 555e003 + 5329299 commit d028746
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 10 deletions.
12 changes: 6 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@contentstack/delivery-sdk",
"version": "4.1.0",
"version": "5.0.0",
"type": "commonjs",
"main": "./dist/cjs/src/index.js",
"types": "./dist/types/src/index.d.ts",
Expand All @@ -23,7 +23,7 @@
"@contentstack/core": "^1.1.0",
"@contentstack/utils": "^1.3.8",
"@types/humps": "^2.0.6",
"axios": "^1.7.2",
"axios": "^1.7.3",
"dotenv": "^16.3.1",
"humps": "^2.0.1"
},
Expand Down
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as contentstack from './lib/contentstack';
import contentstack from './lib/contentstack';
export * from './lib/types';

export default contentstack;
export { contentstack as stack };
2 changes: 2 additions & 0 deletions src/lib/contentstack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,3 +112,5 @@ export function stack(config: StackConfig): StackClass {

return new StackClass(client, config);
}

export default stack;

0 comments on commit d028746

Please sign in to comment.