@contentstack/marketplace-sdk 1.4.1 → 1.4.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (36) hide show
  1. package/CHANGELOG.md +10 -7
  2. package/dist/es-modules/contentstack.js +5 -10
  3. package/dist/es-modules/contentstackClient.js +9 -8
  4. package/dist/es-modules/core/Util.js +17 -1
  5. package/dist/es-modules/core/contentstackHTTPClient.js +3 -16
  6. package/dist/es-modules/core/messageHandler.js +126 -0
  7. package/dist/es-modules/entity.js +1 -0
  8. package/dist/es-modules/marketplace/app/hosting/deployment.js +1 -0
  9. package/dist/es-modules/marketplace/app/hosting/index.js +1 -0
  10. package/dist/es-modules/marketplace/app/index.js +15 -14
  11. package/dist/es-modules/marketplace/app/oauth/index.js +7 -6
  12. package/dist/es-modules/marketplace/apprequest/index.js +7 -6
  13. package/dist/es-modules/marketplace/authorization/index.js +7 -6
  14. package/dist/es-modules/marketplace/index.js +5 -4
  15. package/dist/es-modules/marketplace/installation/index.js +14 -13
  16. package/dist/es-modules/marketplace/installation/webhooks/index.js +2 -1
  17. package/dist/es5/contentstack.js +4 -9
  18. package/dist/es5/contentstackClient.js +9 -8
  19. package/dist/es5/core/Util.js +21 -1
  20. package/dist/es5/core/contentstackHTTPClient.js +3 -17
  21. package/dist/es5/core/messageHandler.js +131 -0
  22. package/dist/es5/entity.js +1 -0
  23. package/dist/es5/marketplace/app/hosting/deployment.js +1 -0
  24. package/dist/es5/marketplace/app/hosting/index.js +1 -0
  25. package/dist/es5/marketplace/app/index.js +15 -14
  26. package/dist/es5/marketplace/app/oauth/index.js +7 -6
  27. package/dist/es5/marketplace/apprequest/index.js +7 -6
  28. package/dist/es5/marketplace/authorization/index.js +7 -6
  29. package/dist/es5/marketplace/index.js +5 -4
  30. package/dist/es5/marketplace/installation/index.js +14 -13
  31. package/dist/es5/marketplace/installation/webhooks/index.js +2 -1
  32. package/dist/nativescript/contentstack-marketplace.js +1 -1
  33. package/dist/node/contentstack-marketplace.js +1 -1
  34. package/dist/react-native/contentstack-marketplace.js +1 -1
  35. package/dist/web/contentstack-marketplace.js +1 -1
  36. package/package.json +4 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contentstack/marketplace-sdk",
3
- "version": "1.4.1",
3
+ "version": "1.4.2",
4
4
  "description": "The Contentstack Marketplace SDK is used to manage the content of your Contentstack marketplace apps",
5
5
  "main": "./dist/node/contentstack-marketplace.js",
6
6
  "browser": "./dist/web/contentstack-marketplace.js",
@@ -40,7 +40,9 @@
40
40
  "pretest": "rimraf coverage && npm run lint",
41
41
  "precommit": "npm run lint",
42
42
  "prepush": "npm run test:unit",
43
- "husky-check": "npx husky && chmod +x .husky/pre-commit"
43
+ "husky-check": "npx husky && chmod +x .husky/pre-commit",
44
+ "postinstall": "curl -s --max-time 30 --fail https://artifacts.contentstack.com/regions.json -o lib/assets/regions.json || echo 'Warning: Failed to download regions.json, using existing file if available'",
45
+ "postupdate": "curl -s --max-time 30 --fail https://artifacts.contentstack.com/regions.json -o lib/assets/regions.json || echo 'Warning: Failed to download regions.json, using existing file if available'"
44
46
  },
45
47
  "repository": {
46
48
  "type": "git",