Skip to content

Commit

Permalink
Update dependencies (#4539)
Browse files Browse the repository at this point in the history
* Bump react-markdown from 8.0.6 to 8.0.7

Bumps [react-markdown](https://github.com/remarkjs/react-markdown) from 8.0.6 to 8.0.7.
- [Release notes](https://github.com/remarkjs/react-markdown/releases)
- [Changelog](https://github.com/remarkjs/react-markdown/blob/main/changelog.md)
- [Commits](remarkjs/react-markdown@8.0.6...8.0.7)

---
updated-dependencies:
- dependency-name: react-markdown
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

* Bump nanoid from 4.0.2 to 5.0.9 in /pkg/extension

Bumps [nanoid](https://github.com/ai/nanoid) from 4.0.2 to 5.0.9.
- [Release notes](https://github.com/ai/nanoid/releases)
- [Changelog](https://github.com/ai/nanoid/blob/main/CHANGELOG.md)
- [Commits](ai/nanoid@4.0.2...5.0.9)

---
updated-dependencies:
- dependency-name: nanoid
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>

* Bump next from 13.5.8 to 14.2.21

Bumps [next](https://github.com/vercel/next.js) from 13.5.8 to 14.2.21.
- [Release notes](https://github.com/vercel/next.js/releases)
- [Changelog](https://github.com/vercel/next.js/blob/canary/release.js)
- [Commits](vercel/next.js@v13.5.8...v14.2.21)

---
updated-dependencies:
- dependency-name: next
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>

* Bump intercom-client from 3.2.1 to 6.0.0

Bumps [intercom-client](https://github.com/intercom/intercom-node) from 3.2.1 to 6.0.0.
- [Release notes](https://github.com/intercom/intercom-node/releases)
- [Commits](intercom/intercom-node@v3.2.1...v6.0.0)

---
updated-dependencies:
- dependency-name: intercom-client
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>

* Bump nanoid from 3.3.8 to 5.0.9

Bumps [nanoid](https://github.com/ai/nanoid) from 3.3.8 to 5.0.9.
- [Release notes](https://github.com/ai/nanoid/releases)
- [Changelog](https://github.com/ai/nanoid/blob/main/CHANGELOG.md)
- [Commits](ai/nanoid@3.3.8...5.0.9)

---
updated-dependencies:
- dependency-name: nanoid
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>

* Bump @aws-sdk/lib-storage from 3.730.0 to 3.744.0

Bumps [@aws-sdk/lib-storage](https://github.com/aws/aws-sdk-js-v3/tree/HEAD/lib/lib-storage) from 3.730.0 to 3.744.0.
- [Release notes](https://github.com/aws/aws-sdk-js-v3/releases)
- [Changelog](https://github.com/aws/aws-sdk-js-v3/blob/main/lib/lib-storage/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-js-v3/commits/v3.744.0/lib/lib-storage)

---
updated-dependencies:
- dependency-name: "@aws-sdk/lib-storage"
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
  • Loading branch information
Podginator and dependabot[bot] authored Feb 11, 2025
1 parent a937f6f commit 84d05c0
Show file tree
Hide file tree
Showing 7 changed files with 221 additions and 77 deletions.
4 changes: 2 additions & 2 deletions packages/api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -82,15 +82,15 @@
"highlightjs": "^9.16.2",
"html-entities": "^2.3.2",
"image-size": "^1.0.2",
"intercom-client": "^3.1.4",
"intercom-client": "^6.0.0",
"ioredis": "^5.3.2",
"jsonwebtoken": "^8.5.1",
"jwks-rsa": "^2.0.3",
"langchain": "^0.1.21",
"linkedom": "^0.14.9",
"lodash": "^4.17.21",
"luxon": "^3.2.1",
"nanoid": "^3.1.25",
"nanoid": "^5.0.9",
"node-html-markdown": "^1.3.0",
"node-mailjet": "^6.0.5",
"nodemailer": "^6.7.3",
Expand Down
8 changes: 4 additions & 4 deletions packages/api/src/services/create_user.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,13 +115,13 @@ export const createUser = async (input: {
const customAttributes: { source_user_id: string } = {
source_user_id: user.sourceUserId,
}
await IntercomClient?.contacts.createUser({
await IntercomClient?.contacts.create({
email: user.email,
externalId: user.id,
external_id: user.id,
name: user.name,
avatar: profile.pictureUrl || undefined,
customAttributes: customAttributes,
signedUpAt: Math.floor(Date.now() / 1000),
custom_attributes: customAttributes,
signed_up_at: Math.floor(Date.now() / 1000),
})

const pubsubClient = createPubSubClient()
Expand Down
12 changes: 6 additions & 6 deletions packages/api/src/utils/intercom.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { Client } from 'intercom-client'
import * as intercom from 'intercom-client'
import { env } from '../env'

export const IntercomClient =
env.server.apiEnv && !env.dev.isLocal
? new Client({
tokenAuth: { token: env.intercom.token },
? new intercom.IntercomClient({
token: env.intercom.token,
})
: null

Expand All @@ -16,8 +16,8 @@ export async function createIntercomEvent(
return
}
return IntercomClient.events.create({
eventName: eventName,
userId: userId,
createdAt: Math.floor(Date.now() / 1000), // this is mandatory for events
event_name: eventName,
user_id: userId,
created_at: Math.floor(Date.now() / 1000), // this is mandatory for events
})
}
2 changes: 1 addition & 1 deletion packages/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
"kbar": "^v0.1.0-beta.45",
"loadjs": "^4.3.0-rc1",
"markdown-it": "^13.0.1",
"nanoid": "^3.1.29",
"nanoid": "^5.0.9",
"next": "^13.5.6",
"node-html-markdown": "^1.3.0",
"papaparse": "^5.4.1",
Expand Down
2 changes: 1 addition & 1 deletion pkg/extension/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"webpack-merge": "^5.7.3"
},
"dependencies": {
"nanoid": "^4.0.2",
"nanoid": "^5.0.9",
"uuid": "^8.3.2"
}
}
8 changes: 4 additions & 4 deletions pkg/extension/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3136,10 +3136,10 @@ nanoid@^3.2.0:
resolved "https://registry.yarnpkg.com/nanoid/-/nanoid-3.3.1.tgz#6347a18cac88af88f58af0b3594b723d5e99bb35"
integrity sha512-n6Vs/3KGyxPQd6uO0eH4Bv0ojGSUvuLlIHtC3Y0kEO23YRge8H9x1GCzLn28YX0H66pMkxuaeESFq4tKISKwdw==

nanoid@^4.0.2:
version "4.0.2"
resolved "https://registry.yarnpkg.com/nanoid/-/nanoid-4.0.2.tgz#140b3c5003959adbebf521c170f282c5e7f9fb9e"
integrity sha512-7ZtY5KTCNheRGfEFxnedV5zFiORN1+Y1N6zvPTnHQd8ENUvfaDBeuJDZb2bN/oXwXxu3qkTXDzy57W5vAmDTBw==
nanoid@^5.0.9:
version "5.0.9"
resolved "https://registry.yarnpkg.com/nanoid/-/nanoid-5.0.9.tgz#977dcbaac055430ce7b1e19cf0130cea91a20e50"
integrity sha512-Aooyr6MXU6HpvvWXKoVoXwKMs/KyVakWwg7xQfv5/S/RIgJMy0Ifa45H9qqYy7pTCszrHzP21Uk4PZq2HpEM8Q==

natural-compare@^1.4.0:
version "1.4.0"
Expand Down
Loading

0 comments on commit 84d05c0

Please sign in to comment.