Skip to content

Commit

Permalink
rename references
Browse files Browse the repository at this point in the history
  • Loading branch information
gladwindos committed Mar 10, 2024
1 parent c53133a commit fb39455
Show file tree
Hide file tree
Showing 29 changed files with 100 additions and 100 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
dist/
node_modules/
.env
.env.endpointly
.env.gateweaver
.DS_Store
*.log
.turbo
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1 @@
# Endpointly
# Gateweaver
File renamed without changes.
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.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "endpointly",
"name": "gateweaver",
"version": "1.0.0",
"description": "",
"scripts": {
Expand Down
24 changes: 12 additions & 12 deletions packages/cli/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,39 +1,39 @@
# @endpointly/cli
# @gateweaver/cli

## 0.2.4

### Patch Changes

- Update packages with build
- Updated dependencies
- @endpointly/server@0.2.4
- @endpointly/utils@0.2.4
- @gateweaver/server@0.2.4
- @gateweaver/utils@0.2.4

## 0.2.3

### Patch Changes

- Update packages
- Updated dependencies
- @endpointly/server@0.2.3
- @gateweaver/server@0.2.3

## 0.2.2

### Patch Changes

- Update packages
- Updated dependencies
- @endpointly/server@0.2.2
- @endpointly/utils@0.2.2
- @gateweaver/server@0.2.2
- @gateweaver/utils@0.2.2

## 0.2.1

### Patch Changes

- Remove dev packages
- Updated dependencies
- @endpointly/utils@0.2.1
- @endpointly/server@0.2.1
- @gateweaver/utils@0.2.1
- @gateweaver/server@0.2.1

## 0.2.0

Expand All @@ -44,8 +44,8 @@
### Patch Changes

- Updated dependencies
- @endpointly/utils@0.2.0
- @endpointly/server@0.2.0
- @gateweaver/utils@0.2.0
- @gateweaver/server@0.2.0

## 0.1.0

Expand All @@ -56,5 +56,5 @@
### Patch Changes

- Updated dependencies
- @endpointly/utils@0.1.0
- @endpointly/server@0.1.0
- @gateweaver/utils@0.1.0
- @gateweaver/server@0.1.0
8 changes: 4 additions & 4 deletions packages/cli/package.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"name": "@endpointly/cli",
"name": "@gateweaver/cli",
"version": "0.2.4",
"description": "",
"main": "./dist/index.js",
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
"bin": {
"endpointly": "./dist/index.js"
"gateweaver": "./dist/index.js"
},
"scripts": {
"build": "tsup src/index.ts --format cjs,esm --dts",
Expand All @@ -20,8 +20,8 @@
"license": "ISC",
"devDependencies": {},
"dependencies": {
"@endpointly/server": "*",
"@endpointly/utils": "*",
"@gateweaver/server": "*",
"@gateweaver/utils": "*",
"commander": "^12.0.0"
}
}
2 changes: 1 addition & 1 deletion packages/cli/src/generate-api-key.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import crypto from "crypto";
import { hashApiKey } from "@endpointly/utils";
import { hashApiKey } from "@gateweaver/utils";

const generateApiKey = (): string => {
return crypto.randomUUID().replace(/-/g, "");
Expand Down
12 changes: 6 additions & 6 deletions packages/cli/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
#! /usr/bin/env node

// eslint-disable-next-line @typescript-eslint/no-var-requires
require("dotenv").config({ path: ".env.endpointly" });
require("dotenv").config({ path: ".env.gateweaver" });
import { readFileSync } from "node:fs";
import { resolve } from "node:path";
import { program } from "commander";
import { startServer } from "@endpointly/server";
import { logger } from "@endpointly/utils";
import { startServer } from "@gateweaver/server";
import { logger } from "@gateweaver/utils";
import { generateApiKeyAction } from "./generate-api-key";

const packageJson = JSON.parse(
readFileSync(resolve(__dirname, "../package.json"), "utf8"),
);

program
.name("endpointly")
.description("A CLI tool for managing endpointly gateways")
.name("gateweaver")
.description("A CLI tool for managing gateweaver gateways")
.version(packageJson.version);

program
Expand All @@ -25,7 +25,7 @@ program

program
.command("start")
.description("Start the endpointly server")
.description("Start the gateweaver server")
.action(() => {
try {
startServer();
Expand Down
10 changes: 5 additions & 5 deletions packages/policies/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# @endpointly/policies
# @gateweaver/policies

## 0.1.4

### Patch Changes

- Update packages with build
- Updated dependencies
- @endpointly/utils@0.2.4
- @gateweaver/utils@0.2.4

## 0.1.3

Expand All @@ -20,15 +20,15 @@

- Update packages
- Updated dependencies
- @endpointly/utils@0.2.2
- @gateweaver/utils@0.2.2

## 0.1.1

### Patch Changes

- Remove dev packages
- Updated dependencies
- @endpointly/utils@0.2.1
- @gateweaver/utils@0.2.1

## 0.1.0

Expand All @@ -39,4 +39,4 @@
### Patch Changes

- Updated dependencies
- @endpointly/utils@0.1.0
- @gateweaver/utils@0.1.0
4 changes: 2 additions & 2 deletions packages/policies/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@endpointly/policies",
"name": "@gateweaver/policies",
"version": "0.1.4",
"description": "",
"main": "./dist/index.js",
Expand All @@ -16,7 +16,7 @@
"author": "",
"license": "ISC",
"dependencies": {
"@endpointly/utils": "*",
"@gateweaver/utils": "*",
"ajv": "^8.12.0",
"cors": "^2.8.5",
"express-jwt": "^8.4.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/policies/src/api-key/api-key.middleware.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Request, Response } from "express";
import { hashApiKey } from "@endpointly/utils";
import { hashApiKey } from "@gateweaver/utils";
import { apiKeyMiddleware, isValidApiKey } from "./api-key.middleware";

describe("isValidApiKey", () => {
Expand Down
2 changes: 1 addition & 1 deletion packages/policies/src/api-key/api-key.middleware.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Request, Response, NextFunction } from "express";
import { hashApiKey } from "@endpointly/utils";
import { hashApiKey } from "@gateweaver/utils";
import { ApiKeyPolicy } from "./api-key.schema";

export const isValidApiKey = (apiKey: string, apiKeyHashes: string[]) => {
Expand Down
2 changes: 1 addition & 1 deletion packages/policies/src/rate-limit/key-generator.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Request } from "express";
import { UnauthorizedAccessError } from "@endpointly/utils";
import { UnauthorizedAccessError } from "@gateweaver/utils";
import { keyGenerator } from "./key-generator";
import { RateLimitBy } from "./rate-limit.schema";

Expand Down
2 changes: 1 addition & 1 deletion packages/policies/src/rate-limit/key-generator.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Request } from "express";
import { UnauthorizedAccessError } from "@endpointly/utils";
import { UnauthorizedAccessError } from "@gateweaver/utils";
import { RateLimitBy } from "./rate-limit.schema";

const decodeJwt = (token: string) => {
Expand Down
Loading

0 comments on commit fb39455

Please sign in to comment.