Skip to content

Commit

Permalink
fix: dependency flow
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewmd5 committed Jun 26, 2023
1 parent bbc05e1 commit 84769cb
Show file tree
Hide file tree
Showing 11 changed files with 318 additions and 314 deletions.
2 changes: 1 addition & 1 deletion .env
Original file line number Diff line number Diff line change
@@ -1 +1 @@
VERSION=0.0.8
VERSION=0.0.9
9 changes: 4 additions & 5 deletions typescript/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "tempojs",
"version": "0.0.5",
"version": "0.0.9",
"description": "something",
"private": true,
"workspaces": [
Expand All @@ -26,9 +26,8 @@
"vitest": "^0.30.1"
},
"dependencies": {
"@tempojs/client": "^0.0.5",
"@tempojs/common": "^0.0.5",
"@tempojs/server": "^0.0.5",
"bebop": "^2.8.3"
"@tempojs/client": "^0.0.9",
"@tempojs/common": "^0.0.9",
"@tempojs/server": "^0.0.9"
}
}
4 changes: 2 additions & 2 deletions typescript/packages/cf-router/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@tempojs/cloudflare-worker-router",
"version": "0.0.5",
"version": "0.0.9",
"description": "",
"main": "./dist/index.js",
"module": "./dist/index.mjs",
Expand All @@ -19,7 +19,7 @@
"author": "andrew",
"license": "",
"dependencies": {
"@tempojs/server": "^0.0.5"
"@tempojs/server": "^0.0.9"
},
"devDependencies": {
"@cloudflare/workers-types": "^4.20221111.1"
Expand Down
4 changes: 2 additions & 2 deletions typescript/packages/client/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@tempojs/client",
"version": "0.0.5",
"version": "0.0.9",
"description": "xrpc client",
"main": "./dist/index.js",
"module": "./dist/index.mjs",
Expand All @@ -16,6 +16,6 @@
"test": "vitest"
},
"dependencies": {
"@tempojs/common": "^0.0.5"
"@tempojs/common": "^0.0.9"
}
}
5 changes: 4 additions & 1 deletion typescript/packages/common/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@tempojs/common",
"version": "0.0.5",
"version": "0.0.9",
"description": "tempo common",
"main": "./dist/index.js",
"module": "./dist/index.mjs",
Expand All @@ -12,6 +12,9 @@
"types": "./dist/index.d.ts"
}
},
"dependencies": {
"bebop": "^2.8.4"
},
"scripts": {
"test": "vitest"
}
Expand Down
4 changes: 3 additions & 1 deletion typescript/packages/common/src/credential.test.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
import { describe, expect, it } from 'vitest';
import { Credential, parseCredential, stringifyCredential } from './credential';
import { Guid } from 'bebop';

describe('Credential', () => {
const id = Guid.newGuid();
const testCredential: Credential = {
token: 'abc123',
claims: new Map<string, string>([
['id😄😄😄', 'user_123'],
['email', '[email protected]'],
['username', 'jane_doe'],
]),
roles: ['admin', 'editor', 42, BigInt(7), true, false],
roles: ['admin', 'editor', 42, BigInt(7), true, false, id],
signature: 'xyz789',
};

Expand Down
2 changes: 1 addition & 1 deletion typescript/packages/common/src/version.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const TempoVersion = '0.0.5';
export const TempoVersion = '0.0.9';
4 changes: 2 additions & 2 deletions typescript/packages/node-http/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@tempojs/node-http-router",
"version": "0.0.5",
"version": "0.0.9",
"description": "tempo node http",
"main": "./dist/index.js",
"module": "./dist/index.mjs",
Expand All @@ -19,6 +19,6 @@
"@types/node": "^14.14.31"
},
"dependencies": {
"@tempojs/server": "^0.0.5"
"@tempojs/server": "^0.0.9"
}
}
4 changes: 2 additions & 2 deletions typescript/packages/server/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@tempojs/server",
"version": "0.0.5",
"version": "0.0.9",
"description": "tempo server",
"main": "./dist/index.js",
"module": "./dist/index.mjs",
Expand All @@ -16,6 +16,6 @@
"test": "vitest"
},
"dependencies": {
"@tempojs/common": "^0.0.5"
"@tempojs/common": "^0.0.9"
}
}
19 changes: 10 additions & 9 deletions typescript/tsup.config.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
{
"clean": true,
"dts": false,
"entry": ["src/index.ts"],
"format": ["cjs", "esm"],
"minify": false,
"sourcemap": true,
"splitting": false,
"outDir": "./dist"
}
"clean": true,
"dts": false,
"entry": ["src/index.ts"],
"format": ["cjs", "esm"],
"minify": false,
"sourcemap": true,
"splitting": false,
"outDir": "./dist",
"external": ["bebop", "@tempojs/common", "@tempojs/server", "@tempojs/client"]
}
Loading

0 comments on commit 84769cb

Please sign in to comment.