diff --git a/socios-oauth2/app.js b/socios-oauth2/app.js index de5e0bc33..ebfe53db2 100644 --- a/socios-oauth2/app.js +++ b/socios-oauth2/app.js @@ -1,7 +1,6 @@ import path from "path"; import express from "express"; -// import { Server } from "@tokenscript/token-negotiator-server"; -import { Server } from "./dist/index.js"; +import { Server } from "@tokenscript/token-negotiator-server"; import { fileURLToPath } from "url"; import bodyParser from "body-parser"; import cookieParser from "cookie-parser"; diff --git a/socios-oauth2/package-lock.json b/socios-oauth2/package-lock.json index 6f552c30d..541f206c2 100644 --- a/socios-oauth2/package-lock.json +++ b/socios-oauth2/package-lock.json @@ -10,14 +10,12 @@ "license": "ISC", "dependencies": { "@tokenscript/token-negotiator": "^3.0.0", - "@tokenscript/token-negotiator-server": "^0.1.0", + "@tokenscript/token-negotiator-server": "^0.2.0", "body-parser": "^1.20.2", "cookie-parser": "^1.4.6", "cors": "^2.8.5", "dotenv": "^16.3.1", - "express": "^4.18.0", - "isevn": "^2.0.2", - "node-fetch": "^3.3.2" + "express": "^4.18.0" }, "devDependencies": { "@vercel/ncc": "^0.38.0", @@ -2746,16 +2744,12 @@ } }, "node_modules/@tokenscript/token-negotiator-server": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/@tokenscript/token-negotiator-server/-/token-negotiator-server-0.1.0.tgz", - "integrity": "sha512-FAMCzxaDj9HFPh619x2RnSVCEWaRH+5zpfN0dZ0QxkXhFgAtPZ7T2OXuCoivnnsFIu4ZqwTP0/otZ+cCJMq+zA==", + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/@tokenscript/token-negotiator-server/-/token-negotiator-server-0.2.0.tgz", + "integrity": "sha512-hku0WI6zSoS/EmBMnYZOB25rTIFpSa329tlNLOgZtzEo35nerRKFlPpQsrl+IJKusUsSti0jTSkSBzio91u0bQ==", "dependencies": { - "dotenv": "^16.3.1", "node-fetch": "^3.3.2", - "pako": "^2.1.0", - "stream": "^0.0.2", - "typescript": "^5.1.6", - "zlib": "^1.0.5" + "typescript": "^5.1.6" } }, "node_modules/@toruslabs/http-helpers": { @@ -4635,11 +4629,6 @@ "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.0.tgz", "integrity": "sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA==" }, - "node_modules/emitter-component": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/emitter-component/-/emitter-component-1.1.1.tgz", - "integrity": "sha512-G+mpdiAySMuB7kesVRLuyvYRqDmshB7ReKEVuyBPkzQlmiDiLrt7hHHIy4Aff552bgknVN7B2/d3lzhGO5dvpQ==" - }, "node_modules/emoji-regex": { "version": "8.0.0", "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", @@ -6844,11 +6833,6 @@ "resolved": "https://registry.npmjs.org/isarray/-/isarray-2.0.5.tgz", "integrity": "sha512-xHjhDr3cNBK0BzdUJSPXZntQUx/mwMS5Rw4A7lPJ90XGAO6ISP/ePDNuo0vhqOZU+UD5JoodwCAAoZQd3FeAKw==" }, - "node_modules/isevn": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/isevn/-/isevn-2.0.2.tgz", - "integrity": "sha512-LE+Dz/jZBI7DYiodtXMiUX8eq1zjC4b0SEJcryxkgom3l9c5hoQkNRH1728zpGSLdsOa3yRXD8lLNQ0lIdiMwQ==" - }, "node_modules/isexe": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", @@ -9078,14 +9062,6 @@ "node": ">= 0.8" } }, - "node_modules/stream": { - "version": "0.0.2", - "resolved": "https://registry.npmjs.org/stream/-/stream-0.0.2.tgz", - "integrity": "sha512-gCq3NDI2P35B2n6t76YJuOp7d6cN/C7Rt0577l91wllh0sY9ZBuw9KaSGqH/b0hzn3CWWJbpbW0W0WvQ1H/Q7g==", - "dependencies": { - "emitter-component": "^1.1.1" - } - }, "node_modules/stream-shift": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/stream-shift/-/stream-shift-1.0.1.tgz", @@ -10346,15 +10322,6 @@ "funding": { "url": "https://github.com/sponsors/sindresorhus" } - }, - "node_modules/zlib": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/zlib/-/zlib-1.0.5.tgz", - "integrity": "sha512-40fpE2II+Cd3k8HWTWONfeKE2jL+P42iWJ1zzps5W51qcTsOUKM5Q5m2PFb0CLxlmFAaUuUdJGc3OfZy947v0w==", - "hasInstallScript": true, - "engines": { - "node": ">=0.2.0" - } } }, "dependencies": { @@ -12464,16 +12431,12 @@ } }, "@tokenscript/token-negotiator-server": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/@tokenscript/token-negotiator-server/-/token-negotiator-server-0.1.0.tgz", - "integrity": "sha512-FAMCzxaDj9HFPh619x2RnSVCEWaRH+5zpfN0dZ0QxkXhFgAtPZ7T2OXuCoivnnsFIu4ZqwTP0/otZ+cCJMq+zA==", + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/@tokenscript/token-negotiator-server/-/token-negotiator-server-0.2.0.tgz", + "integrity": "sha512-hku0WI6zSoS/EmBMnYZOB25rTIFpSa329tlNLOgZtzEo35nerRKFlPpQsrl+IJKusUsSti0jTSkSBzio91u0bQ==", "requires": { - "dotenv": "^16.3.1", "node-fetch": "^3.3.2", - "pako": "^2.1.0", - "stream": "^0.0.2", - "typescript": "^5.1.6", - "zlib": "^1.0.5" + "typescript": "^5.1.6" } }, "@toruslabs/http-helpers": { @@ -14007,11 +13970,6 @@ } } }, - "emitter-component": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/emitter-component/-/emitter-component-1.1.1.tgz", - "integrity": "sha512-G+mpdiAySMuB7kesVRLuyvYRqDmshB7ReKEVuyBPkzQlmiDiLrt7hHHIy4Aff552bgknVN7B2/d3lzhGO5dvpQ==" - }, "emoji-regex": { "version": "8.0.0", "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", @@ -15653,11 +15611,6 @@ "resolved": "https://registry.npmjs.org/isarray/-/isarray-2.0.5.tgz", "integrity": "sha512-xHjhDr3cNBK0BzdUJSPXZntQUx/mwMS5Rw4A7lPJ90XGAO6ISP/ePDNuo0vhqOZU+UD5JoodwCAAoZQd3FeAKw==" }, - "isevn": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/isevn/-/isevn-2.0.2.tgz", - "integrity": "sha512-LE+Dz/jZBI7DYiodtXMiUX8eq1zjC4b0SEJcryxkgom3l9c5hoQkNRH1728zpGSLdsOa3yRXD8lLNQ0lIdiMwQ==" - }, "isexe": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", @@ -17298,14 +17251,6 @@ "resolved": "https://registry.npmjs.org/statuses/-/statuses-2.0.1.tgz", "integrity": "sha512-RwNA9Z/7PrK06rYLIzFMlaF+l73iwpzsqRIFgbMLbTcLD6cOao82TaWefPXQvB2fOC4AjuYSEndS7N/mTCbkdQ==" }, - "stream": { - "version": "0.0.2", - "resolved": "https://registry.npmjs.org/stream/-/stream-0.0.2.tgz", - "integrity": "sha512-gCq3NDI2P35B2n6t76YJuOp7d6cN/C7Rt0577l91wllh0sY9ZBuw9KaSGqH/b0hzn3CWWJbpbW0W0WvQ1H/Q7g==", - "requires": { - "emitter-component": "^1.1.1" - } - }, "stream-shift": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/stream-shift/-/stream-shift-1.0.1.tgz", @@ -18296,11 +18241,6 @@ "version": "0.1.0", "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==" - }, - "zlib": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/zlib/-/zlib-1.0.5.tgz", - "integrity": "sha512-40fpE2II+Cd3k8HWTWONfeKE2jL+P42iWJ1zzps5W51qcTsOUKM5Q5m2PFb0CLxlmFAaUuUdJGc3OfZy947v0w==" } } } diff --git a/socios-oauth2/package.json b/socios-oauth2/package.json index fead031e8..c982e6941 100644 --- a/socios-oauth2/package.json +++ b/socios-oauth2/package.json @@ -15,7 +15,7 @@ "license": "ISC", "dependencies": { "@tokenscript/token-negotiator": "^3.0.0", - "@tokenscript/token-negotiator-server": "^0.1.0", + "@tokenscript/token-negotiator-server": "^0.2.0", "body-parser": "^1.20.2", "cookie-parser": "^1.4.6", "cors": "^2.8.5",