Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/workflows/sca-scan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,6 @@ jobs:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
with:
args: --all-projects --fail-on=all
json: true
continue-on-error: true
- uses: contentstack/sca-policy@main
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2022-2025 Contentstack
Copyright (c) 2026 Contentstack

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ Include the compiled version of the extension client library by adding the follo

```html
<script
src="https://unpkg.com/@contentstack/app-sdk@2.1.0/dist/index.js"
integrity="sha512-wlEBUkZA+vdcHXRTK69fZvK44c5Y8KeU/kw9OOShWNDjddtrIB8a1lfbLjH5nKWQqkWZ2L9VYEqr96P7qx3ZZg=="
src="https://unpkg.com/@contentstack/app-sdk@2.3.6/dist/index.js"
integrity="sha512-emopr/zIeDgm48mJPZsk0xuAautCD26qEG0RV5c8/R/MMhGG+N1TUZf2HxOVmS9BexQ6beP8YT5Q9MLf+ZK0Hw=="
crossorigin="anonymous"
></script>
```
Expand All @@ -23,7 +23,7 @@ npm install @contentstack/app-sdk
Alternatively, you can use the following command within the script tag to install the App SDK:

```html
<script src="https://unpkg.com/@contentstack/app-sdk@2.0.0/dist/index.js"></script>
<script src="https://unpkg.com/@contentstack/app-sdk@2.3.6/dist/index.js"></script>
```

### Initializing the App SDK
Expand All @@ -32,7 +32,7 @@ To Initialize the App SDK you need to run the following command:

```js
ContentstackAppSdk.init().then(function (appSdk) {
// add code here
// add code here
});
```

Expand Down
2 changes: 1 addition & 1 deletion blueprint.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@
},
"line": "none",
"subresourceIntegrity": {
"js": "sha512-wlEBUkZA+vdcHXRTK69fZvK44c5Y8KeU/kw9OOShWNDjddtrIB8a1lfbLjH5nKWQqkWZ2L9VYEqr96P7qx3ZZg=="
"js": "sha512-emopr/zIeDgm48mJPZsk0xuAautCD26qEG0RV5c8/R/MMhGG+N1TUZf2HxOVmS9BexQ6beP8YT5Q9MLf+ZK0Hw=="
}
}
9,775 changes: 4,887 additions & 4,888 deletions package-lock.json

Large diffs are not rendered by default.

10 changes: 7 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@contentstack/app-sdk",
"version": "2.3.5",
"version": "2.3.6",
"types": "dist/src/index.d.ts",
"description": "The Contentstack App SDK allows you to customize your Contentstack applications.",
"main": "dist/index.js",
Expand Down Expand Up @@ -55,7 +55,7 @@
"typescript": "^4.4.4",
"webpack": "^5.92.1",
"webpack-cli": "^4.9.1",
"webpack-dev-server": "^4.7.3"
"webpack-dev-server": "^5.2.3"
},
"dependencies": {
"axios": "^1.7.9",
Expand All @@ -77,5 +77,9 @@
},
"engines": {
"node": ">=18.x"
},
"overrides": {
"http-proxy-agent": "^7.0.2",
"micromatch": "^4.0.8"
}
}
}
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import UiLocation from "./uiLocation";
import { version } from "../package.json";

postRobot.CONFIG.LOG_LEVEL = "error";

postRobot.CONFIG.ACK_TIMEOUT = 10000;
/**
* Class to initialize the App on Contentstack UI.
* Import Contentstack App SDK and then call ContentstackAppSDK.init in your code base
Expand Down
1 change: 1 addition & 0 deletions src/types/post-robot.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ declare module "post-robot" {

interface Config {
LOG_LEVEL: string;
ACK_TIMEOUT: number;
}

export const CONFIG: Config;
Expand Down
1 change: 1 addition & 0 deletions src/types/postRobot.types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,5 @@ interface FireAndForgetRequestOptionsType {

interface Config {
LOG_LEVEL: string;
ACK_TIMEOUT: number;
}
Loading