diff --git a/plugin-server/package.json b/plugin-server/package.json index 2719c1ef67df68..50fe58a1a3ff5b 100644 --- a/plugin-server/package.json +++ b/plugin-server/package.json @@ -43,7 +43,6 @@ "@babel/preset-env": "^7.18.10", "@babel/preset-typescript": "^7.18.6", "@babel/standalone": "^7.18.12", - "@google-cloud/bigquery": "^5.6.0", "@google-cloud/pubsub": "3.0.1", "@google-cloud/storage": "^5.8.5", "@maxmind/geoip2-node": "^3.4.0", @@ -59,10 +58,8 @@ "asn1.js": "^5.4.1", "aws-sdk": "^2.927.0", "escape-string-regexp": "^4.0.0", - "ethers": "^5.5.2", "faker": "^5.5.3", "fast-deep-equal": "^3.1.3", - "generic-pool": "^3.7.1", "graphile-worker": "0.13.0", "hot-shots": "^9.2.0", "ioredis": "^4.27.6", @@ -82,7 +79,6 @@ "prom-client": "^14.2.0", "re2": "^1.20.3", "safe-stable-stringify": "^2.4.0", - "snowflake-sdk": "^1.6.10", "tail": "^2.2.6", "uuid": "^8.3.2", "v8-profiler-next": "^1.9.0", diff --git a/plugin-server/src/worker/vm/imports.ts b/plugin-server/src/worker/vm/imports.ts index 98b168b79d8cdb..533e222df9f69c 100644 --- a/plugin-server/src/worker/vm/imports.ts +++ b/plugin-server/src/worker/vm/imports.ts @@ -1,16 +1,12 @@ -import * as bigquery from '@google-cloud/bigquery' import * as pubsub from '@google-cloud/pubsub' import * as gcs from '@google-cloud/storage' import * as contrib from '@posthog/plugin-contrib' import * as scaffold from '@posthog/plugin-scaffold' import * as AWS from 'aws-sdk' import crypto from 'crypto' -import * as ethers from 'ethers' import * as faker from 'faker' -import * as genericPool from 'generic-pool' import * as jsonwebtoken from 'jsonwebtoken' import * as pg from 'pg' -import snowflake from 'snowflake-sdk' import { PassThrough } from 'stream' import * as url from 'url' import * as zlib from 'zlib' @@ -25,16 +21,12 @@ export const AVAILABLE_IMPORTS = { 'test-utils/write-to-file': writeToFile, } : {}), - '@google-cloud/bigquery': bigquery, '@google-cloud/pubsub': pubsub, '@google-cloud/storage': gcs, '@posthog/plugin-contrib': contrib, '@posthog/plugin-scaffold': scaffold, 'aws-sdk': AWS, - ethers: ethers, - 'generic-pool': genericPool, 'node-fetch': trackedFetch, - 'snowflake-sdk': snowflake, crypto: crypto, jsonwebtoken: jsonwebtoken, faker: faker,