Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion apps/minting-service/handlers/stripe-webhook.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {
upsertLicense,
getLicense,
revokeLicense,
} from '@cacheplane/db';
} from '@ngaf/db';
import { loadEnv } from '../src/lib/env.js';
import { getStripe } from '../src/lib/stripe.js';
import { mintToken } from '../src/lib/sign.js';
Expand Down
2 changes: 1 addition & 1 deletion apps/minting-service/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@cacheplane/minting-service",
"name": "@ngaf/minting-service",
"version": "0.0.1",
"type": "module",
"license": "SEE LICENSE IN LICENSE",
Expand Down
4 changes: 2 additions & 2 deletions apps/minting-service/scripts/build.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Builds the minting-service API functions using Vercel Build Output API v3.
*
* - Bundles each `handlers/*.ts` into a self-contained CommonJS module via
* esbuild, inlining workspace deps (@cacheplane/*) and npm deps alike so no
* esbuild, inlining workspace deps (@ngaf/*) and npm deps alike so no
* install step is required inside each function directory.
* - Writes to `.vercel/output/functions/api/<name>.func/` with the companion
* `.vc-config.json` Vercel's Node runtime expects.
Expand Down Expand Up @@ -44,7 +44,7 @@ async function buildEntry(entry) {
platform: 'node',
target: 'node20',
format: 'cjs',
// Lets esbuild resolve `@cacheplane/*` via tsconfig paths and
// Lets esbuild resolve `@ngaf/*` via tsconfig paths and
// follows `extends` up to the workspace tsconfig.base.json.
tsconfig: join(appRoot, 'tsconfig.app.json'),
// @vercel/node provides these as ambient in the runtime environment.
Expand Down
2 changes: 1 addition & 1 deletion apps/minting-service/scripts/remint.spec.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// SPDX-License-Identifier: PolyForm-Noncommercial-1.0.0
import { parseArgs, runRemint, type RemintDeps } from './remint.js';
import type { License } from '@cacheplane/db';
import type { License } from '@ngaf/db';

function makeLicense(overrides: Partial<License> = {}): License {
return {
Expand Down
2 changes: 1 addition & 1 deletion apps/minting-service/scripts/remint.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {
updateLicenseToken,
type Db,
type License,
} from '@cacheplane/db';
} from '@ngaf/db';
import { loadEnv } from '../src/lib/env.js';
import { mintToken } from '../src/lib/sign.js';
import { sendLicenseEmail, renderLicenseEmail, type RenderedEmail } from '../src/lib/email.js';
Expand Down
2 changes: 1 addition & 1 deletion apps/minting-service/src/lib/handlers.spec.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// SPDX-License-Identifier: PolyForm-Noncommercial-1.0.0
import type Stripe from 'stripe';
import type { License } from '@cacheplane/db';
import type { License } from '@ngaf/db';
import { handleEvent, type HandlerDeps } from './handlers.js';

function makeDeps(overrides: Partial<HandlerDeps> = {}): HandlerDeps {
Expand Down
2 changes: 1 addition & 1 deletion apps/minting-service/src/lib/handlers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import type {
Db,
License,
UpsertLicenseInput,
} from '@cacheplane/db';
} from '@ngaf/db';
import type { MintInput } from './sign.js';
import type { LicenseEmailVars } from './email.js';
import { extractTier, computeSeats } from './tier.js';
Expand Down
2 changes: 1 addition & 1 deletion apps/minting-service/src/lib/sign.spec.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// SPDX-License-Identifier: PolyForm-Noncommercial-1.0.0
import * as ed from '@noble/ed25519';
import { verifyLicense } from '@cacheplane/licensing';
import { verifyLicense } from '@ngaf/licensing';
import { mintToken } from './sign.js';

async function makeKeypair() {
Expand Down
2 changes: 1 addition & 1 deletion apps/minting-service/src/lib/sign.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: PolyForm-Noncommercial-1.0.0
import { signLicense, type LicenseClaims } from '@cacheplane/licensing';
import { signLicense, type LicenseClaims } from '@ngaf/licensing';
import type { MintableTier } from './tier.js';

export interface MintInput {
Expand Down
2 changes: 1 addition & 1 deletion apps/minting-service/src/lib/tier.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: PolyForm-Noncommercial-1.0.0
import type { LicenseTier } from '@cacheplane/licensing';
import type { LicenseTier } from '@ngaf/licensing';

export type MintableTier = Extract<LicenseTier, 'developer-seat' | 'app-deployment'>;

Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

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

Loading