diff --git a/package-lock.json b/package-lock.json index 7836ecc..58b4f9e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,17 +1,17 @@ { "name": "@contentstack/delivery-sdk", - "version": "4.1.0", + "version": "5.0.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@contentstack/delivery-sdk", - "version": "4.1.0", + "version": "5.0.0", "dependencies": { "@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" }, @@ -4205,9 +4205,9 @@ "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==" }, "node_modules/axios": { - "version": "1.7.3", - "resolved": "https://registry.npmjs.org/axios/-/axios-1.7.3.tgz", - "integrity": "sha512-Ar7ND9pU99eJ9GpoGQKhKf58GpUOgnzuaB7ueNQ5BMi0p+LZ5oaEnfF999fAArcTIBwXTCHAmGcHOZJaWPq9Nw==", + "version": "1.7.4", + "resolved": "https://registry.npmjs.org/axios/-/axios-1.7.4.tgz", + "integrity": "sha512-DukmaFRnY6AzAALSH4J2M3k6PkaC+MfaAGdEERRWcC9q3/TWQwLpHR8ZRLKTdQ3aBDL64EdluRDjJqKw+BPZEw==", "dependencies": { "follow-redirects": "^1.15.6", "form-data": "^4.0.0", diff --git a/package.json b/package.json index 3993c54..66e9995 100644 --- a/package.json +++ b/package.json @@ -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", @@ -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" }, diff --git a/src/index.ts b/src/index.ts index 1368037..58c2ee4 100644 --- a/src/index.ts +++ b/src/index.ts @@ -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 }; diff --git a/src/lib/contentstack.ts b/src/lib/contentstack.ts index 3535c51..b56d864 100644 --- a/src/lib/contentstack.ts +++ b/src/lib/contentstack.ts @@ -112,3 +112,5 @@ export function stack(config: StackConfig): StackClass { return new StackClass(client, config); } + +export default stack; \ No newline at end of file