1.0.17 • Published 4 years ago

@sfticketing/common v1.0.17

Weekly downloads
-
License
ISC
Repository
-
Last release
4 years ago

We have a script that will commit our changes with a generic message of "Updates"

Commit - Update 1: Created the "pub" script

Commit - Update 2: We copy paste every code we want to share among services. Dirs: /errors /middlewares

We reexport them from index.ts (our main file), so we can use them like: import { ErrorSpecific } from '@sfticketing/common';

We install dependencies needed by those files:

  • express
  • express-validator
  • cookie-session
  • jsonwebtoken
  • @types/cookie-session
  • @types/express
  • @types/jsonwebtoken

Commit - Update 3: Take out ./ from "files" [] prop

Commit - Update 4: Console log the error not catch in the if (err instance of Error), in case we have a scenario we did not imagine - Give us info about that unexpected error

Commit - Update 5: Uncomment console log of the error

Commit - Update 6: Bring everything done in the nats-streaming-server project into the common module of the ticketing app. Some more code was added - TicketUpdated event for example.

Commit - Update 7: Add the enum type for the status an order can have. This status will be used and updated by various services so we make this an enum type to be shared among those services.

Commit - Update 8: Add the interface for the order:created and order:cancelled events. Each one inside its own file Add these new channels as subjects in the subjects enum type, inside subjects.ts file Re-export new files from index.ts

Commit - Update X - Stop counting here Add version property to every event registered until now

Commit Fix version in order cancelled event

Commit Mark client property inside the base-listener and base-publisher as protected Add orderId inside the TicketUpdatedEvent (event that will be emmited in the listener of OrderCreatedListener)

Commit Add event type expiration:complete for the expiration service

Commit Add event type payment:created for the payment service, to emit event when a charge is created inside charges in the stirpe library

Commit Fix subject for the payment-created-event. Wrong: OrderCreated for PaymentCreated

1.0.17

4 years ago

1.0.15

4 years ago

1.0.11

4 years ago

1.0.14

4 years ago

1.0.13

4 years ago

1.0.12

4 years ago

1.0.10

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago