Skip to content

Commit 55d0fc7

Browse files
chore: update dependancies
1 parent 6a9a0fc commit 55d0fc7

10 files changed

+192
-102
lines changed

.idea/.gitignore

+5
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/example-nodejs-typescript.iml

+12
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/misc.xml

+6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/modules.xml

+8
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/vcs.xml

+6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

README.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,15 @@
33
An example app built using the [DevCycle NodeJS Server SDK](https://docs.devcycle.com/sdk/server-side-sdks/node/) and TypeScript
44

55
## Creating a Demo Feature
6+
67
This example app requires that your project has a feature with the expected variables, as well as some simple targeting rules.
78

89
#### [Click here](https://app.devcycle.com/r/create?resource=feature&key=hello-togglebot) to automatically create the feature in your project ⇦
910

1011
When you run the example app and switch your identity between users, you'll be able to see the feature's different variations.
1112

12-
1313
## Running the Example
14+
1415
### Setup
1516

1617
* Run `npm install` in the project directory to install dependencies
@@ -30,4 +31,5 @@ Requests may be sent to [http://localhost:5002](http://localhost:5002). See `src
3031
`npm run test`
3132

3233
## Documentation
34+
3335
For more information about using the DevCycle NodeJS Server SDK, see [the documentation](https://docs.devcycle.com/sdk/server-side-sdks/node/)

package-lock.json

+150-97
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "example-nodejs-typescript",
33
"version": "1.0.0",
44
"dependencies": {
5-
"@devcycle/nodejs-server-sdk": "^1.30.1",
5+
"@devcycle/nodejs-server-sdk": "^1.41.2",
66
"dotenv": "^16.3.1",
77
"express": "^4.18.2",
88
"supertest": "^6.3.3"

src/devcycle.ts

-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@ let devcycleClient: DevCycleClient;
1010
async function initializeDevCycleClient() {
1111
devcycleClient = await initializeDevCycle(DEVCYCLE_SERVER_SDK_KEY, {
1212
logLevel: "info",
13-
// Controls the polling interval in milliseconds to fetch new environment config changes
14-
configPollingIntervalMS: 5 * 1000,
1513
// Controls the interval between flushing events to the DevCycle servers
1614
eventFlushIntervalMS: 1000,
1715
}).onClientInitialized();

src/routes/greeting.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ const greetings = {
2121
};
2222

2323
export default (req: Request, res: Response) => {
24-
const step = getDevCycleClient().variableValue<keyof typeof greetings>(
24+
const step = getDevCycleClient().variableValue<string, keyof typeof greetings>(
2525
req.user,
2626
"example-text",
2727
"default"

0 commit comments

Comments
 (0)