Skip to content

Commit 2037a6b

Browse files
authored
Merge pull request #47 from contentstack/revert-41-fix/named_export
Revert "fix: replaced default export to named export"
2 parents 50c50b8 + 6aff186 commit 2037a6b

File tree

4 files changed

+10
-12
lines changed

4 files changed

+10
-12
lines changed

package-lock.json

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

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@contentstack/delivery-sdk",
3-
"version": "5.0.0",
3+
"version": "4.1.0",
44
"type": "commonjs",
55
"main": "./dist/cjs/src/index.js",
66
"types": "./dist/types/src/index.d.ts",
@@ -23,7 +23,7 @@
2323
"@contentstack/core": "^1.1.0",
2424
"@contentstack/utils": "^1.3.8",
2525
"@types/humps": "^2.0.6",
26-
"axios": "^1.7.3",
26+
"axios": "^1.7.2",
2727
"dotenv": "^16.3.1",
2828
"humps": "^2.0.1"
2929
},

src/index.ts

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

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

src/lib/contentstack.ts

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

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

0 commit comments

Comments
 (0)