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