Skip to content

Commit

Permalink
feat: update parser-js to v2 (asyncapi#523)
Browse files Browse the repository at this point in the history
Co-authored-by: Khuda Dad Nomani <[email protected]>
  • Loading branch information
Souvikns and KhudaDad414 authored Oct 20, 2023
1 parent 3cc61e3 commit a15e431
Show file tree
Hide file tree
Showing 41 changed files with 23,261 additions and 23,127 deletions.
3 changes: 3 additions & 0 deletions examples/crypto-websockets/client/glee.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
export default async function () {
return {
docs: {
enabled: false
},
ws: {
client: {
auth: async ({serverName}) => {
Expand Down
46 changes: 23 additions & 23 deletions examples/crypto-websockets/client/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions examples/crypto-websockets/server/glee.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
export default async function () {
return {
docs: {
enabled: false
},
}
}
46 changes: 23 additions & 23 deletions examples/crypto-websockets/server/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions examples/dummy/glee.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ import fs from 'fs'

export default async function () {
return {
docs: {
enabled: false
},
mqtt: {
auth: async ({serverName}) => {
if(serverName === 'mosquitto') {
Expand Down
2 changes: 1 addition & 1 deletion examples/flight-management/backend/Events/allFlights.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import DatabaseManager from '../helpters/DatabaseManager.js'
import type {GleeFunctionReturn} from '@asyncapi/glee/src/lib'
import type { GleeFunctionReturn } from '@asyncapi/glee'

export default async function getFlights(airportCode: string): Promise<GleeFunctionReturn> {
const flights = await DatabaseManager.getInstance().getFlights(airportCode)
Expand Down
2 changes: 1 addition & 1 deletion examples/flight-management/backend/Events/updateFlight.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { GleeFunctionReturn } from '@asyncapi/glee/src/lib/index.js'
import type { GleeFunctionReturn } from '@asyncapi/glee'
import DatabaseManager from '../helpters/DatabaseManager.js'
export default async function updateFlight(flight):Promise<GleeFunctionReturn> {
const isSuccessful = await DatabaseManager.getInstance().updateFlight(flight)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { GleeFunctionReturn } from '@asyncapi/glee'
import type { GleeFunctionReturn } from '@asyncapi/glee'
import allFlights from '../Events/allFlights.js'
import updateFlight from '../Events/updateFlight.js'
export default async function (gleeEvent): Promise<GleeFunctionReturn> {
Expand Down
8 changes: 8 additions & 0 deletions examples/flight-management/backend/glee.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
// import customServer from './customServer.js'
export default async function () {
return {
docs: {
enabled: false
},
}
}
Loading

0 comments on commit a15e431

Please sign in to comment.