Skip to content

Commit

Permalink
Merge pull request #68 from hckrnews/featore/trojs
Browse files Browse the repository at this point in the history
Move to TroJS
  • Loading branch information
w3nl authored Apr 19, 2024
2 parents fd3cbf6 + b474ef7 commit b51a68f
Show file tree
Hide file tree
Showing 8 changed files with 44 additions and 44 deletions.
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
20.10.0
20.12.2
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) 2021 Hckr.News
Copyright (c) 2024 TroJS

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,9 +8,9 @@ Create easy a webserver API first with a OpenAPI spec.

## Installation

`npm install @hckrnews/openapi-server`
`npm install @trojs/openapi-server`
or
`yarn add @hckrnews/openapi-server`
`yarn add @trojs/openapi-server`

## Test the package

Expand Down Expand Up @@ -103,5 +103,5 @@ const api = new Api({
See also: https://openapistack.co/docs/openapi-backend/security-handlers/#security-handlers


[npm-url]: https://www.npmjs.com/package/@hckrnews/openapi-server
[npm-image]: https://img.shields.io/npm/v/@hckrnews/openapi-server.svg
[npm-url]: https://www.npmjs.com/package/@trojs/openapi-server
[npm-image]: https://img.shields.io/npm/v/@trojs/openapi-server.svg
64 changes: 32 additions & 32 deletions package-lock.json

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

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"name": "@hckrnews/openapi-server",
"name": "@trojs/openapi-server",
"description": "OpenAPI Server",
"version": "0.8.13",
"version": "1.0.0",
"author": {
"name": "Pieter Wigboldus",
"url": "https://hckr.news/"
"url": "https://trojs.org/"
},
"license": "MIT",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion src/server-no-auth.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ const api = new Api({
const { app } = await setupServer({
env: envExample,
apis: [api],
origin: 'hckr.news',
origin: 'trojs.org',
staticFolder: './__fixtures__/'
})

Expand Down
2 changes: 1 addition & 1 deletion src/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ const getOriginResourcePolicy = (origin) => ({
* @param {string=} params.version
* @returns {Promise<{ app: Express }>}
*/
export const setupServer = async ({ apis, origin = '*', staticFolder, sentry, poweredBy = 'HckrNews', version = '1.0.0' }) => {
export const setupServer = async ({ apis, origin = '*', staticFolder, sentry, poweredBy = 'TroJS', version = '1.0.0' }) => {
const corsOptions = {
origin
}
Expand Down
2 changes: 1 addition & 1 deletion src/server.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ const api = new Api({
const { app } = await setupServer({
env: envExample,
apis: [api],
origin: 'hckr.news',
origin: 'tro.js',
staticFolder: './__fixtures__/'
})

Expand Down

0 comments on commit b51a68f

Please sign in to comment.