diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6026df461d..bac5662645 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -105,7 +105,7 @@ jobs: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} - name: Build - run: NODE_ENV=production yarn lerna run build --scope=@segment/browser-destinations --include-dependencies --stream + run: NODE_ENV=production yarn build:browser-destinations && yarn browser build-web - name: Run Saucelabs Tests working-directory: packages/browser-destinations-integration-tests diff --git a/docs/create.md b/docs/create.md index d74d0f09d4..6c3e96a56f 100644 --- a/docs/create.md +++ b/docs/create.md @@ -119,7 +119,7 @@ With this minimal configuration, the destination can connect to the Segment App' ```js import type { Settings } from './generated-types' -import type { BrowserDestinationDefinition } from '../../lib/browser-destinations' +import type { BrowserDestinationDefinition } from '@segment/browser-destination-runtime/types' import { browserDestination } from '../../runtime/shim' // Declare global to access your client diff --git a/lerna.json b/lerna.json index ce68bdb8a9..8c3c8d6092 100644 --- a/lerna.json +++ b/lerna.json @@ -1,5 +1,5 @@ { - "packages": ["packages/*"], + "packages": ["packages/*", "packages/browser-destinations/destinations/*"], "npmClient": "yarn", "version": "independent", "useWorkspaces": true, diff --git a/package.json b/package.json index db2633f34c..5deb411fc0 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,8 @@ "license": "MIT", "workspaces": { "packages": [ - "packages/*" + "packages/*", + "packages/browser-destinations/destinations/*" ] }, "engines": { @@ -17,10 +18,11 @@ "cli-internal": "yarn workspace @segment/actions-cli-internal", "core": "yarn workspace @segment/actions-core", "bootstrap": "lerna bootstrap", - "build": "./bin/run generate:types && lerna run build --stream --ignore @segment/actions-cli-internal", + "build": "./bin/run generate:types && lerna run build --concurrency 1 --stream --ignore @segment/actions-cli-internal && yarn browser build-web", + "build:browser-destinations": "yarn lerna run build --concurrency 1 --scope=@segment/destinations-manifest --include-dependencies --stream && yarn browser build-web", "types": "./bin/run generate:types", "validate": "./bin/run validate", - "lint": "eslint '**/*.ts' --cache", + "lint": "ls -d ./packages/* | xargs -I {} eslint '{}/**/*.ts' --cache", "subscriptions": "yarn workspace @segment/destination-subscriptions", "test": "lerna run test --stream", "test-partners": "lerna run test --stream --ignore @segment/actions-core --ignore @segment/actions-cli --ignore @segment/ajv-human-errors", @@ -68,7 +70,7 @@ "timers-browserify": "^2.0.12", "ts-jest": "^27.0.0", "ts-node": "^9.1.1", - "typescript": "^4.1.3", + "typescript": "4.3.5", "ws": "^8.5.0" }, "resolutions": { diff --git a/packages/browser-destination-runtime/package.json b/packages/browser-destination-runtime/package.json new file mode 100644 index 0000000000..cb15989960 --- /dev/null +++ b/packages/browser-destination-runtime/package.json @@ -0,0 +1,66 @@ +{ + "name": "@segment/browser-destination-runtime", + "version": "0.0.0", + "scripts": { + "build": "yarn build:esm && yarn build:cjs", + "build:esm": "tsc --outDir ./dist/esm", + "build:cjs": "tsc --module commonjs --outDir ./dist/cjs" + }, + "exports": { + ".": { + "require": "./dist/cjs/index.js", + "default": "./dist/esm/index.js" + }, + "./load-script": { + "require": "./dist/cjs/load-script.js", + "default": "./dist/esm/load-script.js" + }, + "./plugin": { + "require": "./dist/cjs/plugin.js", + "default": "./dist/esm/plugin.js" + }, + "./resolve-when": { + "require": "./dist/cjs/resolve-when.js", + "default": "./dist/esm/resolve-when.js" + }, + "./shim": { + "require": "./dist/cjs/shim.js", + "default": "./dist/esm/shim.js" + }, + "./types": { + "require": "./dist/cjs/types.js", + "default": "./dist/esm/types.js" + } + }, + "typesVersions": { + "*": { + "*": [ + "dist/esm/index.d.ts" + ], + "load-script": [ + "dist/esm/load-script.d.ts" + ], + "plugin": [ + "dist/esm/plugin.d.ts" + ], + "resolve-when": [ + "dist/esm/resolve-when.d.ts" + ], + "shim": [ + "dist/esm/shim.d.ts" + ], + "types": [ + "dist/esm/types.d.ts" + ] + } + }, + "dependencies": { + "@segment/actions-core": "^3.70.0" + }, + "devDependencies": { + "@segment/analytics-next": "*" + }, + "peerDependencies": { + "@segment/analytics-next": "*" + } +} diff --git a/packages/browser-destinations/src/runtime/__tests__/plugin.test.ts b/packages/browser-destination-runtime/src/__tests__/plugin.test.ts similarity index 95% rename from packages/browser-destinations/src/runtime/__tests__/plugin.test.ts rename to packages/browser-destination-runtime/src/__tests__/plugin.test.ts index d153fc3473..8679002402 100644 --- a/packages/browser-destinations/src/runtime/__tests__/plugin.test.ts +++ b/packages/browser-destination-runtime/src/__tests__/plugin.test.ts @@ -1,4 +1,4 @@ -import { BrowserDestinationDefinition } from 'src/lib/browser-destinations' +import { BrowserDestinationDefinition } from '../types' import { generatePlugins } from '../plugin' describe('generatePlugins', () => { diff --git a/packages/browser-destinations/src/runtime/load-script.ts b/packages/browser-destination-runtime/src/load-script.ts similarity index 100% rename from packages/browser-destinations/src/runtime/load-script.ts rename to packages/browser-destination-runtime/src/load-script.ts diff --git a/packages/browser-destinations/src/runtime/plugin.ts b/packages/browser-destination-runtime/src/plugin.ts similarity index 98% rename from packages/browser-destinations/src/runtime/plugin.ts rename to packages/browser-destination-runtime/src/plugin.ts index 5776c3e456..35c7ad85ed 100644 --- a/packages/browser-destinations/src/runtime/plugin.ts +++ b/packages/browser-destination-runtime/src/plugin.ts @@ -2,7 +2,7 @@ import type { Analytics, Context, Plugin } from '@segment/analytics-next' import type { JSONObject } from '@segment/actions-core' import { transform } from '@segment/actions-core/mapping-kit' import { parseFql, validate } from '@segment/destination-subscriptions' -import { ActionInput, BrowserDestinationDefinition, Subscription } from '../lib/browser-destinations' +import { ActionInput, BrowserDestinationDefinition, Subscription } from './types' import { loadScript } from './load-script' import { resolveWhen } from './resolve-when' diff --git a/packages/browser-destinations/src/runtime/resolve-when.ts b/packages/browser-destination-runtime/src/resolve-when.ts similarity index 100% rename from packages/browser-destinations/src/runtime/resolve-when.ts rename to packages/browser-destination-runtime/src/resolve-when.ts diff --git a/packages/browser-destination-runtime/src/shim.ts b/packages/browser-destination-runtime/src/shim.ts new file mode 100644 index 0000000000..e98004f47b --- /dev/null +++ b/packages/browser-destination-runtime/src/shim.ts @@ -0,0 +1,16 @@ +import type { BrowserDestinationDefinition, PluginFactory, Subscription } from './types' + +export function browserDestination(definition: BrowserDestinationDefinition): PluginFactory { + const factory = (async (settings: S & { subscriptions?: Subscription[] }) => { + const plugin = await import( + /* webpackChunkName: "actions-plugin" */ + /* webpackMode: "lazy-once" */ + './plugin' + ) + return plugin.generatePlugins(definition, settings, settings.subscriptions || []) + }) as unknown as PluginFactory + + factory.pluginName = definition.name + + return factory +} diff --git a/packages/browser-destinations/src/lib/browser-destinations.ts b/packages/browser-destination-runtime/src/types.ts similarity index 92% rename from packages/browser-destinations/src/lib/browser-destinations.ts rename to packages/browser-destination-runtime/src/types.ts index 805fd150b0..1b633fbb09 100644 --- a/packages/browser-destinations/src/lib/browser-destinations.ts +++ b/packages/browser-destination-runtime/src/types.ts @@ -4,7 +4,8 @@ import type { BaseActionDefinition, ExecuteInput, JSONLikeObject, - GlobalSetting + GlobalSetting, + JSONValue } from '@segment/actions-core' export type ActionInput = ExecuteInput & { @@ -61,3 +62,8 @@ export interface Subscription { subscribe: string mapping: JSONLikeObject } + +export interface PluginFactory { + (settings: JSONValue): Plugin | Plugin[] | Promise + pluginName: string +} diff --git a/packages/browser-destination-runtime/tsconfig.json b/packages/browser-destination-runtime/tsconfig.json new file mode 100644 index 0000000000..b311e107d5 --- /dev/null +++ b/packages/browser-destination-runtime/tsconfig.json @@ -0,0 +1,9 @@ +{ + "extends": "../../tsconfig.json", + "compilerOptions": { + "module": "esnext", + "removeComments": false, + "baseUrl": "." + }, + "exclude": ["dist"] +} \ No newline at end of file diff --git a/packages/browser-destinations-integration-tests/src/tests/browser-destinations.test.ts b/packages/browser-destinations-integration-tests/src/tests/browser-destinations.test.ts index 4bb131c5ff..910e93d9bc 100644 --- a/packages/browser-destinations-integration-tests/src/tests/browser-destinations.test.ts +++ b/packages/browser-destinations-integration-tests/src/tests/browser-destinations.test.ts @@ -2,10 +2,10 @@ import page from '../pageobjects/page' import { expect } from 'expect' import { listDestinations } from '../server/utils' -// '688' is actions-core, we don't want to test it as a destination here +// actions-plugins is just a shared chunk, we don't want to test it as a destination here const allDestinations = listDestinations() .map((el) => el.dirPath) - .filter((el) => el !== '688') + .filter((el) => el !== 'actions-plugin') describe('Bundles are capable of being parsed and loaded without errors', () => { for (const destination of allDestinations) { diff --git a/packages/browser-destinations/destinations/adobe-target/package.json b/packages/browser-destinations/destinations/adobe-target/package.json new file mode 100644 index 0000000000..0655b56cb3 --- /dev/null +++ b/packages/browser-destinations/destinations/adobe-target/package.json @@ -0,0 +1,20 @@ +{ + "name": "@segment/analytics-browser-actions-adobe-target", + "version": "0.0.0", + "license": "MIT", + "main": "./dist/cjs", + "module": "./dist/esm", + "scripts": { + "build": "yarn build:esm && yarn build:cjs", + "build-es": "tsc", + "build:cjs": "tsc --module commonjs --outDir ./dist/cjs", + "build:esm": "tsc --outDir ./dist/esm" + }, + "typings": "./dist/esm", + "dependencies": { + "@segment/browser-destination-runtime": "^0.0.0" + }, + "peerDependencies": { + "@segment/analytics-next": "*" + } +} diff --git a/packages/browser-destinations/src/destinations/adobe-target/__tests__/index.test.ts b/packages/browser-destinations/destinations/adobe-target/src/__tests__/index.test.ts similarity index 94% rename from packages/browser-destinations/src/destinations/adobe-target/__tests__/index.test.ts rename to packages/browser-destinations/destinations/adobe-target/src/__tests__/index.test.ts index 46fc7d6691..182cf59624 100644 --- a/packages/browser-destinations/src/destinations/adobe-target/__tests__/index.test.ts +++ b/packages/browser-destinations/destinations/adobe-target/src/__tests__/index.test.ts @@ -1,6 +1,6 @@ import { Analytics, Context } from '@segment/analytics-next' import adobeTarget, { destination } from '../index' -import { Subscription } from '../../../lib/browser-destinations' +import { Subscription } from '@segment/browser-destination-runtime/types' describe('Adobe Target Web', () => { test('can load ATJS', async () => { diff --git a/packages/browser-destinations/src/destinations/adobe-target/__tests__/utils.test.ts b/packages/browser-destinations/destinations/adobe-target/src/__tests__/utils.test.ts similarity index 100% rename from packages/browser-destinations/src/destinations/adobe-target/__tests__/utils.test.ts rename to packages/browser-destinations/destinations/adobe-target/src/__tests__/utils.test.ts diff --git a/packages/browser-destinations/src/destinations/adobe-target/generated-types.ts b/packages/browser-destinations/destinations/adobe-target/src/generated-types.ts similarity index 100% rename from packages/browser-destinations/src/destinations/adobe-target/generated-types.ts rename to packages/browser-destinations/destinations/adobe-target/src/generated-types.ts diff --git a/packages/browser-destinations/src/destinations/adobe-target/index.ts b/packages/browser-destinations/destinations/adobe-target/src/index.ts similarity index 93% rename from packages/browser-destinations/src/destinations/adobe-target/index.ts rename to packages/browser-destinations/destinations/adobe-target/src/index.ts index 1f3d1389f9..711ac38be3 100644 --- a/packages/browser-destinations/src/destinations/adobe-target/index.ts +++ b/packages/browser-destinations/destinations/adobe-target/src/index.ts @@ -1,6 +1,6 @@ import type { Settings } from './generated-types' -import type { BrowserDestinationDefinition } from '../../lib/browser-destinations' -import { browserDestination } from '../../runtime/shim' +import type { BrowserDestinationDefinition } from '@segment/browser-destination-runtime/types' +import { browserDestination } from '@segment/browser-destination-runtime/shim' import { Adobe } from './types' import { initScript } from './init-script' diff --git a/packages/browser-destinations/src/destinations/adobe-target/init-script.ts b/packages/browser-destinations/destinations/adobe-target/src/init-script.ts similarity index 100% rename from packages/browser-destinations/src/destinations/adobe-target/init-script.ts rename to packages/browser-destinations/destinations/adobe-target/src/init-script.ts diff --git a/packages/browser-destinations/src/destinations/adobe-target/trackEvent/__tests__/index.test.ts b/packages/browser-destinations/destinations/adobe-target/src/trackEvent/__tests__/index.test.ts similarity index 96% rename from packages/browser-destinations/src/destinations/adobe-target/trackEvent/__tests__/index.test.ts rename to packages/browser-destinations/destinations/adobe-target/src/trackEvent/__tests__/index.test.ts index 4ed9d54896..d70fcbe7bf 100644 --- a/packages/browser-destinations/src/destinations/adobe-target/trackEvent/__tests__/index.test.ts +++ b/packages/browser-destinations/destinations/adobe-target/src/trackEvent/__tests__/index.test.ts @@ -1,6 +1,6 @@ import { Analytics, Context } from '@segment/analytics-next' import adobeTarget, { destination } from '../../index' -import { Subscription } from '../../../../lib/browser-destinations' +import { Subscription } from '@segment/browser-destination-runtime/types' describe('Adobe Target Web', () => { describe('#track', () => { diff --git a/packages/browser-destinations/src/destinations/adobe-target/trackEvent/generated-types.ts b/packages/browser-destinations/destinations/adobe-target/src/trackEvent/generated-types.ts similarity index 100% rename from packages/browser-destinations/src/destinations/adobe-target/trackEvent/generated-types.ts rename to packages/browser-destinations/destinations/adobe-target/src/trackEvent/generated-types.ts diff --git a/packages/browser-destinations/src/destinations/adobe-target/trackEvent/index.ts b/packages/browser-destinations/destinations/adobe-target/src/trackEvent/index.ts similarity index 96% rename from packages/browser-destinations/src/destinations/adobe-target/trackEvent/index.ts rename to packages/browser-destinations/destinations/adobe-target/src/trackEvent/index.ts index 36e48d7e13..933b24d601 100644 --- a/packages/browser-destinations/src/destinations/adobe-target/trackEvent/index.ts +++ b/packages/browser-destinations/destinations/adobe-target/src/trackEvent/index.ts @@ -1,4 +1,4 @@ -import type { BrowserActionDefinition } from '../../../lib/browser-destinations' +import type { BrowserActionDefinition } from '@segment/browser-destination-runtime/types' import type { Settings } from '../generated-types' import type { Payload } from './generated-types' import { Adobe } from '../types' diff --git a/packages/browser-destinations/src/destinations/adobe-target/triggerView/__tests__/index.test.ts b/packages/browser-destinations/destinations/adobe-target/src/triggerView/__tests__/index.test.ts similarity index 96% rename from packages/browser-destinations/src/destinations/adobe-target/triggerView/__tests__/index.test.ts rename to packages/browser-destinations/destinations/adobe-target/src/triggerView/__tests__/index.test.ts index 5a78bb84d1..8f402c57a1 100644 --- a/packages/browser-destinations/src/destinations/adobe-target/triggerView/__tests__/index.test.ts +++ b/packages/browser-destinations/destinations/adobe-target/src/triggerView/__tests__/index.test.ts @@ -1,6 +1,6 @@ import { Analytics, Context } from '@segment/analytics-next' import adobeTarget, { destination } from '../../index' -import { Subscription } from '../../../../lib/browser-destinations' +import { Subscription } from '@segment/browser-destination-runtime/types' describe('Adobe Target Web', () => { describe('#page', () => { diff --git a/packages/browser-destinations/src/destinations/adobe-target/triggerView/generated-types.ts b/packages/browser-destinations/destinations/adobe-target/src/triggerView/generated-types.ts similarity index 100% rename from packages/browser-destinations/src/destinations/adobe-target/triggerView/generated-types.ts rename to packages/browser-destinations/destinations/adobe-target/src/triggerView/generated-types.ts diff --git a/packages/browser-destinations/src/destinations/adobe-target/triggerView/index.ts b/packages/browser-destinations/destinations/adobe-target/src/triggerView/index.ts similarity index 96% rename from packages/browser-destinations/src/destinations/adobe-target/triggerView/index.ts rename to packages/browser-destinations/destinations/adobe-target/src/triggerView/index.ts index b7a0736e89..32822c88e4 100644 --- a/packages/browser-destinations/src/destinations/adobe-target/triggerView/index.ts +++ b/packages/browser-destinations/destinations/adobe-target/src/triggerView/index.ts @@ -1,4 +1,4 @@ -import type { BrowserActionDefinition } from '../../../lib/browser-destinations' +import type { BrowserActionDefinition } from '@segment/browser-destination-runtime/types' import type { Settings } from '../generated-types' import type { Payload } from './generated-types' import { Adobe } from '../types' diff --git a/packages/browser-destinations/src/destinations/adobe-target/types.ts b/packages/browser-destinations/destinations/adobe-target/src/types.ts similarity index 100% rename from packages/browser-destinations/src/destinations/adobe-target/types.ts rename to packages/browser-destinations/destinations/adobe-target/src/types.ts diff --git a/packages/browser-destinations/src/destinations/adobe-target/upsertProfile/__tests__/index.test.ts b/packages/browser-destinations/destinations/adobe-target/src/upsertProfile/__tests__/index.test.ts similarity index 97% rename from packages/browser-destinations/src/destinations/adobe-target/upsertProfile/__tests__/index.test.ts rename to packages/browser-destinations/destinations/adobe-target/src/upsertProfile/__tests__/index.test.ts index f01562d546..cae03f0742 100644 --- a/packages/browser-destinations/src/destinations/adobe-target/upsertProfile/__tests__/index.test.ts +++ b/packages/browser-destinations/destinations/adobe-target/src/upsertProfile/__tests__/index.test.ts @@ -1,6 +1,6 @@ import { Analytics, Context } from '@segment/analytics-next' import adobeTarget, { destination } from '../../index' -import { Subscription } from '../../../../lib/browser-destinations' +import { Subscription } from '@segment/browser-destination-runtime/types' describe('Adobe Target Web', () => { describe('#identify', () => { diff --git a/packages/browser-destinations/src/destinations/adobe-target/upsertProfile/generated-types.ts b/packages/browser-destinations/destinations/adobe-target/src/upsertProfile/generated-types.ts similarity index 100% rename from packages/browser-destinations/src/destinations/adobe-target/upsertProfile/generated-types.ts rename to packages/browser-destinations/destinations/adobe-target/src/upsertProfile/generated-types.ts diff --git a/packages/browser-destinations/src/destinations/adobe-target/upsertProfile/index.ts b/packages/browser-destinations/destinations/adobe-target/src/upsertProfile/index.ts similarity index 95% rename from packages/browser-destinations/src/destinations/adobe-target/upsertProfile/index.ts rename to packages/browser-destinations/destinations/adobe-target/src/upsertProfile/index.ts index b51c6fdce4..7a89e792a6 100644 --- a/packages/browser-destinations/src/destinations/adobe-target/upsertProfile/index.ts +++ b/packages/browser-destinations/destinations/adobe-target/src/upsertProfile/index.ts @@ -1,4 +1,4 @@ -import type { BrowserActionDefinition } from '../../../lib/browser-destinations' +import type { BrowserActionDefinition } from '@segment/browser-destination-runtime/types' import type { Settings } from '../generated-types' import { Adobe } from '../types' import type { Payload } from './generated-types' diff --git a/packages/browser-destinations/src/destinations/adobe-target/utils.ts b/packages/browser-destinations/destinations/adobe-target/src/utils.ts similarity index 100% rename from packages/browser-destinations/src/destinations/adobe-target/utils.ts rename to packages/browser-destinations/destinations/adobe-target/src/utils.ts diff --git a/packages/browser-destinations/destinations/adobe-target/tsconfig.json b/packages/browser-destinations/destinations/adobe-target/tsconfig.json new file mode 100644 index 0000000000..71c49219d9 --- /dev/null +++ b/packages/browser-destinations/destinations/adobe-target/tsconfig.json @@ -0,0 +1,9 @@ +{ + "extends": "../../tsconfig.build.json", + "compilerOptions": { + "rootDir": "./src", + "baseUrl": "." + }, + "include": ["src"], + "exclude": ["dist", "**/__tests__"] +} \ No newline at end of file diff --git a/packages/browser-destinations/destinations/amplitude-plugins/package.json b/packages/browser-destinations/destinations/amplitude-plugins/package.json new file mode 100644 index 0000000000..946169573c --- /dev/null +++ b/packages/browser-destinations/destinations/amplitude-plugins/package.json @@ -0,0 +1,19 @@ +{ + "name": "@segment/analytics-browser-actions-amplitude-plugins", + "version": "0.0.0", + "license": "MIT", + "main": "./dist/cjs", + "module": "./dist/esm", + "scripts": { + "build": "yarn build:esm && yarn build:cjs", + "build:cjs": "tsc --module commonjs --outDir ./dist/cjs", + "build:esm": "tsc --outDir ./dist/esm" + }, + "typings": "./dist/esm", + "dependencies": { + "@segment/browser-destination-runtime": "^0.0.0" + }, + "peerDependencies": { + "@segment/analytics-next": "*" + } +} diff --git a/packages/browser-destinations/src/destinations/amplitude-plugins/generated-types.ts b/packages/browser-destinations/destinations/amplitude-plugins/src/generated-types.ts similarity index 100% rename from packages/browser-destinations/src/destinations/amplitude-plugins/generated-types.ts rename to packages/browser-destinations/destinations/amplitude-plugins/src/generated-types.ts diff --git a/packages/browser-destinations/src/destinations/amplitude-plugins/index.ts b/packages/browser-destinations/destinations/amplitude-plugins/src/index.ts similarity index 65% rename from packages/browser-destinations/src/destinations/amplitude-plugins/index.ts rename to packages/browser-destinations/destinations/amplitude-plugins/src/index.ts index d060ea4ae9..9227d87747 100644 --- a/packages/browser-destinations/src/destinations/amplitude-plugins/index.ts +++ b/packages/browser-destinations/destinations/amplitude-plugins/src/index.ts @@ -1,6 +1,6 @@ import type { Settings } from './generated-types' -import type { BrowserDestinationDefinition } from '../../lib/browser-destinations' -import { browserDestination } from '../../runtime/shim' +import type { BrowserDestinationDefinition } from '@segment/browser-destination-runtime/types' +import { browserDestination } from '@segment/browser-destination-runtime/shim' import sessionId from './sessionId' export const destination: BrowserDestinationDefinition = { diff --git a/packages/browser-destinations/src/destinations/amplitude-plugins/sessionId/__tests__/sessionId.test.ts b/packages/browser-destinations/destinations/amplitude-plugins/src/sessionId/__tests__/sessionId.test.ts similarity index 99% rename from packages/browser-destinations/src/destinations/amplitude-plugins/sessionId/__tests__/sessionId.test.ts rename to packages/browser-destinations/destinations/amplitude-plugins/src/sessionId/__tests__/sessionId.test.ts index ef9f0f1ca5..dfd274d3ec 100644 --- a/packages/browser-destinations/src/destinations/amplitude-plugins/sessionId/__tests__/sessionId.test.ts +++ b/packages/browser-destinations/destinations/amplitude-plugins/src/sessionId/__tests__/sessionId.test.ts @@ -1,6 +1,6 @@ import { Analytics, Context, Plugin } from '@segment/analytics-next' import browserPluginsDestination from '../..' -import { Subscription } from '../../../../lib/browser-destinations' +import { Subscription } from '@segment/browser-destination-runtime/types' import jar from 'js-cookie' expect.extend({ diff --git a/packages/browser-destinations/src/destinations/amplitude-plugins/sessionId/generated-types.ts b/packages/browser-destinations/destinations/amplitude-plugins/src/sessionId/generated-types.ts similarity index 100% rename from packages/browser-destinations/src/destinations/amplitude-plugins/sessionId/generated-types.ts rename to packages/browser-destinations/destinations/amplitude-plugins/src/sessionId/generated-types.ts diff --git a/packages/browser-destinations/src/destinations/amplitude-plugins/sessionId/index.ts b/packages/browser-destinations/destinations/amplitude-plugins/src/sessionId/index.ts similarity index 96% rename from packages/browser-destinations/src/destinations/amplitude-plugins/sessionId/index.ts rename to packages/browser-destinations/destinations/amplitude-plugins/src/sessionId/index.ts index 76bdc38280..24aa9d8927 100644 --- a/packages/browser-destinations/src/destinations/amplitude-plugins/sessionId/index.ts +++ b/packages/browser-destinations/destinations/amplitude-plugins/src/sessionId/index.ts @@ -1,6 +1,6 @@ /* eslint-disable @typescript-eslint/no-unsafe-call */ import { UniversalStorage } from '@segment/analytics-next' -import type { BrowserActionDefinition } from '../../../lib/browser-destinations' +import type { BrowserActionDefinition } from '@segment/browser-destination-runtime/types' import type { Settings } from '../generated-types' import type { Payload } from './generated-types' diff --git a/packages/browser-destinations/destinations/amplitude-plugins/tsconfig.json b/packages/browser-destinations/destinations/amplitude-plugins/tsconfig.json new file mode 100644 index 0000000000..71c49219d9 --- /dev/null +++ b/packages/browser-destinations/destinations/amplitude-plugins/tsconfig.json @@ -0,0 +1,9 @@ +{ + "extends": "../../tsconfig.build.json", + "compilerOptions": { + "rootDir": "./src", + "baseUrl": "." + }, + "include": ["src"], + "exclude": ["dist", "**/__tests__"] +} \ No newline at end of file diff --git a/packages/browser-destinations/destinations/braze-cloud-plugins/package.json b/packages/browser-destinations/destinations/braze-cloud-plugins/package.json new file mode 100644 index 0000000000..eed22de00e --- /dev/null +++ b/packages/browser-destinations/destinations/braze-cloud-plugins/package.json @@ -0,0 +1,20 @@ +{ + "name": "@segment/analytics-browser-actions-braze-cloud-plugins", + "version": "0.0.0", + "license": "MIT", + "main": "./dist/cjs", + "module": "./dist/esm", + "scripts": { + "build": "yarn build:esm && yarn build:cjs", + "build:cjs": "tsc --module commonjs --outDir ./dist/cjs", + "build:esm": "tsc --outDir ./dist/esm" + }, + "typings": "./dist/esm", + "dependencies": { + "@segment/analytics-browser-actions-braze": "^0.0.0", + "@segment/browser-destination-runtime": "^0.0.0" + }, + "peerDependencies": { + "@segment/analytics-next": "*" + } +} diff --git a/packages/browser-destinations/src/destinations/braze-cloud-plugins/debouncePlugin.types.ts b/packages/browser-destinations/destinations/braze-cloud-plugins/src/debouncePlugin.types.ts similarity index 100% rename from packages/browser-destinations/src/destinations/braze-cloud-plugins/debouncePlugin.types.ts rename to packages/browser-destinations/destinations/braze-cloud-plugins/src/debouncePlugin.types.ts diff --git a/packages/browser-destinations/src/destinations/braze-cloud-plugins/generated-types.ts b/packages/browser-destinations/destinations/braze-cloud-plugins/src/generated-types.ts similarity index 100% rename from packages/browser-destinations/src/destinations/braze-cloud-plugins/generated-types.ts rename to packages/browser-destinations/destinations/braze-cloud-plugins/src/generated-types.ts diff --git a/packages/browser-destinations/src/destinations/braze-cloud-plugins/index.ts b/packages/browser-destinations/destinations/braze-cloud-plugins/src/index.ts similarity index 66% rename from packages/browser-destinations/src/destinations/braze-cloud-plugins/index.ts rename to packages/browser-destinations/destinations/braze-cloud-plugins/src/index.ts index 9c6b49bcae..cf21c7db4e 100644 --- a/packages/browser-destinations/src/destinations/braze-cloud-plugins/index.ts +++ b/packages/browser-destinations/destinations/braze-cloud-plugins/src/index.ts @@ -1,7 +1,7 @@ import type { Settings } from './generated-types' -import type { BrowserDestinationDefinition } from '../../lib/browser-destinations' -import { browserDestination } from '../../runtime/shim' -import debouncePlugin from '../braze/debounce' +import type { BrowserDestinationDefinition } from '@segment/browser-destination-runtime/types' +import { browserDestination } from '@segment/browser-destination-runtime/shim' +import debouncePlugin from '@segment/analytics-browser-actions-braze/debounce' export const destination: BrowserDestinationDefinition = { name: 'Braze Cloud Mode (Actions)', diff --git a/packages/browser-destinations/destinations/braze-cloud-plugins/tsconfig.json b/packages/browser-destinations/destinations/braze-cloud-plugins/tsconfig.json new file mode 100644 index 0000000000..71c49219d9 --- /dev/null +++ b/packages/browser-destinations/destinations/braze-cloud-plugins/tsconfig.json @@ -0,0 +1,9 @@ +{ + "extends": "../../tsconfig.build.json", + "compilerOptions": { + "rootDir": "./src", + "baseUrl": "." + }, + "include": ["src"], + "exclude": ["dist", "**/__tests__"] +} \ No newline at end of file diff --git a/packages/browser-destinations/destinations/braze/package.json b/packages/browser-destinations/destinations/braze/package.json new file mode 100644 index 0000000000..4faea129fd --- /dev/null +++ b/packages/browser-destinations/destinations/braze/package.json @@ -0,0 +1,40 @@ +{ + "name": "@segment/analytics-browser-actions-braze", + "version": "0.0.0", + "license": "MIT", + "exports": { + ".": { + "require": "./dist/cjs/index.js", + "import": "./dist/esm/index.js" + }, + "./debounce": { + "require": "./dist/cjs/debounce/index.js", + "import": "./dist/esm/debounce/index.js" + } + }, + "scripts": { + "build": "yarn build:esm && yarn build:cjs", + "build:cjs": "tsc --module commonjs --outDir ./dist/cjs", + "build:esm": "tsc --outDir ./dist/esm" + }, + "typesVersions": { + "*": { + "*": [ + "dist/esm/index.d.ts" + ], + "debounce": [ + "dist/esm/debounce/index.d.ts" + ] + } + }, + "typings": "./dist/esm", + "dependencies": { + "@braze/web-sdk": "npm:@braze/web-sdk@^4.1.0", + "@braze/web-sdk-v3": "npm:@braze/web-sdk@^3.5.1", + "@segment/actions-core": "^3.70.0", + "@segment/browser-destination-runtime": "^0.0.0" + }, + "peerDependencies": { + "@segment/analytics-next": "*" + } +} diff --git a/packages/browser-destinations/src/destinations/braze/__tests__/__snapshots__/initialization.test.ts.snap b/packages/browser-destinations/destinations/braze/src/__tests__/__snapshots__/initialization.test.ts.snap similarity index 100% rename from packages/browser-destinations/src/destinations/braze/__tests__/__snapshots__/initialization.test.ts.snap rename to packages/browser-destinations/destinations/braze/src/__tests__/__snapshots__/initialization.test.ts.snap diff --git a/packages/browser-destinations/src/destinations/braze/__tests__/__snapshots__/integration.test.ts.snap b/packages/browser-destinations/destinations/braze/src/__tests__/__snapshots__/integration.test.ts.snap similarity index 100% rename from packages/browser-destinations/src/destinations/braze/__tests__/__snapshots__/integration.test.ts.snap rename to packages/browser-destinations/destinations/braze/src/__tests__/__snapshots__/integration.test.ts.snap diff --git a/packages/browser-destinations/src/destinations/braze/__tests__/__snapshots__/trackPurchase.test.ts.snap b/packages/browser-destinations/destinations/braze/src/__tests__/__snapshots__/trackPurchase.test.ts.snap similarity index 100% rename from packages/browser-destinations/src/destinations/braze/__tests__/__snapshots__/trackPurchase.test.ts.snap rename to packages/browser-destinations/destinations/braze/src/__tests__/__snapshots__/trackPurchase.test.ts.snap diff --git a/packages/browser-destinations/src/destinations/braze/__tests__/debounce.test.ts b/packages/browser-destinations/destinations/braze/src/__tests__/debounce.test.ts similarity index 100% rename from packages/browser-destinations/src/destinations/braze/__tests__/debounce.test.ts rename to packages/browser-destinations/destinations/braze/src/__tests__/debounce.test.ts diff --git a/packages/browser-destinations/src/destinations/braze/__tests__/initialization.test.ts b/packages/browser-destinations/destinations/braze/src/__tests__/initialization.test.ts similarity index 98% rename from packages/browser-destinations/src/destinations/braze/__tests__/initialization.test.ts rename to packages/browser-destinations/destinations/braze/src/__tests__/initialization.test.ts index 6170d7a8e6..f2cdfa1c4e 100644 --- a/packages/browser-destinations/src/destinations/braze/__tests__/initialization.test.ts +++ b/packages/browser-destinations/destinations/braze/src/__tests__/initialization.test.ts @@ -1,5 +1,5 @@ import { Analytics, Context } from '@segment/analytics-next' -import { Subscription } from 'src/lib/browser-destinations' +import { Subscription } from '@segment/browser-destination-runtime' import brazeDestination, { destination } from '../index' describe('initialization', () => { diff --git a/packages/browser-destinations/src/destinations/braze/__tests__/integration.test.ts b/packages/browser-destinations/destinations/braze/src/__tests__/integration.test.ts similarity index 97% rename from packages/browser-destinations/src/destinations/braze/__tests__/integration.test.ts rename to packages/browser-destinations/destinations/braze/src/__tests__/integration.test.ts index 588cc23af1..bc8225eff9 100644 --- a/packages/browser-destinations/src/destinations/braze/__tests__/integration.test.ts +++ b/packages/browser-destinations/destinations/braze/src/__tests__/integration.test.ts @@ -1,6 +1,6 @@ import { Analytics, Context } from '@segment/analytics-next' import braze, { destination } from '..' -import type { Subscription } from '../../../lib/browser-destinations' +import type { Subscription } from '@segment/browser-destination-runtime/types' const example: Subscription[] = [ { diff --git a/packages/browser-destinations/src/destinations/braze/__tests__/trackEvent.test.ts b/packages/browser-destinations/destinations/braze/src/__tests__/trackEvent.test.ts similarity index 100% rename from packages/browser-destinations/src/destinations/braze/__tests__/trackEvent.test.ts rename to packages/browser-destinations/destinations/braze/src/__tests__/trackEvent.test.ts diff --git a/packages/browser-destinations/src/destinations/braze/__tests__/trackPurchase.test.ts b/packages/browser-destinations/destinations/braze/src/__tests__/trackPurchase.test.ts similarity index 100% rename from packages/browser-destinations/src/destinations/braze/__tests__/trackPurchase.test.ts rename to packages/browser-destinations/destinations/braze/src/__tests__/trackPurchase.test.ts diff --git a/packages/browser-destinations/src/destinations/braze/__tests__/updateUserProfile.test.ts b/packages/browser-destinations/destinations/braze/src/__tests__/updateUserProfile.test.ts similarity index 100% rename from packages/browser-destinations/src/destinations/braze/__tests__/updateUserProfile.test.ts rename to packages/browser-destinations/destinations/braze/src/__tests__/updateUserProfile.test.ts diff --git a/packages/browser-destinations/src/destinations/braze/braze-types.ts b/packages/browser-destinations/destinations/braze/src/braze-types.ts similarity index 100% rename from packages/browser-destinations/src/destinations/braze/braze-types.ts rename to packages/browser-destinations/destinations/braze/src/braze-types.ts diff --git a/packages/browser-destinations/src/destinations/braze/debounce/generated-types.ts b/packages/browser-destinations/destinations/braze/src/debounce/generated-types.ts similarity index 100% rename from packages/browser-destinations/src/destinations/braze/debounce/generated-types.ts rename to packages/browser-destinations/destinations/braze/src/debounce/generated-types.ts diff --git a/packages/browser-destinations/src/destinations/braze/debounce/index.ts b/packages/browser-destinations/destinations/braze/src/debounce/index.ts similarity index 95% rename from packages/browser-destinations/src/destinations/braze/debounce/index.ts rename to packages/browser-destinations/destinations/braze/src/debounce/index.ts index b2fc12a6c7..4cbebb00b9 100644 --- a/packages/browser-destinations/src/destinations/braze/debounce/index.ts +++ b/packages/browser-destinations/destinations/braze/src/debounce/index.ts @@ -1,6 +1,6 @@ import { BrazeDestinationClient } from '../braze-types' import type { ID, SegmentEvent, User } from '@segment/analytics-next' -import type { BrowserActionDefinition } from '../../../lib/browser-destinations' +import type { BrowserActionDefinition } from '@segment/browser-destination-runtime/types' import type { Settings } from '../generated-types' import type { Payload } from './generated-types' diff --git a/packages/browser-destinations/src/destinations/braze/generated-types.ts b/packages/browser-destinations/destinations/braze/src/generated-types.ts similarity index 100% rename from packages/browser-destinations/src/destinations/braze/generated-types.ts rename to packages/browser-destinations/destinations/braze/src/generated-types.ts diff --git a/packages/browser-destinations/src/destinations/braze/index.ts b/packages/browser-destinations/destinations/braze/src/index.ts similarity index 98% rename from packages/browser-destinations/src/destinations/braze/index.ts rename to packages/browser-destinations/destinations/braze/src/index.ts index fffe7beddc..4d42d8ef04 100644 --- a/packages/browser-destinations/src/destinations/braze/index.ts +++ b/packages/browser-destinations/destinations/braze/src/index.ts @@ -1,6 +1,6 @@ import type { Settings } from './generated-types' -import type { BrowserDestinationDefinition } from '../../lib/browser-destinations' -import { browserDestination } from '../../runtime/shim' +import type { BrowserDestinationDefinition } from '@segment/browser-destination-runtime/types' +import { browserDestination } from '@segment/browser-destination-runtime/shim' import type braze from '@braze/web-sdk' import type appboy from '@braze/web-sdk-v3' import trackEvent from './trackEvent' diff --git a/packages/browser-destinations/src/destinations/braze/trackEvent/generated-types.ts b/packages/browser-destinations/destinations/braze/src/trackEvent/generated-types.ts similarity index 100% rename from packages/browser-destinations/src/destinations/braze/trackEvent/generated-types.ts rename to packages/browser-destinations/destinations/braze/src/trackEvent/generated-types.ts diff --git a/packages/browser-destinations/src/destinations/braze/trackEvent/index.ts b/packages/browser-destinations/destinations/braze/src/trackEvent/index.ts similarity index 92% rename from packages/browser-destinations/src/destinations/braze/trackEvent/index.ts rename to packages/browser-destinations/destinations/braze/src/trackEvent/index.ts index 2dddf9eedd..03c3111498 100644 --- a/packages/browser-destinations/src/destinations/braze/trackEvent/index.ts +++ b/packages/browser-destinations/destinations/braze/src/trackEvent/index.ts @@ -1,4 +1,4 @@ -import type { BrowserActionDefinition } from '../../../lib/browser-destinations' +import type { BrowserActionDefinition } from '@segment/browser-destination-runtime/types' import type { Settings } from '../generated-types' import type { Payload } from './generated-types' import { BrazeDestinationClient } from '../braze-types' diff --git a/packages/browser-destinations/src/destinations/braze/trackPurchase/generated-types.ts b/packages/browser-destinations/destinations/braze/src/trackPurchase/generated-types.ts similarity index 100% rename from packages/browser-destinations/src/destinations/braze/trackPurchase/generated-types.ts rename to packages/browser-destinations/destinations/braze/src/trackPurchase/generated-types.ts diff --git a/packages/browser-destinations/src/destinations/braze/trackPurchase/index.ts b/packages/browser-destinations/destinations/braze/src/trackPurchase/index.ts similarity index 97% rename from packages/browser-destinations/src/destinations/braze/trackPurchase/index.ts rename to packages/browser-destinations/destinations/braze/src/trackPurchase/index.ts index 459c162aea..37d911a137 100644 --- a/packages/browser-destinations/src/destinations/braze/trackPurchase/index.ts +++ b/packages/browser-destinations/destinations/braze/src/trackPurchase/index.ts @@ -1,6 +1,6 @@ import { BrazeDestinationClient } from '../braze-types' import { omit } from '@segment/actions-core' -import type { BrowserActionDefinition } from '../../../lib/browser-destinations' +import type { BrowserActionDefinition } from '@segment/browser-destination-runtime/types' import type { Settings } from '../generated-types' import type { Payload } from './generated-types' diff --git a/packages/browser-destinations/src/destinations/braze/updateUserProfile/generated-types.ts b/packages/browser-destinations/destinations/braze/src/updateUserProfile/generated-types.ts similarity index 100% rename from packages/browser-destinations/src/destinations/braze/updateUserProfile/generated-types.ts rename to packages/browser-destinations/destinations/braze/src/updateUserProfile/generated-types.ts diff --git a/packages/browser-destinations/src/destinations/braze/updateUserProfile/index.ts b/packages/browser-destinations/destinations/braze/src/updateUserProfile/index.ts similarity index 98% rename from packages/browser-destinations/src/destinations/braze/updateUserProfile/index.ts rename to packages/browser-destinations/destinations/braze/src/updateUserProfile/index.ts index e056a1400c..f5d85c1ae1 100644 --- a/packages/browser-destinations/src/destinations/braze/updateUserProfile/index.ts +++ b/packages/browser-destinations/destinations/braze/src/updateUserProfile/index.ts @@ -1,8 +1,8 @@ -import type { BrowserActionDefinition } from '../../../lib/browser-destinations' +import type { BrowserActionDefinition } from '@segment/browser-destination-runtime/types' import type { Settings } from '../generated-types' import type { Payload } from './generated-types' import * as braze from '@braze/web-sdk' -import dayjs from '../../../lib/dayjs' +import dayjs from 'dayjs' import { BrazeDestinationClient } from '../braze-types' const action: BrowserActionDefinition = { diff --git a/packages/browser-destinations/destinations/braze/tsconfig.json b/packages/browser-destinations/destinations/braze/tsconfig.json new file mode 100644 index 0000000000..71c49219d9 --- /dev/null +++ b/packages/browser-destinations/destinations/braze/tsconfig.json @@ -0,0 +1,9 @@ +{ + "extends": "../../tsconfig.build.json", + "compilerOptions": { + "rootDir": "./src", + "baseUrl": "." + }, + "include": ["src"], + "exclude": ["dist", "**/__tests__"] +} \ No newline at end of file diff --git a/packages/browser-destinations/destinations/commandbar/package.json b/packages/browser-destinations/destinations/commandbar/package.json new file mode 100644 index 0000000000..0ed5b80a15 --- /dev/null +++ b/packages/browser-destinations/destinations/commandbar/package.json @@ -0,0 +1,20 @@ +{ + "name": "@segment/analytics-browser-actions-commandbar", + "version": "0.0.0", + "license": "MIT", + "main": "./dist/cjs", + "module": "./dist/esm", + "scripts": { + "build": "yarn build:esm && yarn build:cjs", + "build:cjs": "tsc --module commonjs --outDir ./dist/cjs", + "build:esm": "tsc --outDir ./dist/esm" + }, + "typings": "./dist/esm", + "dependencies": { + "@segment/actions-core": "^3.70.0", + "@segment/browser-destination-runtime": "^0.0.0" + }, + "peerDependencies": { + "@segment/analytics-next": "*" + } +} diff --git a/packages/browser-destinations/src/destinations/commandbar/__tests__/index.test.ts b/packages/browser-destinations/destinations/commandbar/src/__tests__/index.test.ts similarity index 93% rename from packages/browser-destinations/src/destinations/commandbar/__tests__/index.test.ts rename to packages/browser-destinations/destinations/commandbar/src/__tests__/index.test.ts index 15985c9fc9..b631e25601 100644 --- a/packages/browser-destinations/src/destinations/commandbar/__tests__/index.test.ts +++ b/packages/browser-destinations/destinations/commandbar/src/__tests__/index.test.ts @@ -1,4 +1,4 @@ -import { Subscription } from '../../../lib/browser-destinations' +import { Subscription } from '@segment/browser-destination-runtime/types' import { Analytics, Context } from '@segment/analytics-next' import commandBarDestination, { destination } from '../index' diff --git a/packages/browser-destinations/src/destinations/commandbar/generated-types.ts b/packages/browser-destinations/destinations/commandbar/src/generated-types.ts similarity index 100% rename from packages/browser-destinations/src/destinations/commandbar/generated-types.ts rename to packages/browser-destinations/destinations/commandbar/src/generated-types.ts diff --git a/packages/browser-destinations/src/destinations/commandbar/identifyUser/__tests__/index.test.ts b/packages/browser-destinations/destinations/commandbar/src/identifyUser/__tests__/index.test.ts similarity index 98% rename from packages/browser-destinations/src/destinations/commandbar/identifyUser/__tests__/index.test.ts rename to packages/browser-destinations/destinations/commandbar/src/identifyUser/__tests__/index.test.ts index 8836060cec..6e351eb1b4 100644 --- a/packages/browser-destinations/src/destinations/commandbar/identifyUser/__tests__/index.test.ts +++ b/packages/browser-destinations/destinations/commandbar/src/identifyUser/__tests__/index.test.ts @@ -1,5 +1,5 @@ import { Analytics, Context } from '@segment/analytics-next' -import { Subscription } from 'src/lib/browser-destinations' +import { Subscription } from '@segment/browser-destination-runtime' import commandBarDestination, { destination } from '../../index' const subscriptions: Subscription[] = [ diff --git a/packages/browser-destinations/src/destinations/commandbar/identifyUser/generated-types.ts b/packages/browser-destinations/destinations/commandbar/src/identifyUser/generated-types.ts similarity index 100% rename from packages/browser-destinations/src/destinations/commandbar/identifyUser/generated-types.ts rename to packages/browser-destinations/destinations/commandbar/src/identifyUser/generated-types.ts diff --git a/packages/browser-destinations/src/destinations/commandbar/identifyUser/index.ts b/packages/browser-destinations/destinations/commandbar/src/identifyUser/index.ts similarity index 95% rename from packages/browser-destinations/src/destinations/commandbar/identifyUser/index.ts rename to packages/browser-destinations/destinations/commandbar/src/identifyUser/index.ts index 61e87aa7d2..3af99bce8c 100644 --- a/packages/browser-destinations/src/destinations/commandbar/identifyUser/index.ts +++ b/packages/browser-destinations/destinations/commandbar/src/identifyUser/index.ts @@ -1,4 +1,4 @@ -import type { BrowserActionDefinition } from '../../../lib/browser-destinations' +import type { BrowserActionDefinition } from '@segment/browser-destination-runtime/types' import type { Settings } from '../generated-types' import { CommandBarClientSDK, FormFactorConfig } from '../types' import type { Payload } from './generated-types' diff --git a/packages/browser-destinations/src/destinations/commandbar/index.ts b/packages/browser-destinations/destinations/commandbar/src/index.ts similarity index 91% rename from packages/browser-destinations/src/destinations/commandbar/index.ts rename to packages/browser-destinations/destinations/commandbar/src/index.ts index 43da498cec..c89b3733ec 100644 --- a/packages/browser-destinations/src/destinations/commandbar/index.ts +++ b/packages/browser-destinations/destinations/commandbar/src/index.ts @@ -1,6 +1,6 @@ import type { Settings } from './generated-types' -import type { BrowserDestinationDefinition } from '../../lib/browser-destinations' -import { browserDestination } from '../../runtime/shim' +import type { BrowserDestinationDefinition } from '@segment/browser-destination-runtime/types' +import { browserDestination } from '@segment/browser-destination-runtime/shim' import { initScript } from './init-script' import { CommandBarClientSDK } from './types' diff --git a/packages/browser-destinations/src/destinations/commandbar/init-script.ts b/packages/browser-destinations/destinations/commandbar/src/init-script.ts similarity index 100% rename from packages/browser-destinations/src/destinations/commandbar/init-script.ts rename to packages/browser-destinations/destinations/commandbar/src/init-script.ts diff --git a/packages/browser-destinations/src/destinations/commandbar/trackEvent/__tests__/index.test.ts b/packages/browser-destinations/destinations/commandbar/src/trackEvent/__tests__/index.test.ts similarity index 95% rename from packages/browser-destinations/src/destinations/commandbar/trackEvent/__tests__/index.test.ts rename to packages/browser-destinations/destinations/commandbar/src/trackEvent/__tests__/index.test.ts index f1ec97f69d..a326498241 100644 --- a/packages/browser-destinations/src/destinations/commandbar/trackEvent/__tests__/index.test.ts +++ b/packages/browser-destinations/destinations/commandbar/src/trackEvent/__tests__/index.test.ts @@ -1,5 +1,5 @@ import { Analytics, Context } from '@segment/analytics-next' -import { Subscription } from 'src/lib/browser-destinations' +import { Subscription } from '@segment/browser-destination-runtime' import commandBarDestination, { destination } from '../../index' const subscriptions: Subscription[] = [ diff --git a/packages/browser-destinations/src/destinations/commandbar/trackEvent/generated-types.ts b/packages/browser-destinations/destinations/commandbar/src/trackEvent/generated-types.ts similarity index 100% rename from packages/browser-destinations/src/destinations/commandbar/trackEvent/generated-types.ts rename to packages/browser-destinations/destinations/commandbar/src/trackEvent/generated-types.ts diff --git a/packages/browser-destinations/src/destinations/commandbar/trackEvent/index.ts b/packages/browser-destinations/destinations/commandbar/src/trackEvent/index.ts similarity index 91% rename from packages/browser-destinations/src/destinations/commandbar/trackEvent/index.ts rename to packages/browser-destinations/destinations/commandbar/src/trackEvent/index.ts index 2153fcbc08..07c5cf00c6 100644 --- a/packages/browser-destinations/src/destinations/commandbar/trackEvent/index.ts +++ b/packages/browser-destinations/destinations/commandbar/src/trackEvent/index.ts @@ -1,4 +1,4 @@ -import type { BrowserActionDefinition } from '../../../lib/browser-destinations' +import type { BrowserActionDefinition } from '@segment/browser-destination-runtime/types' import type { Settings } from '../generated-types' import { CommandBarClientSDK } from '../types' import type { Payload } from './generated-types' diff --git a/packages/browser-destinations/src/destinations/commandbar/types.ts b/packages/browser-destinations/destinations/commandbar/src/types.ts similarity index 100% rename from packages/browser-destinations/src/destinations/commandbar/types.ts rename to packages/browser-destinations/destinations/commandbar/src/types.ts diff --git a/packages/browser-destinations/destinations/commandbar/tsconfig.json b/packages/browser-destinations/destinations/commandbar/tsconfig.json new file mode 100644 index 0000000000..71c49219d9 --- /dev/null +++ b/packages/browser-destinations/destinations/commandbar/tsconfig.json @@ -0,0 +1,9 @@ +{ + "extends": "../../tsconfig.build.json", + "compilerOptions": { + "rootDir": "./src", + "baseUrl": "." + }, + "include": ["src"], + "exclude": ["dist", "**/__tests__"] +} \ No newline at end of file diff --git a/packages/browser-destinations/destinations/friendbuy/package.json b/packages/browser-destinations/destinations/friendbuy/package.json new file mode 100644 index 0000000000..5d64de39e2 --- /dev/null +++ b/packages/browser-destinations/destinations/friendbuy/package.json @@ -0,0 +1,21 @@ +{ + "name": "@segment/analytics-browser-actions-friendbuy", + "version": "0.0.0", + "license": "MIT", + "main": "./dist/cjs", + "module": "./dist/esm", + "scripts": { + "build": "yarn build:esm && yarn build:cjs", + "build:cjs": "tsc --module commonjs --outDir ./dist/cjs", + "build:esm": "tsc --outDir ./dist/esm" + }, + "typings": "./dist/esm", + "dependencies": { + "@segment/actions-shared": "^1.52.0", + "@segment/actions-core": "^3.70.0", + "@segment/browser-destination-runtime": "^0.0.0" + }, + "peerDependencies": { + "@segment/analytics-next": "*" + } +} diff --git a/packages/browser-destinations/src/destinations/friendbuy/__tests__/index.test.ts b/packages/browser-destinations/destinations/friendbuy/src/__tests__/index.test.ts similarity index 100% rename from packages/browser-destinations/src/destinations/friendbuy/__tests__/index.test.ts rename to packages/browser-destinations/destinations/friendbuy/src/__tests__/index.test.ts diff --git a/packages/browser-destinations/src/destinations/friendbuy/generated-types.ts b/packages/browser-destinations/destinations/friendbuy/src/generated-types.ts similarity index 100% rename from packages/browser-destinations/src/destinations/friendbuy/generated-types.ts rename to packages/browser-destinations/destinations/friendbuy/src/generated-types.ts diff --git a/packages/browser-destinations/src/destinations/friendbuy/index.ts b/packages/browser-destinations/destinations/friendbuy/src/index.ts similarity index 94% rename from packages/browser-destinations/src/destinations/friendbuy/index.ts rename to packages/browser-destinations/destinations/friendbuy/src/index.ts index eec46a5311..9dab37fc4d 100644 --- a/packages/browser-destinations/src/destinations/friendbuy/index.ts +++ b/packages/browser-destinations/destinations/friendbuy/src/index.ts @@ -1,6 +1,6 @@ -import type { BrowserDestinationDefinition } from '../../lib/browser-destinations' +import type { BrowserDestinationDefinition } from '@segment/browser-destination-runtime/types' import type { DestinationDefinition } from '@segment/actions-core' -import { browserDestination } from '../../runtime/shim' +import { browserDestination } from '@segment/browser-destination-runtime/shim' import { defaultValues } from '@segment/actions-core' import type { Settings } from './generated-types' diff --git a/packages/browser-destinations/src/destinations/friendbuy/trackCustomEvent/__tests__/index.test.ts b/packages/browser-destinations/destinations/friendbuy/src/trackCustomEvent/__tests__/index.test.ts similarity index 95% rename from packages/browser-destinations/src/destinations/friendbuy/trackCustomEvent/__tests__/index.test.ts rename to packages/browser-destinations/destinations/friendbuy/src/trackCustomEvent/__tests__/index.test.ts index 9689872f2c..203d5148c7 100644 --- a/packages/browser-destinations/src/destinations/friendbuy/trackCustomEvent/__tests__/index.test.ts +++ b/packages/browser-destinations/destinations/friendbuy/src/trackCustomEvent/__tests__/index.test.ts @@ -2,8 +2,8 @@ import { Analytics, Context } from '@segment/analytics-next' import friendbuyDestination from '../../index' import trackCustomEventObject, { browserTrackCustomEventFields } from '../index' -import { loadScript } from '../../../../runtime/load-script' -jest.mock('../../../../runtime/load-script') +import { loadScript } from '@segment/browser-destination-runtime/load-script' +jest.mock('@segment/browser-destination-runtime/load-script') beforeEach(async () => { // Prevent friendbuy.js and campaigns.js from being loaded. ;(loadScript as jest.Mock).mockResolvedValue(true) diff --git a/packages/browser-destinations/src/destinations/friendbuy/trackCustomEvent/generated-types.ts b/packages/browser-destinations/destinations/friendbuy/src/trackCustomEvent/generated-types.ts similarity index 100% rename from packages/browser-destinations/src/destinations/friendbuy/trackCustomEvent/generated-types.ts rename to packages/browser-destinations/destinations/friendbuy/src/trackCustomEvent/generated-types.ts diff --git a/packages/browser-destinations/src/destinations/friendbuy/trackCustomEvent/index.ts b/packages/browser-destinations/destinations/friendbuy/src/trackCustomEvent/index.ts similarity index 95% rename from packages/browser-destinations/src/destinations/friendbuy/trackCustomEvent/index.ts rename to packages/browser-destinations/destinations/friendbuy/src/trackCustomEvent/index.ts index 720780a563..e15008845c 100644 --- a/packages/browser-destinations/src/destinations/friendbuy/trackCustomEvent/index.ts +++ b/packages/browser-destinations/destinations/friendbuy/src/trackCustomEvent/index.ts @@ -1,4 +1,4 @@ -import type { BrowserActionDefinition } from '../../../lib/browser-destinations' +import type { BrowserActionDefinition } from '@segment/browser-destination-runtime/types' import type { FriendbuyAPI } from '../types' import type { Settings } from '../generated-types' diff --git a/packages/browser-destinations/src/destinations/friendbuy/trackCustomer/__tests__/index.test.ts b/packages/browser-destinations/destinations/friendbuy/src/trackCustomer/__tests__/index.test.ts similarity index 97% rename from packages/browser-destinations/src/destinations/friendbuy/trackCustomer/__tests__/index.test.ts rename to packages/browser-destinations/destinations/friendbuy/src/trackCustomer/__tests__/index.test.ts index 77d45e0d3d..869a37040e 100644 --- a/packages/browser-destinations/src/destinations/friendbuy/trackCustomer/__tests__/index.test.ts +++ b/packages/browser-destinations/destinations/friendbuy/src/trackCustomer/__tests__/index.test.ts @@ -3,8 +3,8 @@ import friendbuyDestination from '../../index' import trackCustomerObject, { trackCustomerDefaultSubscription } from '../index' import { trackCustomerFields } from '@segment/actions-shared' -import { loadScript } from '../../../../runtime/load-script' -jest.mock('../../../../runtime/load-script') +import { loadScript } from '@segment/browser-destination-runtime/load-script' +jest.mock('@segment/browser-destination-runtime/load-script') beforeEach(async () => { // Prevent friendbuy.js and campaigns.js from being loaded. ;(loadScript as jest.Mock).mockResolvedValue(true) diff --git a/packages/browser-destinations/src/destinations/friendbuy/trackCustomer/generated-types.ts b/packages/browser-destinations/destinations/friendbuy/src/trackCustomer/generated-types.ts similarity index 100% rename from packages/browser-destinations/src/destinations/friendbuy/trackCustomer/generated-types.ts rename to packages/browser-destinations/destinations/friendbuy/src/trackCustomer/generated-types.ts diff --git a/packages/browser-destinations/src/destinations/friendbuy/trackCustomer/index.ts b/packages/browser-destinations/destinations/friendbuy/src/trackCustomer/index.ts similarity index 95% rename from packages/browser-destinations/src/destinations/friendbuy/trackCustomer/index.ts rename to packages/browser-destinations/destinations/friendbuy/src/trackCustomer/index.ts index 7ad0d99beb..c22eede455 100644 --- a/packages/browser-destinations/src/destinations/friendbuy/trackCustomer/index.ts +++ b/packages/browser-destinations/destinations/friendbuy/src/trackCustomer/index.ts @@ -1,4 +1,4 @@ -import type { BrowserActionDefinition } from '../../../lib/browser-destinations' +import type { BrowserActionDefinition } from '@segment/browser-destination-runtime/types' import type { FriendbuyAPI } from '../types' import type { Settings } from '../generated-types' diff --git a/packages/browser-destinations/src/destinations/friendbuy/trackPage/__tests__/index.test.ts b/packages/browser-destinations/destinations/friendbuy/src/trackPage/__tests__/index.test.ts similarity index 92% rename from packages/browser-destinations/src/destinations/friendbuy/trackPage/__tests__/index.test.ts rename to packages/browser-destinations/destinations/friendbuy/src/trackPage/__tests__/index.test.ts index 5af56a19e8..92a6ed9f46 100644 --- a/packages/browser-destinations/src/destinations/friendbuy/trackPage/__tests__/index.test.ts +++ b/packages/browser-destinations/destinations/friendbuy/src/trackPage/__tests__/index.test.ts @@ -2,8 +2,8 @@ import { Analytics, Context } from '@segment/analytics-next' import friendbuyDestination from '../../index' import trackPageObject, { trackPageDefaultSubscription, trackPageFields } from '../index' -import { loadScript } from '../../../../runtime/load-script' -jest.mock('../../../../runtime/load-script') +import { loadScript } from '@segment/browser-destination-runtime/load-script' +jest.mock('@segment/browser-destination-runtime/load-script') beforeEach(async () => { // Prevent friendbuy.js and campaigns.js from being loaded. ;(loadScript as jest.Mock).mockResolvedValue(true) diff --git a/packages/browser-destinations/src/destinations/friendbuy/trackPage/generated-types.ts b/packages/browser-destinations/destinations/friendbuy/src/trackPage/generated-types.ts similarity index 100% rename from packages/browser-destinations/src/destinations/friendbuy/trackPage/generated-types.ts rename to packages/browser-destinations/destinations/friendbuy/src/trackPage/generated-types.ts diff --git a/packages/browser-destinations/src/destinations/friendbuy/trackPage/index.ts b/packages/browser-destinations/destinations/friendbuy/src/trackPage/index.ts similarity index 95% rename from packages/browser-destinations/src/destinations/friendbuy/trackPage/index.ts rename to packages/browser-destinations/destinations/friendbuy/src/trackPage/index.ts index cf94821dba..3a4367bd3f 100644 --- a/packages/browser-destinations/src/destinations/friendbuy/trackPage/index.ts +++ b/packages/browser-destinations/destinations/friendbuy/src/trackPage/index.ts @@ -1,5 +1,5 @@ import type { InputField } from '@segment/actions-core' -import type { BrowserActionDefinition } from '../../../lib/browser-destinations' +import type { BrowserActionDefinition } from '@segment/browser-destination-runtime/types' import type { FriendbuyAPI } from '../types' import type { Settings } from '../generated-types' diff --git a/packages/browser-destinations/src/destinations/friendbuy/trackPurchase/__tests__/index.test.ts b/packages/browser-destinations/destinations/friendbuy/src/trackPurchase/__tests__/index.test.ts similarity index 97% rename from packages/browser-destinations/src/destinations/friendbuy/trackPurchase/__tests__/index.test.ts rename to packages/browser-destinations/destinations/friendbuy/src/trackPurchase/__tests__/index.test.ts index e42e9028ff..b36d6ccc58 100644 --- a/packages/browser-destinations/src/destinations/friendbuy/trackPurchase/__tests__/index.test.ts +++ b/packages/browser-destinations/destinations/friendbuy/src/trackPurchase/__tests__/index.test.ts @@ -2,8 +2,8 @@ import { Analytics, Context, JSONValue } from '@segment/analytics-next' import friendbuyDestination from '../../index' import trackPurchaseObject, { browserTrackPurchaseFields, trackPurchaseDefaultSubscription } from '../index' -import { loadScript } from '../../../../runtime/load-script' -jest.mock('../../../../runtime/load-script') +import { loadScript } from '@segment/browser-destination-runtime/load-script' +jest.mock('@segment/browser-destination-runtime/load-script') beforeEach(async () => { // Prevent friendbuy.js and campaigns.js from being loaded. ;(loadScript as jest.Mock).mockResolvedValue(true) diff --git a/packages/browser-destinations/src/destinations/friendbuy/trackPurchase/generated-types.ts b/packages/browser-destinations/destinations/friendbuy/src/trackPurchase/generated-types.ts similarity index 100% rename from packages/browser-destinations/src/destinations/friendbuy/trackPurchase/generated-types.ts rename to packages/browser-destinations/destinations/friendbuy/src/trackPurchase/generated-types.ts diff --git a/packages/browser-destinations/src/destinations/friendbuy/trackPurchase/index.ts b/packages/browser-destinations/destinations/friendbuy/src/trackPurchase/index.ts similarity index 97% rename from packages/browser-destinations/src/destinations/friendbuy/trackPurchase/index.ts rename to packages/browser-destinations/destinations/friendbuy/src/trackPurchase/index.ts index 6d1168ff8c..1b52c26613 100644 --- a/packages/browser-destinations/src/destinations/friendbuy/trackPurchase/index.ts +++ b/packages/browser-destinations/destinations/friendbuy/src/trackPurchase/index.ts @@ -1,4 +1,4 @@ -import type { BrowserActionDefinition } from '../../../lib/browser-destinations' +import type { BrowserActionDefinition } from '@segment/browser-destination-runtime/types' import type { FriendbuyAPI } from '../types' import type { Settings } from '../generated-types' diff --git a/packages/browser-destinations/src/destinations/friendbuy/trackSignUp/__tests__/index.test.ts b/packages/browser-destinations/destinations/friendbuy/src/trackSignUp/__tests__/index.test.ts similarity index 94% rename from packages/browser-destinations/src/destinations/friendbuy/trackSignUp/__tests__/index.test.ts rename to packages/browser-destinations/destinations/friendbuy/src/trackSignUp/__tests__/index.test.ts index 43fc985328..9d7c046178 100644 --- a/packages/browser-destinations/src/destinations/friendbuy/trackSignUp/__tests__/index.test.ts +++ b/packages/browser-destinations/destinations/friendbuy/src/trackSignUp/__tests__/index.test.ts @@ -2,8 +2,8 @@ import { Analytics, Context } from '@segment/analytics-next' import friendbuyDestination from '../../index' import trackSignUpObject, { browserTrackSignUpFields, trackSignUpDefaultSubscription } from '../index' -import { loadScript } from '../../../../runtime/load-script' -jest.mock('../../../../runtime/load-script') +import { loadScript } from '@segment/browser-destination-runtime/load-script' +jest.mock('@segment/browser-destination-runtime/load-script') beforeEach(async () => { // Prevent friendbuy.js and campaigns.js from being loaded. ;(loadScript as jest.Mock).mockResolvedValue(true) diff --git a/packages/browser-destinations/src/destinations/friendbuy/trackSignUp/generated-types.ts b/packages/browser-destinations/destinations/friendbuy/src/trackSignUp/generated-types.ts similarity index 100% rename from packages/browser-destinations/src/destinations/friendbuy/trackSignUp/generated-types.ts rename to packages/browser-destinations/destinations/friendbuy/src/trackSignUp/generated-types.ts diff --git a/packages/browser-destinations/src/destinations/friendbuy/trackSignUp/index.ts b/packages/browser-destinations/destinations/friendbuy/src/trackSignUp/index.ts similarity index 95% rename from packages/browser-destinations/src/destinations/friendbuy/trackSignUp/index.ts rename to packages/browser-destinations/destinations/friendbuy/src/trackSignUp/index.ts index 42beedd13d..fe9feda5a0 100644 --- a/packages/browser-destinations/src/destinations/friendbuy/trackSignUp/index.ts +++ b/packages/browser-destinations/destinations/friendbuy/src/trackSignUp/index.ts @@ -1,4 +1,4 @@ -import type { BrowserActionDefinition } from '../../../lib/browser-destinations' +import type { BrowserActionDefinition } from '@segment/browser-destination-runtime/types' import type { FriendbuyAPI } from '../types' import type { Settings } from '../generated-types' diff --git a/packages/browser-destinations/src/destinations/friendbuy/types.ts b/packages/browser-destinations/destinations/friendbuy/src/types.ts similarity index 100% rename from packages/browser-destinations/src/destinations/friendbuy/types.ts rename to packages/browser-destinations/destinations/friendbuy/src/types.ts diff --git a/packages/browser-destinations/destinations/friendbuy/tsconfig.json b/packages/browser-destinations/destinations/friendbuy/tsconfig.json new file mode 100644 index 0000000000..71c49219d9 --- /dev/null +++ b/packages/browser-destinations/destinations/friendbuy/tsconfig.json @@ -0,0 +1,9 @@ +{ + "extends": "../../tsconfig.build.json", + "compilerOptions": { + "rootDir": "./src", + "baseUrl": "." + }, + "include": ["src"], + "exclude": ["dist", "**/__tests__"] +} \ No newline at end of file diff --git a/packages/browser-destinations/destinations/fullstory/package.json b/packages/browser-destinations/destinations/fullstory/package.json new file mode 100644 index 0000000000..4fc23b4c33 --- /dev/null +++ b/packages/browser-destinations/destinations/fullstory/package.json @@ -0,0 +1,21 @@ +{ + "name": "@segment/analytics-browser-actions-fullstory", + "version": "0.0.0", + "license": "MIT", + "main": "./dist/cjs", + "module": "./dist/esm", + "scripts": { + "build": "yarn build:esm && yarn build:cjs", + "build:cjs": "tsc --module commonjs --outDir ./dist/cjs", + "build:esm": "tsc --outDir ./dist/esm" + }, + "typings": "./dist/esm", + "dependencies": { + "@fullstory/browser": "^1.4.9", + "@segment/actions-core": "^3.70.0", + "@segment/browser-destination-runtime": "^0.0.0" + }, + "peerDependencies": { + "@segment/analytics-next": "*" + } +} diff --git a/packages/browser-destinations/src/destinations/fullstory/__tests__/fullstory.test.ts b/packages/browser-destinations/destinations/fullstory/src/__tests__/fullstory.test.ts similarity index 98% rename from packages/browser-destinations/src/destinations/fullstory/__tests__/fullstory.test.ts rename to packages/browser-destinations/destinations/fullstory/src/__tests__/fullstory.test.ts index 8d908f21f0..4a71a195ba 100644 --- a/packages/browser-destinations/src/destinations/fullstory/__tests__/fullstory.test.ts +++ b/packages/browser-destinations/destinations/fullstory/src/__tests__/fullstory.test.ts @@ -1,6 +1,6 @@ import { Analytics, Context } from '@segment/analytics-next' import fullstory, { destination } from '..' -import { Subscription } from '../../../lib/browser-destinations' +import { Subscription } from '@segment/browser-destination-runtime/types' const example: Subscription[] = [ { diff --git a/packages/browser-destinations/src/destinations/fullstory/generated-types.ts b/packages/browser-destinations/destinations/fullstory/src/generated-types.ts similarity index 100% rename from packages/browser-destinations/src/destinations/fullstory/generated-types.ts rename to packages/browser-destinations/destinations/fullstory/src/generated-types.ts diff --git a/packages/browser-destinations/src/destinations/fullstory/identifyUser/generated-types.ts b/packages/browser-destinations/destinations/fullstory/src/identifyUser/generated-types.ts similarity index 100% rename from packages/browser-destinations/src/destinations/fullstory/identifyUser/generated-types.ts rename to packages/browser-destinations/destinations/fullstory/src/identifyUser/generated-types.ts diff --git a/packages/browser-destinations/src/destinations/fullstory/identifyUser/index.ts b/packages/browser-destinations/destinations/fullstory/src/identifyUser/index.ts similarity index 97% rename from packages/browser-destinations/src/destinations/fullstory/identifyUser/index.ts rename to packages/browser-destinations/destinations/fullstory/src/identifyUser/index.ts index 4db5e69f4d..f5a0bf9f90 100644 --- a/packages/browser-destinations/src/destinations/fullstory/identifyUser/index.ts +++ b/packages/browser-destinations/destinations/fullstory/src/identifyUser/index.ts @@ -1,4 +1,4 @@ -import type { BrowserActionDefinition } from '../../../lib/browser-destinations' +import type { BrowserActionDefinition } from '@segment/browser-destination-runtime/types' import type { Settings } from '../generated-types' import type { Payload } from './generated-types' import type { FS } from '../types' diff --git a/packages/browser-destinations/src/destinations/fullstory/index.ts b/packages/browser-destinations/destinations/fullstory/src/index.ts similarity index 90% rename from packages/browser-destinations/src/destinations/fullstory/index.ts rename to packages/browser-destinations/destinations/fullstory/src/index.ts index fe7cd359e0..9a22556ded 100644 --- a/packages/browser-destinations/src/destinations/fullstory/index.ts +++ b/packages/browser-destinations/destinations/fullstory/src/index.ts @@ -1,7 +1,7 @@ import type { FS } from './types' -import type { BrowserDestinationDefinition } from '../../lib/browser-destinations' +import type { BrowserDestinationDefinition } from '@segment/browser-destination-runtime/types' import { FSPackage } from './types' -import { browserDestination } from '../../runtime/shim' +import { browserDestination } from '@segment/browser-destination-runtime/shim' import type { Settings } from './generated-types' import trackEvent from './trackEvent' import identifyUser from './identifyUser' diff --git a/packages/browser-destinations/src/destinations/fullstory/trackEvent/generated-types.ts b/packages/browser-destinations/destinations/fullstory/src/trackEvent/generated-types.ts similarity index 100% rename from packages/browser-destinations/src/destinations/fullstory/trackEvent/generated-types.ts rename to packages/browser-destinations/destinations/fullstory/src/trackEvent/generated-types.ts diff --git a/packages/browser-destinations/src/destinations/fullstory/trackEvent/index.ts b/packages/browser-destinations/destinations/fullstory/src/trackEvent/index.ts similarity index 91% rename from packages/browser-destinations/src/destinations/fullstory/trackEvent/index.ts rename to packages/browser-destinations/destinations/fullstory/src/trackEvent/index.ts index 533990b762..e47292cb55 100644 --- a/packages/browser-destinations/src/destinations/fullstory/trackEvent/index.ts +++ b/packages/browser-destinations/destinations/fullstory/src/trackEvent/index.ts @@ -1,4 +1,4 @@ -import type { BrowserActionDefinition } from '../../../lib/browser-destinations' +import type { BrowserActionDefinition } from '@segment/browser-destination-runtime/types' import type { Settings } from '../generated-types' import type { Payload } from './generated-types' import type { FS } from '../types' diff --git a/packages/browser-destinations/src/destinations/fullstory/types.ts b/packages/browser-destinations/destinations/fullstory/src/types.ts similarity index 100% rename from packages/browser-destinations/src/destinations/fullstory/types.ts rename to packages/browser-destinations/destinations/fullstory/src/types.ts diff --git a/packages/browser-destinations/src/destinations/fullstory/viewedPage/generated-types.ts b/packages/browser-destinations/destinations/fullstory/src/viewedPage/generated-types.ts similarity index 100% rename from packages/browser-destinations/src/destinations/fullstory/viewedPage/generated-types.ts rename to packages/browser-destinations/destinations/fullstory/src/viewedPage/generated-types.ts diff --git a/packages/browser-destinations/src/destinations/fullstory/viewedPage/index.ts b/packages/browser-destinations/destinations/fullstory/src/viewedPage/index.ts similarity index 93% rename from packages/browser-destinations/src/destinations/fullstory/viewedPage/index.ts rename to packages/browser-destinations/destinations/fullstory/src/viewedPage/index.ts index 3f75055039..c4949b8f06 100644 --- a/packages/browser-destinations/src/destinations/fullstory/viewedPage/index.ts +++ b/packages/browser-destinations/destinations/fullstory/src/viewedPage/index.ts @@ -1,4 +1,4 @@ -import type { BrowserActionDefinition } from '../../../lib/browser-destinations' +import type { BrowserActionDefinition } from '@segment/browser-destination-runtime/types' import type { Settings } from '../generated-types' import type { Payload } from './generated-types' import type { FS } from '../types' diff --git a/packages/browser-destinations/destinations/fullstory/tsconfig.json b/packages/browser-destinations/destinations/fullstory/tsconfig.json new file mode 100644 index 0000000000..71c49219d9 --- /dev/null +++ b/packages/browser-destinations/destinations/fullstory/tsconfig.json @@ -0,0 +1,9 @@ +{ + "extends": "../../tsconfig.build.json", + "compilerOptions": { + "rootDir": "./src", + "baseUrl": "." + }, + "include": ["src"], + "exclude": ["dist", "**/__tests__"] +} \ No newline at end of file diff --git a/packages/browser-destinations/destinations/google-analytics-4-web/package.json b/packages/browser-destinations/destinations/google-analytics-4-web/package.json new file mode 100644 index 0000000000..552b134a53 --- /dev/null +++ b/packages/browser-destinations/destinations/google-analytics-4-web/package.json @@ -0,0 +1,20 @@ +{ + "name": "@segment/analytics-browser-actions-google-analytics-4", + "version": "0.0.0", + "license": "MIT", + "main": "./dist/cjs", + "module": "./dist/esm", + "scripts": { + "build": "yarn build:esm && yarn build:cjs", + "build:cjs": "tsc --module commonjs --outDir ./dist/cjs", + "build:esm": "tsc --outDir ./dist/esm" + }, + "typings": "./dist/esm", + "dependencies": { + "@segment/actions-core": "^3.70.0", + "@segment/browser-destination-runtime": "^0.0.0" + }, + "peerDependencies": { + "@segment/analytics-next": "*" + } +} diff --git a/packages/browser-destinations/src/destinations/google-analytics-4-web/__tests__/addPaymentInfo.test.ts b/packages/browser-destinations/destinations/google-analytics-4-web/src/__tests__/addPaymentInfo.test.ts similarity index 97% rename from packages/browser-destinations/src/destinations/google-analytics-4-web/__tests__/addPaymentInfo.test.ts rename to packages/browser-destinations/destinations/google-analytics-4-web/src/__tests__/addPaymentInfo.test.ts index 203ce1add6..435b49bfaf 100644 --- a/packages/browser-destinations/src/destinations/google-analytics-4-web/__tests__/addPaymentInfo.test.ts +++ b/packages/browser-destinations/destinations/google-analytics-4-web/src/__tests__/addPaymentInfo.test.ts @@ -1,4 +1,4 @@ -import { Subscription } from '../../../lib/browser-destinations' +import { Subscription } from '@segment/browser-destination-runtime/types' import { Analytics, Context } from '@segment/analytics-next' import googleAnalytics4Web, { destination } from '../index' import { GA } from '../types' diff --git a/packages/browser-destinations/src/destinations/google-analytics-4-web/__tests__/addToCart.test.ts b/packages/browser-destinations/destinations/google-analytics-4-web/src/__tests__/addToCart.test.ts similarity index 96% rename from packages/browser-destinations/src/destinations/google-analytics-4-web/__tests__/addToCart.test.ts rename to packages/browser-destinations/destinations/google-analytics-4-web/src/__tests__/addToCart.test.ts index c3e4a6c370..887c85c121 100644 --- a/packages/browser-destinations/src/destinations/google-analytics-4-web/__tests__/addToCart.test.ts +++ b/packages/browser-destinations/destinations/google-analytics-4-web/src/__tests__/addToCart.test.ts @@ -1,4 +1,4 @@ -import { Subscription } from '../../../lib/browser-destinations' +import { Subscription } from '@segment/browser-destination-runtime/types' import { Analytics, Context } from '@segment/analytics-next' import googleAnalytics4Web, { destination } from '../index' import { GA } from '../types' diff --git a/packages/browser-destinations/src/destinations/google-analytics-4-web/__tests__/addToWishlist.test.ts b/packages/browser-destinations/destinations/google-analytics-4-web/src/__tests__/addToWishlist.test.ts similarity index 96% rename from packages/browser-destinations/src/destinations/google-analytics-4-web/__tests__/addToWishlist.test.ts rename to packages/browser-destinations/destinations/google-analytics-4-web/src/__tests__/addToWishlist.test.ts index f4e63b2901..a416c498b3 100644 --- a/packages/browser-destinations/src/destinations/google-analytics-4-web/__tests__/addToWishlist.test.ts +++ b/packages/browser-destinations/destinations/google-analytics-4-web/src/__tests__/addToWishlist.test.ts @@ -1,4 +1,4 @@ -import { Subscription } from '../../../lib/browser-destinations' +import { Subscription } from '@segment/browser-destination-runtime/types' import { Analytics, Context } from '@segment/analytics-next' import googleAnalytics4Web, { destination } from '../index' import { GA } from '../types' diff --git a/packages/browser-destinations/src/destinations/google-analytics-4-web/__tests__/beginCheckout.test.ts b/packages/browser-destinations/destinations/google-analytics-4-web/src/__tests__/beginCheckout.test.ts similarity index 97% rename from packages/browser-destinations/src/destinations/google-analytics-4-web/__tests__/beginCheckout.test.ts rename to packages/browser-destinations/destinations/google-analytics-4-web/src/__tests__/beginCheckout.test.ts index 233b692b73..9fb18706f3 100644 --- a/packages/browser-destinations/src/destinations/google-analytics-4-web/__tests__/beginCheckout.test.ts +++ b/packages/browser-destinations/destinations/google-analytics-4-web/src/__tests__/beginCheckout.test.ts @@ -1,4 +1,4 @@ -import { Subscription } from '../../../lib/browser-destinations' +import { Subscription } from '@segment/browser-destination-runtime/types' import { Analytics, Context } from '@segment/analytics-next' import googleAnalytics4Web, { destination } from '../index' import { GA } from '../types' diff --git a/packages/browser-destinations/src/destinations/google-analytics-4-web/__tests__/customEvent.test.ts b/packages/browser-destinations/destinations/google-analytics-4-web/src/__tests__/customEvent.test.ts similarity index 95% rename from packages/browser-destinations/src/destinations/google-analytics-4-web/__tests__/customEvent.test.ts rename to packages/browser-destinations/destinations/google-analytics-4-web/src/__tests__/customEvent.test.ts index da8b4d73f7..d1c8f96418 100644 --- a/packages/browser-destinations/src/destinations/google-analytics-4-web/__tests__/customEvent.test.ts +++ b/packages/browser-destinations/destinations/google-analytics-4-web/src/__tests__/customEvent.test.ts @@ -1,4 +1,4 @@ -import { Subscription } from '../../../lib/browser-destinations' +import { Subscription } from '@segment/browser-destination-runtime/types' import { Analytics, Context } from '@segment/analytics-next' import googleAnalytics4Web, { destination } from '../index' import { GA } from '../types' diff --git a/packages/browser-destinations/src/destinations/google-analytics-4-web/__tests__/generateLead.test.ts b/packages/browser-destinations/destinations/google-analytics-4-web/src/__tests__/generateLead.test.ts similarity index 95% rename from packages/browser-destinations/src/destinations/google-analytics-4-web/__tests__/generateLead.test.ts rename to packages/browser-destinations/destinations/google-analytics-4-web/src/__tests__/generateLead.test.ts index 59a0e63319..dcce26cae5 100644 --- a/packages/browser-destinations/src/destinations/google-analytics-4-web/__tests__/generateLead.test.ts +++ b/packages/browser-destinations/destinations/google-analytics-4-web/src/__tests__/generateLead.test.ts @@ -1,4 +1,4 @@ -import { Subscription } from '../../../lib/browser-destinations' +import { Subscription } from '@segment/browser-destination-runtime/types' import { Analytics, Context } from '@segment/analytics-next' import googleAnalytics4Web, { destination } from '../index' import { GA } from '../types' diff --git a/packages/browser-destinations/src/destinations/google-analytics-4-web/__tests__/login.test.ts b/packages/browser-destinations/destinations/google-analytics-4-web/src/__tests__/login.test.ts similarity index 94% rename from packages/browser-destinations/src/destinations/google-analytics-4-web/__tests__/login.test.ts rename to packages/browser-destinations/destinations/google-analytics-4-web/src/__tests__/login.test.ts index f13b217708..00a4f6807c 100644 --- a/packages/browser-destinations/src/destinations/google-analytics-4-web/__tests__/login.test.ts +++ b/packages/browser-destinations/destinations/google-analytics-4-web/src/__tests__/login.test.ts @@ -1,4 +1,4 @@ -import { Subscription } from '../../../lib/browser-destinations' +import { Subscription } from '@segment/browser-destination-runtime/types' import { Analytics, Context } from '@segment/analytics-next' import googleAnalytics4Web, { destination } from '../index' import { GA } from '../types' diff --git a/packages/browser-destinations/src/destinations/google-analytics-4-web/__tests__/purchase.test.ts b/packages/browser-destinations/destinations/google-analytics-4-web/src/__tests__/purchase.test.ts similarity index 97% rename from packages/browser-destinations/src/destinations/google-analytics-4-web/__tests__/purchase.test.ts rename to packages/browser-destinations/destinations/google-analytics-4-web/src/__tests__/purchase.test.ts index dd603919d7..ab4e4b23ad 100644 --- a/packages/browser-destinations/src/destinations/google-analytics-4-web/__tests__/purchase.test.ts +++ b/packages/browser-destinations/destinations/google-analytics-4-web/src/__tests__/purchase.test.ts @@ -1,4 +1,4 @@ -import { Subscription } from '../../../lib/browser-destinations' +import { Subscription } from '@segment/browser-destination-runtime/types' import { Analytics, Context } from '@segment/analytics-next' import googleAnalytics4Web, { destination } from '../index' import { GA } from '../types' diff --git a/packages/browser-destinations/src/destinations/google-analytics-4-web/__tests__/refund.test.ts b/packages/browser-destinations/destinations/google-analytics-4-web/src/__tests__/refund.test.ts similarity index 97% rename from packages/browser-destinations/src/destinations/google-analytics-4-web/__tests__/refund.test.ts rename to packages/browser-destinations/destinations/google-analytics-4-web/src/__tests__/refund.test.ts index bc8db11d10..a980a299bd 100644 --- a/packages/browser-destinations/src/destinations/google-analytics-4-web/__tests__/refund.test.ts +++ b/packages/browser-destinations/destinations/google-analytics-4-web/src/__tests__/refund.test.ts @@ -1,4 +1,4 @@ -import { Subscription } from '../../../lib/browser-destinations' +import { Subscription } from '@segment/browser-destination-runtime/types' import { Analytics, Context } from '@segment/analytics-next' import googleAnalytics4Web, { destination } from '../index' import { GA } from '../types' diff --git a/packages/browser-destinations/src/destinations/google-analytics-4-web/__tests__/removeFromCart.test.ts b/packages/browser-destinations/destinations/google-analytics-4-web/src/__tests__/removeFromCart.test.ts similarity index 96% rename from packages/browser-destinations/src/destinations/google-analytics-4-web/__tests__/removeFromCart.test.ts rename to packages/browser-destinations/destinations/google-analytics-4-web/src/__tests__/removeFromCart.test.ts index 287e331366..69c251e712 100644 --- a/packages/browser-destinations/src/destinations/google-analytics-4-web/__tests__/removeFromCart.test.ts +++ b/packages/browser-destinations/destinations/google-analytics-4-web/src/__tests__/removeFromCart.test.ts @@ -1,4 +1,4 @@ -import { Subscription } from '../../../lib/browser-destinations' +import { Subscription } from '@segment/browser-destination-runtime/types' import { Analytics, Context } from '@segment/analytics-next' import googleAnalytics4Web, { destination } from '../index' import { GA } from '../types' diff --git a/packages/browser-destinations/src/destinations/google-analytics-4-web/__tests__/search.test.ts b/packages/browser-destinations/destinations/google-analytics-4-web/src/__tests__/search.test.ts similarity index 95% rename from packages/browser-destinations/src/destinations/google-analytics-4-web/__tests__/search.test.ts rename to packages/browser-destinations/destinations/google-analytics-4-web/src/__tests__/search.test.ts index 07fb86902f..349a2f26d7 100644 --- a/packages/browser-destinations/src/destinations/google-analytics-4-web/__tests__/search.test.ts +++ b/packages/browser-destinations/destinations/google-analytics-4-web/src/__tests__/search.test.ts @@ -1,4 +1,4 @@ -import { Subscription } from '../../../lib/browser-destinations' +import { Subscription } from '@segment/browser-destination-runtime/types' import { Analytics, Context } from '@segment/analytics-next' import googleAnalytics4Web, { destination } from '../index' import { GA } from '../types' diff --git a/packages/browser-destinations/src/destinations/google-analytics-4-web/__tests__/selectItem.test.ts b/packages/browser-destinations/destinations/google-analytics-4-web/src/__tests__/selectItem.test.ts similarity index 96% rename from packages/browser-destinations/src/destinations/google-analytics-4-web/__tests__/selectItem.test.ts rename to packages/browser-destinations/destinations/google-analytics-4-web/src/__tests__/selectItem.test.ts index 93bbadd676..a82463d915 100644 --- a/packages/browser-destinations/src/destinations/google-analytics-4-web/__tests__/selectItem.test.ts +++ b/packages/browser-destinations/destinations/google-analytics-4-web/src/__tests__/selectItem.test.ts @@ -1,4 +1,4 @@ -import { Subscription } from '../../../lib/browser-destinations' +import { Subscription } from '@segment/browser-destination-runtime/types' import { Analytics, Context } from '@segment/analytics-next' import googleAnalytics4Web, { destination } from '../index' import { GA } from '../types' diff --git a/packages/browser-destinations/src/destinations/google-analytics-4-web/__tests__/selectPromotion.test.ts b/packages/browser-destinations/destinations/google-analytics-4-web/src/__tests__/selectPromotion.test.ts similarity index 97% rename from packages/browser-destinations/src/destinations/google-analytics-4-web/__tests__/selectPromotion.test.ts rename to packages/browser-destinations/destinations/google-analytics-4-web/src/__tests__/selectPromotion.test.ts index 1b4abc0456..fde4f28aba 100644 --- a/packages/browser-destinations/src/destinations/google-analytics-4-web/__tests__/selectPromotion.test.ts +++ b/packages/browser-destinations/destinations/google-analytics-4-web/src/__tests__/selectPromotion.test.ts @@ -1,4 +1,4 @@ -import { Subscription } from '../../../lib/browser-destinations' +import { Subscription } from '@segment/browser-destination-runtime/types' import { Analytics, Context } from '@segment/analytics-next' import googleAnalytics4Web, { destination } from '../index' import { GA } from '../types' diff --git a/packages/browser-destinations/src/destinations/google-analytics-4-web/__tests__/signUp.test.ts b/packages/browser-destinations/destinations/google-analytics-4-web/src/__tests__/signUp.test.ts similarity index 94% rename from packages/browser-destinations/src/destinations/google-analytics-4-web/__tests__/signUp.test.ts rename to packages/browser-destinations/destinations/google-analytics-4-web/src/__tests__/signUp.test.ts index 341043713f..e89d24169b 100644 --- a/packages/browser-destinations/src/destinations/google-analytics-4-web/__tests__/signUp.test.ts +++ b/packages/browser-destinations/destinations/google-analytics-4-web/src/__tests__/signUp.test.ts @@ -1,4 +1,4 @@ -import { Subscription } from '../../../lib/browser-destinations' +import { Subscription } from '@segment/browser-destination-runtime/types' import { Analytics, Context } from '@segment/analytics-next' import googleAnalytics4Web, { destination } from '../index' import { GA } from '../types' diff --git a/packages/browser-destinations/src/destinations/google-analytics-4-web/__tests__/viewCart.test.ts b/packages/browser-destinations/destinations/google-analytics-4-web/src/__tests__/viewCart.test.ts similarity index 96% rename from packages/browser-destinations/src/destinations/google-analytics-4-web/__tests__/viewCart.test.ts rename to packages/browser-destinations/destinations/google-analytics-4-web/src/__tests__/viewCart.test.ts index e3d245338c..69a0c4358f 100644 --- a/packages/browser-destinations/src/destinations/google-analytics-4-web/__tests__/viewCart.test.ts +++ b/packages/browser-destinations/destinations/google-analytics-4-web/src/__tests__/viewCart.test.ts @@ -1,4 +1,4 @@ -import { Subscription } from '../../../lib/browser-destinations' +import { Subscription } from '@segment/browser-destination-runtime/types' import { Analytics, Context } from '@segment/analytics-next' import googleAnalytics4Web, { destination } from '../index' import { GA } from '../types' diff --git a/packages/browser-destinations/src/destinations/google-analytics-4-web/__tests__/viewItem.test.ts b/packages/browser-destinations/destinations/google-analytics-4-web/src/__tests__/viewItem.test.ts similarity index 96% rename from packages/browser-destinations/src/destinations/google-analytics-4-web/__tests__/viewItem.test.ts rename to packages/browser-destinations/destinations/google-analytics-4-web/src/__tests__/viewItem.test.ts index ce6aea21dc..2b1d920692 100644 --- a/packages/browser-destinations/src/destinations/google-analytics-4-web/__tests__/viewItem.test.ts +++ b/packages/browser-destinations/destinations/google-analytics-4-web/src/__tests__/viewItem.test.ts @@ -1,4 +1,4 @@ -import { Subscription } from '../../../lib/browser-destinations' +import { Subscription } from '@segment/browser-destination-runtime/types' import { Analytics, Context } from '@segment/analytics-next' import googleAnalytics4Web, { destination } from '../index' import { GA } from '../types' diff --git a/packages/browser-destinations/src/destinations/google-analytics-4-web/__tests__/viewItemList.test.ts b/packages/browser-destinations/destinations/google-analytics-4-web/src/__tests__/viewItemList.test.ts similarity index 96% rename from packages/browser-destinations/src/destinations/google-analytics-4-web/__tests__/viewItemList.test.ts rename to packages/browser-destinations/destinations/google-analytics-4-web/src/__tests__/viewItemList.test.ts index 2d9519585b..22cb3403b0 100644 --- a/packages/browser-destinations/src/destinations/google-analytics-4-web/__tests__/viewItemList.test.ts +++ b/packages/browser-destinations/destinations/google-analytics-4-web/src/__tests__/viewItemList.test.ts @@ -1,4 +1,4 @@ -import { Subscription } from '../../../lib/browser-destinations' +import { Subscription } from '@segment/browser-destination-runtime/types' import { Analytics, Context } from '@segment/analytics-next' import googleAnalytics4Web, { destination } from '../index' import { GA } from '../types' diff --git a/packages/browser-destinations/src/destinations/google-analytics-4-web/__tests__/viewPromotion.test.ts b/packages/browser-destinations/destinations/google-analytics-4-web/src/__tests__/viewPromotion.test.ts similarity index 97% rename from packages/browser-destinations/src/destinations/google-analytics-4-web/__tests__/viewPromotion.test.ts rename to packages/browser-destinations/destinations/google-analytics-4-web/src/__tests__/viewPromotion.test.ts index 7dbcbc185e..56205ea34a 100644 --- a/packages/browser-destinations/src/destinations/google-analytics-4-web/__tests__/viewPromotion.test.ts +++ b/packages/browser-destinations/destinations/google-analytics-4-web/src/__tests__/viewPromotion.test.ts @@ -1,4 +1,4 @@ -import { Subscription } from '../../../lib/browser-destinations' +import { Subscription } from '@segment/browser-destination-runtime/types' import { Analytics, Context } from '@segment/analytics-next' import googleAnalytics4Web, { destination } from '../index' import { GA } from '../types' diff --git a/packages/browser-destinations/src/destinations/google-analytics-4-web/addPaymentInfo/generated-types.ts b/packages/browser-destinations/destinations/google-analytics-4-web/src/addPaymentInfo/generated-types.ts similarity index 100% rename from packages/browser-destinations/src/destinations/google-analytics-4-web/addPaymentInfo/generated-types.ts rename to packages/browser-destinations/destinations/google-analytics-4-web/src/addPaymentInfo/generated-types.ts diff --git a/packages/browser-destinations/src/destinations/google-analytics-4-web/addPaymentInfo/index.ts b/packages/browser-destinations/destinations/google-analytics-4-web/src/addPaymentInfo/index.ts similarity index 93% rename from packages/browser-destinations/src/destinations/google-analytics-4-web/addPaymentInfo/index.ts rename to packages/browser-destinations/destinations/google-analytics-4-web/src/addPaymentInfo/index.ts index 7b7002f20e..d770fa1e20 100644 --- a/packages/browser-destinations/src/destinations/google-analytics-4-web/addPaymentInfo/index.ts +++ b/packages/browser-destinations/destinations/google-analytics-4-web/src/addPaymentInfo/index.ts @@ -1,4 +1,4 @@ -import type { BrowserActionDefinition } from '../../../lib/browser-destinations' +import type { BrowserActionDefinition } from '@segment/browser-destination-runtime/types' import type { Settings } from '../generated-types' import type { Payload } from './generated-types' import { updateUser } from '../ga4-functions' diff --git a/packages/browser-destinations/src/destinations/google-analytics-4-web/addToCart/generated-types.ts b/packages/browser-destinations/destinations/google-analytics-4-web/src/addToCart/generated-types.ts similarity index 100% rename from packages/browser-destinations/src/destinations/google-analytics-4-web/addToCart/generated-types.ts rename to packages/browser-destinations/destinations/google-analytics-4-web/src/addToCart/generated-types.ts diff --git a/packages/browser-destinations/src/destinations/google-analytics-4-web/addToCart/index.ts b/packages/browser-destinations/destinations/google-analytics-4-web/src/addToCart/index.ts similarity index 91% rename from packages/browser-destinations/src/destinations/google-analytics-4-web/addToCart/index.ts rename to packages/browser-destinations/destinations/google-analytics-4-web/src/addToCart/index.ts index 790fdbfc3d..e11cf5ec89 100644 --- a/packages/browser-destinations/src/destinations/google-analytics-4-web/addToCart/index.ts +++ b/packages/browser-destinations/destinations/google-analytics-4-web/src/addToCart/index.ts @@ -1,4 +1,4 @@ -import type { BrowserActionDefinition } from '../../../lib/browser-destinations' +import type { BrowserActionDefinition } from '@segment/browser-destination-runtime/types' import type { Settings } from '../generated-types' import type { Payload } from './generated-types' import { updateUser } from '../ga4-functions' diff --git a/packages/browser-destinations/src/destinations/google-analytics-4-web/addToWishlist/generated-types.ts b/packages/browser-destinations/destinations/google-analytics-4-web/src/addToWishlist/generated-types.ts similarity index 100% rename from packages/browser-destinations/src/destinations/google-analytics-4-web/addToWishlist/generated-types.ts rename to packages/browser-destinations/destinations/google-analytics-4-web/src/addToWishlist/generated-types.ts diff --git a/packages/browser-destinations/src/destinations/google-analytics-4-web/addToWishlist/index.ts b/packages/browser-destinations/destinations/google-analytics-4-web/src/addToWishlist/index.ts similarity index 92% rename from packages/browser-destinations/src/destinations/google-analytics-4-web/addToWishlist/index.ts rename to packages/browser-destinations/destinations/google-analytics-4-web/src/addToWishlist/index.ts index c94378ee67..b5a1145d0e 100644 --- a/packages/browser-destinations/src/destinations/google-analytics-4-web/addToWishlist/index.ts +++ b/packages/browser-destinations/destinations/google-analytics-4-web/src/addToWishlist/index.ts @@ -1,4 +1,4 @@ -import type { BrowserActionDefinition } from '../../../lib/browser-destinations' +import type { BrowserActionDefinition } from '@segment/browser-destination-runtime/types' import type { Settings } from '../generated-types' import type { Payload } from './generated-types' diff --git a/packages/browser-destinations/src/destinations/google-analytics-4-web/beginCheckout/generated-types.ts b/packages/browser-destinations/destinations/google-analytics-4-web/src/beginCheckout/generated-types.ts similarity index 100% rename from packages/browser-destinations/src/destinations/google-analytics-4-web/beginCheckout/generated-types.ts rename to packages/browser-destinations/destinations/google-analytics-4-web/src/beginCheckout/generated-types.ts diff --git a/packages/browser-destinations/src/destinations/google-analytics-4-web/beginCheckout/index.ts b/packages/browser-destinations/destinations/google-analytics-4-web/src/beginCheckout/index.ts similarity index 92% rename from packages/browser-destinations/src/destinations/google-analytics-4-web/beginCheckout/index.ts rename to packages/browser-destinations/destinations/google-analytics-4-web/src/beginCheckout/index.ts index 45ea69acfd..02d55fe142 100644 --- a/packages/browser-destinations/src/destinations/google-analytics-4-web/beginCheckout/index.ts +++ b/packages/browser-destinations/destinations/google-analytics-4-web/src/beginCheckout/index.ts @@ -1,4 +1,4 @@ -import type { BrowserActionDefinition } from '../../../lib/browser-destinations' +import type { BrowserActionDefinition } from '@segment/browser-destination-runtime/types' import type { Settings } from '../generated-types' import type { Payload } from './generated-types' diff --git a/packages/browser-destinations/src/destinations/google-analytics-4-web/customEvent/generated-types.ts b/packages/browser-destinations/destinations/google-analytics-4-web/src/customEvent/generated-types.ts similarity index 100% rename from packages/browser-destinations/src/destinations/google-analytics-4-web/customEvent/generated-types.ts rename to packages/browser-destinations/destinations/google-analytics-4-web/src/customEvent/generated-types.ts diff --git a/packages/browser-destinations/src/destinations/google-analytics-4-web/customEvent/index.ts b/packages/browser-destinations/destinations/google-analytics-4-web/src/customEvent/index.ts similarity index 95% rename from packages/browser-destinations/src/destinations/google-analytics-4-web/customEvent/index.ts rename to packages/browser-destinations/destinations/google-analytics-4-web/src/customEvent/index.ts index 4d0455318a..d8428e46a0 100644 --- a/packages/browser-destinations/src/destinations/google-analytics-4-web/customEvent/index.ts +++ b/packages/browser-destinations/destinations/google-analytics-4-web/src/customEvent/index.ts @@ -1,4 +1,4 @@ -import type { BrowserActionDefinition } from '../../../lib/browser-destinations' +import type { BrowserActionDefinition } from '@segment/browser-destination-runtime/types' import type { Settings } from '../generated-types' import type { Payload } from './generated-types' import { user_id, user_properties, params } from '../ga4-properties' diff --git a/packages/browser-destinations/src/destinations/google-analytics-4-web/ga4-functions.ts b/packages/browser-destinations/destinations/google-analytics-4-web/src/ga4-functions.ts similarity index 100% rename from packages/browser-destinations/src/destinations/google-analytics-4-web/ga4-functions.ts rename to packages/browser-destinations/destinations/google-analytics-4-web/src/ga4-functions.ts diff --git a/packages/browser-destinations/src/destinations/google-analytics-4-web/ga4-properties.ts b/packages/browser-destinations/destinations/google-analytics-4-web/src/ga4-properties.ts similarity index 99% rename from packages/browser-destinations/src/destinations/google-analytics-4-web/ga4-properties.ts rename to packages/browser-destinations/destinations/google-analytics-4-web/src/ga4-properties.ts index 3e1128a993..f5a542afd1 100644 --- a/packages/browser-destinations/src/destinations/google-analytics-4-web/ga4-properties.ts +++ b/packages/browser-destinations/destinations/google-analytics-4-web/src/ga4-properties.ts @@ -1,4 +1,4 @@ -import { InputField } from '@segment/actions-core/src/destination-kit/types' +import { InputField } from '@segment/actions-core/destination-kit/types' export const formatUserProperties = (userProperties: object | undefined): object | undefined => { if (!userProperties) { diff --git a/packages/browser-destinations/src/destinations/google-analytics-4-web/ga4-types.ts b/packages/browser-destinations/destinations/google-analytics-4-web/src/ga4-types.ts similarity index 100% rename from packages/browser-destinations/src/destinations/google-analytics-4-web/ga4-types.ts rename to packages/browser-destinations/destinations/google-analytics-4-web/src/ga4-types.ts diff --git a/packages/browser-destinations/src/destinations/google-analytics-4-web/generateLead/generated-types.ts b/packages/browser-destinations/destinations/google-analytics-4-web/src/generateLead/generated-types.ts similarity index 100% rename from packages/browser-destinations/src/destinations/google-analytics-4-web/generateLead/generated-types.ts rename to packages/browser-destinations/destinations/google-analytics-4-web/src/generateLead/generated-types.ts diff --git a/packages/browser-destinations/src/destinations/google-analytics-4-web/generateLead/index.ts b/packages/browser-destinations/destinations/google-analytics-4-web/src/generateLead/index.ts similarity index 91% rename from packages/browser-destinations/src/destinations/google-analytics-4-web/generateLead/index.ts rename to packages/browser-destinations/destinations/google-analytics-4-web/src/generateLead/index.ts index 1d4ef6e3a8..c73003aefb 100644 --- a/packages/browser-destinations/src/destinations/google-analytics-4-web/generateLead/index.ts +++ b/packages/browser-destinations/destinations/google-analytics-4-web/src/generateLead/index.ts @@ -1,4 +1,4 @@ -import type { BrowserActionDefinition } from '../../../lib/browser-destinations' +import type { BrowserActionDefinition } from '@segment/browser-destination-runtime/types' import type { Settings } from '../generated-types' import type { Payload } from './generated-types' diff --git a/packages/browser-destinations/src/destinations/google-analytics-4-web/generated-types.ts b/packages/browser-destinations/destinations/google-analytics-4-web/src/generated-types.ts similarity index 100% rename from packages/browser-destinations/src/destinations/google-analytics-4-web/generated-types.ts rename to packages/browser-destinations/destinations/google-analytics-4-web/src/generated-types.ts diff --git a/packages/browser-destinations/src/destinations/google-analytics-4-web/index.ts b/packages/browser-destinations/destinations/google-analytics-4-web/src/index.ts similarity index 97% rename from packages/browser-destinations/src/destinations/google-analytics-4-web/index.ts rename to packages/browser-destinations/destinations/google-analytics-4-web/src/index.ts index f39c66fb66..5385557007 100644 --- a/packages/browser-destinations/src/destinations/google-analytics-4-web/index.ts +++ b/packages/browser-destinations/destinations/google-analytics-4-web/src/index.ts @@ -1,6 +1,6 @@ import type { Settings } from './generated-types' -import type { BrowserDestinationDefinition } from '../../lib/browser-destinations' -import { browserDestination } from '../../runtime/shim' +import type { BrowserDestinationDefinition } from '@segment/browser-destination-runtime/types' +import { browserDestination } from '@segment/browser-destination-runtime/shim' import addPaymentInfo from './addPaymentInfo' import addToCart from './addToCart' diff --git a/packages/browser-destinations/src/destinations/google-analytics-4-web/login/generated-types.ts b/packages/browser-destinations/destinations/google-analytics-4-web/src/login/generated-types.ts similarity index 100% rename from packages/browser-destinations/src/destinations/google-analytics-4-web/login/generated-types.ts rename to packages/browser-destinations/destinations/google-analytics-4-web/src/login/generated-types.ts diff --git a/packages/browser-destinations/src/destinations/google-analytics-4-web/login/index.ts b/packages/browser-destinations/destinations/google-analytics-4-web/src/login/index.ts similarity index 90% rename from packages/browser-destinations/src/destinations/google-analytics-4-web/login/index.ts rename to packages/browser-destinations/destinations/google-analytics-4-web/src/login/index.ts index c02be7ab95..0b85ed3678 100644 --- a/packages/browser-destinations/src/destinations/google-analytics-4-web/login/index.ts +++ b/packages/browser-destinations/destinations/google-analytics-4-web/src/login/index.ts @@ -1,4 +1,4 @@ -import type { BrowserActionDefinition } from '../../../lib/browser-destinations' +import type { BrowserActionDefinition } from '@segment/browser-destination-runtime/types' import type { Settings } from '../generated-types' import type { Payload } from './generated-types' diff --git a/packages/browser-destinations/src/destinations/google-analytics-4-web/purchase/generated-types.ts b/packages/browser-destinations/destinations/google-analytics-4-web/src/purchase/generated-types.ts similarity index 100% rename from packages/browser-destinations/src/destinations/google-analytics-4-web/purchase/generated-types.ts rename to packages/browser-destinations/destinations/google-analytics-4-web/src/purchase/generated-types.ts diff --git a/packages/browser-destinations/src/destinations/google-analytics-4-web/purchase/index.ts b/packages/browser-destinations/destinations/google-analytics-4-web/src/purchase/index.ts similarity index 94% rename from packages/browser-destinations/src/destinations/google-analytics-4-web/purchase/index.ts rename to packages/browser-destinations/destinations/google-analytics-4-web/src/purchase/index.ts index 3ebd36aba8..b694450600 100644 --- a/packages/browser-destinations/src/destinations/google-analytics-4-web/purchase/index.ts +++ b/packages/browser-destinations/destinations/google-analytics-4-web/src/purchase/index.ts @@ -1,4 +1,4 @@ -import type { BrowserActionDefinition } from '../../../lib/browser-destinations' +import type { BrowserActionDefinition } from '@segment/browser-destination-runtime/types' import type { Settings } from '../generated-types' import type { Payload } from './generated-types' import { diff --git a/packages/browser-destinations/src/destinations/google-analytics-4-web/refund/generated-types.ts b/packages/browser-destinations/destinations/google-analytics-4-web/src/refund/generated-types.ts similarity index 100% rename from packages/browser-destinations/src/destinations/google-analytics-4-web/refund/generated-types.ts rename to packages/browser-destinations/destinations/google-analytics-4-web/src/refund/generated-types.ts diff --git a/packages/browser-destinations/src/destinations/google-analytics-4-web/refund/index.ts b/packages/browser-destinations/destinations/google-analytics-4-web/src/refund/index.ts similarity index 94% rename from packages/browser-destinations/src/destinations/google-analytics-4-web/refund/index.ts rename to packages/browser-destinations/destinations/google-analytics-4-web/src/refund/index.ts index 9ebff36472..a3f2da2911 100644 --- a/packages/browser-destinations/src/destinations/google-analytics-4-web/refund/index.ts +++ b/packages/browser-destinations/destinations/google-analytics-4-web/src/refund/index.ts @@ -1,4 +1,4 @@ -import type { BrowserActionDefinition } from '../../../lib/browser-destinations' +import type { BrowserActionDefinition } from '@segment/browser-destination-runtime/types' import type { Settings } from '../generated-types' import type { Payload } from './generated-types' diff --git a/packages/browser-destinations/src/destinations/google-analytics-4-web/removeFromCart/generated-types.ts b/packages/browser-destinations/destinations/google-analytics-4-web/src/removeFromCart/generated-types.ts similarity index 100% rename from packages/browser-destinations/src/destinations/google-analytics-4-web/removeFromCart/generated-types.ts rename to packages/browser-destinations/destinations/google-analytics-4-web/src/removeFromCart/generated-types.ts diff --git a/packages/browser-destinations/src/destinations/google-analytics-4-web/removeFromCart/index.ts b/packages/browser-destinations/destinations/google-analytics-4-web/src/removeFromCart/index.ts similarity index 92% rename from packages/browser-destinations/src/destinations/google-analytics-4-web/removeFromCart/index.ts rename to packages/browser-destinations/destinations/google-analytics-4-web/src/removeFromCart/index.ts index a66e7b027a..314e9791b5 100644 --- a/packages/browser-destinations/src/destinations/google-analytics-4-web/removeFromCart/index.ts +++ b/packages/browser-destinations/destinations/google-analytics-4-web/src/removeFromCart/index.ts @@ -1,4 +1,4 @@ -import type { BrowserActionDefinition } from '../../../lib/browser-destinations' +import type { BrowserActionDefinition } from '@segment/browser-destination-runtime/types' import type { Settings } from '../generated-types' import type { Payload } from './generated-types' diff --git a/packages/browser-destinations/src/destinations/google-analytics-4-web/search/generated-types.ts b/packages/browser-destinations/destinations/google-analytics-4-web/src/search/generated-types.ts similarity index 100% rename from packages/browser-destinations/src/destinations/google-analytics-4-web/search/generated-types.ts rename to packages/browser-destinations/destinations/google-analytics-4-web/src/search/generated-types.ts diff --git a/packages/browser-destinations/src/destinations/google-analytics-4-web/search/index.ts b/packages/browser-destinations/destinations/google-analytics-4-web/src/search/index.ts similarity index 90% rename from packages/browser-destinations/src/destinations/google-analytics-4-web/search/index.ts rename to packages/browser-destinations/destinations/google-analytics-4-web/src/search/index.ts index 5f07360d66..caaa88163c 100644 --- a/packages/browser-destinations/src/destinations/google-analytics-4-web/search/index.ts +++ b/packages/browser-destinations/destinations/google-analytics-4-web/src/search/index.ts @@ -1,4 +1,4 @@ -import type { BrowserActionDefinition } from '../../../lib/browser-destinations' +import type { BrowserActionDefinition } from '@segment/browser-destination-runtime/types' import type { Settings } from '../generated-types' import type { Payload } from './generated-types' diff --git a/packages/browser-destinations/src/destinations/google-analytics-4-web/selectItem/generated-types.ts b/packages/browser-destinations/destinations/google-analytics-4-web/src/selectItem/generated-types.ts similarity index 100% rename from packages/browser-destinations/src/destinations/google-analytics-4-web/selectItem/generated-types.ts rename to packages/browser-destinations/destinations/google-analytics-4-web/src/selectItem/generated-types.ts diff --git a/packages/browser-destinations/src/destinations/google-analytics-4-web/selectItem/index.ts b/packages/browser-destinations/destinations/google-analytics-4-web/src/selectItem/index.ts similarity index 92% rename from packages/browser-destinations/src/destinations/google-analytics-4-web/selectItem/index.ts rename to packages/browser-destinations/destinations/google-analytics-4-web/src/selectItem/index.ts index 6d62ade808..d6c7f30004 100644 --- a/packages/browser-destinations/src/destinations/google-analytics-4-web/selectItem/index.ts +++ b/packages/browser-destinations/destinations/google-analytics-4-web/src/selectItem/index.ts @@ -1,4 +1,4 @@ -import type { BrowserActionDefinition } from '../../../lib/browser-destinations' +import type { BrowserActionDefinition } from '@segment/browser-destination-runtime/types' import type { Settings } from '../generated-types' import type { Payload } from './generated-types' diff --git a/packages/browser-destinations/src/destinations/google-analytics-4-web/selectPromotion/generated-types.ts b/packages/browser-destinations/destinations/google-analytics-4-web/src/selectPromotion/generated-types.ts similarity index 100% rename from packages/browser-destinations/src/destinations/google-analytics-4-web/selectPromotion/generated-types.ts rename to packages/browser-destinations/destinations/google-analytics-4-web/src/selectPromotion/generated-types.ts diff --git a/packages/browser-destinations/src/destinations/google-analytics-4-web/selectPromotion/index.ts b/packages/browser-destinations/destinations/google-analytics-4-web/src/selectPromotion/index.ts similarity index 95% rename from packages/browser-destinations/src/destinations/google-analytics-4-web/selectPromotion/index.ts rename to packages/browser-destinations/destinations/google-analytics-4-web/src/selectPromotion/index.ts index e2bcf2ab38..9384484e34 100644 --- a/packages/browser-destinations/src/destinations/google-analytics-4-web/selectPromotion/index.ts +++ b/packages/browser-destinations/destinations/google-analytics-4-web/src/selectPromotion/index.ts @@ -1,4 +1,4 @@ -import type { BrowserActionDefinition } from '../../../lib/browser-destinations' +import type { BrowserActionDefinition } from '@segment/browser-destination-runtime/types' import type { Settings } from '../generated-types' import type { Payload } from './generated-types' diff --git a/packages/browser-destinations/src/destinations/google-analytics-4-web/setConfigurationFields/generated-types.ts b/packages/browser-destinations/destinations/google-analytics-4-web/src/setConfigurationFields/generated-types.ts similarity index 100% rename from packages/browser-destinations/src/destinations/google-analytics-4-web/setConfigurationFields/generated-types.ts rename to packages/browser-destinations/destinations/google-analytics-4-web/src/setConfigurationFields/generated-types.ts diff --git a/packages/browser-destinations/src/destinations/google-analytics-4-web/setConfigurationFields/index.ts b/packages/browser-destinations/destinations/google-analytics-4-web/src/setConfigurationFields/index.ts similarity index 98% rename from packages/browser-destinations/src/destinations/google-analytics-4-web/setConfigurationFields/index.ts rename to packages/browser-destinations/destinations/google-analytics-4-web/src/setConfigurationFields/index.ts index c87d3e8ef5..78677d7241 100644 --- a/packages/browser-destinations/src/destinations/google-analytics-4-web/setConfigurationFields/index.ts +++ b/packages/browser-destinations/destinations/google-analytics-4-web/src/setConfigurationFields/index.ts @@ -1,4 +1,4 @@ -import type { BrowserActionDefinition } from '../../../lib/browser-destinations' +import type { BrowserActionDefinition } from '@segment/browser-destination-runtime/types' import type { Settings } from '../generated-types' import type { Payload } from './generated-types' import { user_id, user_properties } from '../ga4-properties' diff --git a/packages/browser-destinations/src/destinations/google-analytics-4-web/signUp/generated-types.ts b/packages/browser-destinations/destinations/google-analytics-4-web/src/signUp/generated-types.ts similarity index 100% rename from packages/browser-destinations/src/destinations/google-analytics-4-web/signUp/generated-types.ts rename to packages/browser-destinations/destinations/google-analytics-4-web/src/signUp/generated-types.ts diff --git a/packages/browser-destinations/src/destinations/google-analytics-4-web/signUp/index.ts b/packages/browser-destinations/destinations/google-analytics-4-web/src/signUp/index.ts similarity index 89% rename from packages/browser-destinations/src/destinations/google-analytics-4-web/signUp/index.ts rename to packages/browser-destinations/destinations/google-analytics-4-web/src/signUp/index.ts index db4074f3bf..eefae9248f 100644 --- a/packages/browser-destinations/src/destinations/google-analytics-4-web/signUp/index.ts +++ b/packages/browser-destinations/destinations/google-analytics-4-web/src/signUp/index.ts @@ -1,4 +1,4 @@ -import type { BrowserActionDefinition } from '../../../lib/browser-destinations' +import type { BrowserActionDefinition } from '@segment/browser-destination-runtime/types' import type { Settings } from '../generated-types' import type { Payload } from './generated-types' diff --git a/packages/browser-destinations/src/destinations/google-analytics-4-web/types.ts b/packages/browser-destinations/destinations/google-analytics-4-web/src/types.ts similarity index 100% rename from packages/browser-destinations/src/destinations/google-analytics-4-web/types.ts rename to packages/browser-destinations/destinations/google-analytics-4-web/src/types.ts diff --git a/packages/browser-destinations/src/destinations/google-analytics-4-web/viewCart/generated-types.ts b/packages/browser-destinations/destinations/google-analytics-4-web/src/viewCart/generated-types.ts similarity index 100% rename from packages/browser-destinations/src/destinations/google-analytics-4-web/viewCart/generated-types.ts rename to packages/browser-destinations/destinations/google-analytics-4-web/src/viewCart/generated-types.ts diff --git a/packages/browser-destinations/src/destinations/google-analytics-4-web/viewCart/index.ts b/packages/browser-destinations/destinations/google-analytics-4-web/src/viewCart/index.ts similarity index 91% rename from packages/browser-destinations/src/destinations/google-analytics-4-web/viewCart/index.ts rename to packages/browser-destinations/destinations/google-analytics-4-web/src/viewCart/index.ts index b7d6c48bf6..5419eda24b 100644 --- a/packages/browser-destinations/src/destinations/google-analytics-4-web/viewCart/index.ts +++ b/packages/browser-destinations/destinations/google-analytics-4-web/src/viewCart/index.ts @@ -1,4 +1,4 @@ -import type { BrowserActionDefinition } from '../../../lib/browser-destinations' +import type { BrowserActionDefinition } from '@segment/browser-destination-runtime/types' import type { Settings } from '../generated-types' import type { Payload } from './generated-types' diff --git a/packages/browser-destinations/src/destinations/google-analytics-4-web/viewItem/generated-types.ts b/packages/browser-destinations/destinations/google-analytics-4-web/src/viewItem/generated-types.ts similarity index 100% rename from packages/browser-destinations/src/destinations/google-analytics-4-web/viewItem/generated-types.ts rename to packages/browser-destinations/destinations/google-analytics-4-web/src/viewItem/generated-types.ts diff --git a/packages/browser-destinations/src/destinations/google-analytics-4-web/viewItem/index.ts b/packages/browser-destinations/destinations/google-analytics-4-web/src/viewItem/index.ts similarity index 92% rename from packages/browser-destinations/src/destinations/google-analytics-4-web/viewItem/index.ts rename to packages/browser-destinations/destinations/google-analytics-4-web/src/viewItem/index.ts index bd17b3cebc..7bdc4bb6c3 100644 --- a/packages/browser-destinations/src/destinations/google-analytics-4-web/viewItem/index.ts +++ b/packages/browser-destinations/destinations/google-analytics-4-web/src/viewItem/index.ts @@ -1,4 +1,4 @@ -import type { BrowserActionDefinition } from '../../../lib/browser-destinations' +import type { BrowserActionDefinition } from '@segment/browser-destination-runtime/types' import type { Settings } from '../generated-types' import type { Payload } from './generated-types' diff --git a/packages/browser-destinations/src/destinations/google-analytics-4-web/viewItemList/generated-types.ts b/packages/browser-destinations/destinations/google-analytics-4-web/src/viewItemList/generated-types.ts similarity index 100% rename from packages/browser-destinations/src/destinations/google-analytics-4-web/viewItemList/generated-types.ts rename to packages/browser-destinations/destinations/google-analytics-4-web/src/viewItemList/generated-types.ts diff --git a/packages/browser-destinations/src/destinations/google-analytics-4-web/viewItemList/index.ts b/packages/browser-destinations/destinations/google-analytics-4-web/src/viewItemList/index.ts similarity index 92% rename from packages/browser-destinations/src/destinations/google-analytics-4-web/viewItemList/index.ts rename to packages/browser-destinations/destinations/google-analytics-4-web/src/viewItemList/index.ts index 3663587747..207f5a00e2 100644 --- a/packages/browser-destinations/src/destinations/google-analytics-4-web/viewItemList/index.ts +++ b/packages/browser-destinations/destinations/google-analytics-4-web/src/viewItemList/index.ts @@ -1,4 +1,4 @@ -import type { BrowserActionDefinition } from '../../../lib/browser-destinations' +import type { BrowserActionDefinition } from '@segment/browser-destination-runtime/types' import type { Settings } from '../generated-types' import type { Payload } from './generated-types' diff --git a/packages/browser-destinations/src/destinations/google-analytics-4-web/viewPromotion/generated-types.ts b/packages/browser-destinations/destinations/google-analytics-4-web/src/viewPromotion/generated-types.ts similarity index 100% rename from packages/browser-destinations/src/destinations/google-analytics-4-web/viewPromotion/generated-types.ts rename to packages/browser-destinations/destinations/google-analytics-4-web/src/viewPromotion/generated-types.ts diff --git a/packages/browser-destinations/src/destinations/google-analytics-4-web/viewPromotion/index.ts b/packages/browser-destinations/destinations/google-analytics-4-web/src/viewPromotion/index.ts similarity index 95% rename from packages/browser-destinations/src/destinations/google-analytics-4-web/viewPromotion/index.ts rename to packages/browser-destinations/destinations/google-analytics-4-web/src/viewPromotion/index.ts index fe2950a56a..358b258125 100644 --- a/packages/browser-destinations/src/destinations/google-analytics-4-web/viewPromotion/index.ts +++ b/packages/browser-destinations/destinations/google-analytics-4-web/src/viewPromotion/index.ts @@ -1,4 +1,4 @@ -import type { BrowserActionDefinition } from '../../../lib/browser-destinations' +import type { BrowserActionDefinition } from '@segment/browser-destination-runtime/types' import type { Settings } from '../generated-types' import type { Payload } from './generated-types' import { diff --git a/packages/browser-destinations/destinations/google-analytics-4-web/tsconfig.json b/packages/browser-destinations/destinations/google-analytics-4-web/tsconfig.json new file mode 100644 index 0000000000..71c49219d9 --- /dev/null +++ b/packages/browser-destinations/destinations/google-analytics-4-web/tsconfig.json @@ -0,0 +1,9 @@ +{ + "extends": "../../tsconfig.build.json", + "compilerOptions": { + "rootDir": "./src", + "baseUrl": "." + }, + "include": ["src"], + "exclude": ["dist", "**/__tests__"] +} \ No newline at end of file diff --git a/packages/browser-destinations/destinations/heap/package.json b/packages/browser-destinations/destinations/heap/package.json new file mode 100644 index 0000000000..be65abb521 --- /dev/null +++ b/packages/browser-destinations/destinations/heap/package.json @@ -0,0 +1,20 @@ +{ + "name": "@segment/analytics-browser-actions-heap", + "version": "0.0.0", + "license": "MIT", + "main": "./dist/cjs", + "module": "./dist/esm", + "scripts": { + "build": "yarn build:esm && yarn build:cjs", + "build:cjs": "tsc --module commonjs --outDir ./dist/cjs", + "build:esm": "tsc --outDir ./dist/esm" + }, + "typings": "./dist/esm", + "dependencies": { + "@segment/actions-core": "^3.70.0", + "@segment/browser-destination-runtime": "^0.0.0" + }, + "peerDependencies": { + "@segment/analytics-next": "*" + } +} diff --git a/packages/browser-destinations/src/destinations/heap/__tests__/index.test.ts b/packages/browser-destinations/destinations/heap/src/__tests__/index.test.ts similarity index 100% rename from packages/browser-destinations/src/destinations/heap/__tests__/index.test.ts rename to packages/browser-destinations/destinations/heap/src/__tests__/index.test.ts diff --git a/packages/browser-destinations/src/destinations/heap/constants.ts b/packages/browser-destinations/destinations/heap/src/constants.ts similarity index 100% rename from packages/browser-destinations/src/destinations/heap/constants.ts rename to packages/browser-destinations/destinations/heap/src/constants.ts diff --git a/packages/browser-destinations/src/destinations/heap/generated-types.ts b/packages/browser-destinations/destinations/heap/src/generated-types.ts similarity index 100% rename from packages/browser-destinations/src/destinations/heap/generated-types.ts rename to packages/browser-destinations/destinations/heap/src/generated-types.ts diff --git a/packages/browser-destinations/src/destinations/heap/identifyUser/__tests__/index.test.ts b/packages/browser-destinations/destinations/heap/src/identifyUser/__tests__/index.test.ts similarity index 100% rename from packages/browser-destinations/src/destinations/heap/identifyUser/__tests__/index.test.ts rename to packages/browser-destinations/destinations/heap/src/identifyUser/__tests__/index.test.ts diff --git a/packages/browser-destinations/src/destinations/heap/identifyUser/generated-types.ts b/packages/browser-destinations/destinations/heap/src/identifyUser/generated-types.ts similarity index 100% rename from packages/browser-destinations/src/destinations/heap/identifyUser/generated-types.ts rename to packages/browser-destinations/destinations/heap/src/identifyUser/generated-types.ts diff --git a/packages/browser-destinations/src/destinations/heap/identifyUser/index.ts b/packages/browser-destinations/destinations/heap/src/identifyUser/index.ts similarity index 91% rename from packages/browser-destinations/src/destinations/heap/identifyUser/index.ts rename to packages/browser-destinations/destinations/heap/src/identifyUser/index.ts index 58f962c9fa..86df4b9dbd 100644 --- a/packages/browser-destinations/src/destinations/heap/identifyUser/index.ts +++ b/packages/browser-destinations/destinations/heap/src/identifyUser/index.ts @@ -1,4 +1,4 @@ -import type { BrowserActionDefinition } from '../../../lib/browser-destinations' +import type { BrowserActionDefinition } from '@segment/browser-destination-runtime/types' import type { Settings } from '../generated-types' import type { Payload } from './generated-types' import { HeapApi } from '../types' diff --git a/packages/browser-destinations/src/destinations/heap/index.ts b/packages/browser-destinations/destinations/heap/src/index.ts similarity index 96% rename from packages/browser-destinations/src/destinations/heap/index.ts rename to packages/browser-destinations/destinations/heap/src/index.ts index 281b62ce00..03432aaaba 100644 --- a/packages/browser-destinations/src/destinations/heap/index.ts +++ b/packages/browser-destinations/destinations/heap/src/index.ts @@ -1,6 +1,6 @@ import type { Settings } from './generated-types' -import type { BrowserDestinationDefinition } from '../../lib/browser-destinations' -import { browserDestination } from '../../runtime/shim' +import type { BrowserDestinationDefinition } from '@segment/browser-destination-runtime/types' +import { browserDestination } from '@segment/browser-destination-runtime/shim' import { HeapApi, UserConfig } from './types' import { defaultValues } from '@segment/actions-core' import trackEvent from './trackEvent' diff --git a/packages/browser-destinations/src/destinations/heap/test-utilities.ts b/packages/browser-destinations/destinations/heap/src/test-utilities.ts similarity index 94% rename from packages/browser-destinations/src/destinations/heap/test-utilities.ts rename to packages/browser-destinations/destinations/heap/src/test-utilities.ts index 98c8b332a3..1f9f03ae09 100644 --- a/packages/browser-destinations/src/destinations/heap/test-utilities.ts +++ b/packages/browser-destinations/destinations/heap/src/test-utilities.ts @@ -1,5 +1,5 @@ import { HeapApi } from './types' -import { Subscription } from '../../lib/browser-destinations' +import { Subscription } from '@segment/browser-destination-runtime/types' import nock from 'nock' export const HEAP_TEST_ENV_ID = '1' diff --git a/packages/browser-destinations/src/destinations/heap/trackEvent/__tests__/index.test.ts b/packages/browser-destinations/destinations/heap/src/trackEvent/__tests__/index.test.ts similarity index 100% rename from packages/browser-destinations/src/destinations/heap/trackEvent/__tests__/index.test.ts rename to packages/browser-destinations/destinations/heap/src/trackEvent/__tests__/index.test.ts diff --git a/packages/browser-destinations/src/destinations/heap/trackEvent/generated-types.ts b/packages/browser-destinations/destinations/heap/src/trackEvent/generated-types.ts similarity index 100% rename from packages/browser-destinations/src/destinations/heap/trackEvent/generated-types.ts rename to packages/browser-destinations/destinations/heap/src/trackEvent/generated-types.ts diff --git a/packages/browser-destinations/src/destinations/heap/trackEvent/index.ts b/packages/browser-destinations/destinations/heap/src/trackEvent/index.ts similarity index 97% rename from packages/browser-destinations/src/destinations/heap/trackEvent/index.ts rename to packages/browser-destinations/destinations/heap/src/trackEvent/index.ts index 5a04e3842c..155b15ec6d 100644 --- a/packages/browser-destinations/src/destinations/heap/trackEvent/index.ts +++ b/packages/browser-destinations/destinations/heap/src/trackEvent/index.ts @@ -1,4 +1,4 @@ -import type { BrowserActionDefinition } from '../../../lib/browser-destinations' +import type { BrowserActionDefinition } from '@segment/browser-destination-runtime/types' import type { Settings } from '../generated-types' import type { Payload } from './generated-types' import { HeapApi } from '../types' diff --git a/packages/browser-destinations/src/destinations/heap/types.ts b/packages/browser-destinations/destinations/heap/src/types.ts similarity index 100% rename from packages/browser-destinations/src/destinations/heap/types.ts rename to packages/browser-destinations/destinations/heap/src/types.ts diff --git a/packages/browser-destinations/src/destinations/heap/utils.ts b/packages/browser-destinations/destinations/heap/src/utils.ts similarity index 100% rename from packages/browser-destinations/src/destinations/heap/utils.ts rename to packages/browser-destinations/destinations/heap/src/utils.ts diff --git a/packages/browser-destinations/destinations/heap/tsconfig.json b/packages/browser-destinations/destinations/heap/tsconfig.json new file mode 100644 index 0000000000..71c49219d9 --- /dev/null +++ b/packages/browser-destinations/destinations/heap/tsconfig.json @@ -0,0 +1,9 @@ +{ + "extends": "../../tsconfig.build.json", + "compilerOptions": { + "rootDir": "./src", + "baseUrl": "." + }, + "include": ["src"], + "exclude": ["dist", "**/__tests__"] +} \ No newline at end of file diff --git a/packages/browser-destinations/destinations/hubspot-web/package.json b/packages/browser-destinations/destinations/hubspot-web/package.json new file mode 100644 index 0000000000..e381f021c3 --- /dev/null +++ b/packages/browser-destinations/destinations/hubspot-web/package.json @@ -0,0 +1,20 @@ +{ + "name": "@segment/analytics-browser-actions-hubspot", + "version": "0.0.0", + "license": "MIT", + "main": "./dist/cjs", + "module": "./dist/esm", + "scripts": { + "build": "yarn build:esm && yarn build:cjs", + "build:cjs": "tsc --module commonjs --outDir ./dist/cjs", + "build:esm": "tsc --outDir ./dist/esm" + }, + "typings": "./dist/esm", + "dependencies": { + "@segment/actions-core": "^3.70.0", + "@segment/browser-destination-runtime": "^0.0.0" + }, + "peerDependencies": { + "@segment/analytics-next": "*" + } +} diff --git a/packages/browser-destinations/src/destinations/hubspot-web/__tests__/index.test.ts b/packages/browser-destinations/destinations/hubspot-web/src/__tests__/index.test.ts similarity index 96% rename from packages/browser-destinations/src/destinations/hubspot-web/__tests__/index.test.ts rename to packages/browser-destinations/destinations/hubspot-web/src/__tests__/index.test.ts index 9a7138ea6e..fdcb5c06e0 100644 --- a/packages/browser-destinations/src/destinations/hubspot-web/__tests__/index.test.ts +++ b/packages/browser-destinations/destinations/hubspot-web/src/__tests__/index.test.ts @@ -1,4 +1,4 @@ -import { Subscription } from '../../../lib/browser-destinations' +import { Subscription } from '@segment/browser-destination-runtime/types' import { Analytics, Context } from '@segment/analytics-next' import hubspotDestination, { destination } from '../index' import nock from 'nock' diff --git a/packages/browser-destinations/src/destinations/hubspot-web/generated-types.ts b/packages/browser-destinations/destinations/hubspot-web/src/generated-types.ts similarity index 100% rename from packages/browser-destinations/src/destinations/hubspot-web/generated-types.ts rename to packages/browser-destinations/destinations/hubspot-web/src/generated-types.ts diff --git a/packages/browser-destinations/src/destinations/hubspot-web/index.ts b/packages/browser-destinations/destinations/hubspot-web/src/index.ts similarity index 95% rename from packages/browser-destinations/src/destinations/hubspot-web/index.ts rename to packages/browser-destinations/destinations/hubspot-web/src/index.ts index fa2ca9707b..94d40fea7b 100644 --- a/packages/browser-destinations/src/destinations/hubspot-web/index.ts +++ b/packages/browser-destinations/destinations/hubspot-web/src/index.ts @@ -1,6 +1,6 @@ import type { Settings } from './generated-types' -import type { BrowserDestinationDefinition } from '../../lib/browser-destinations' -import { browserDestination } from '../../runtime/shim' +import type { BrowserDestinationDefinition } from '@segment/browser-destination-runtime/types' +import { browserDestination } from '@segment/browser-destination-runtime/shim' import trackCustomBehavioralEvent from './trackCustomBehavioralEvent' diff --git a/packages/browser-destinations/src/destinations/hubspot-web/trackCustomBehavioralEvent/__tests__/index.test.ts b/packages/browser-destinations/destinations/hubspot-web/src/trackCustomBehavioralEvent/__tests__/index.test.ts similarity index 97% rename from packages/browser-destinations/src/destinations/hubspot-web/trackCustomBehavioralEvent/__tests__/index.test.ts rename to packages/browser-destinations/destinations/hubspot-web/src/trackCustomBehavioralEvent/__tests__/index.test.ts index 14e732d15b..679623cb43 100644 --- a/packages/browser-destinations/src/destinations/hubspot-web/trackCustomBehavioralEvent/__tests__/index.test.ts +++ b/packages/browser-destinations/destinations/hubspot-web/src/trackCustomBehavioralEvent/__tests__/index.test.ts @@ -1,5 +1,5 @@ import { Analytics, Context } from '@segment/analytics-next' -import { Subscription } from 'src/lib/browser-destinations' +import { Subscription } from '@segment/browser-destination-runtime' import hubspotDestination, { destination } from '../../index' import { Hubspot } from '../../types' diff --git a/packages/browser-destinations/src/destinations/hubspot-web/trackCustomBehavioralEvent/generated-types.ts b/packages/browser-destinations/destinations/hubspot-web/src/trackCustomBehavioralEvent/generated-types.ts similarity index 100% rename from packages/browser-destinations/src/destinations/hubspot-web/trackCustomBehavioralEvent/generated-types.ts rename to packages/browser-destinations/destinations/hubspot-web/src/trackCustomBehavioralEvent/generated-types.ts diff --git a/packages/browser-destinations/src/destinations/hubspot-web/trackCustomBehavioralEvent/index.ts b/packages/browser-destinations/destinations/hubspot-web/src/trackCustomBehavioralEvent/index.ts similarity index 95% rename from packages/browser-destinations/src/destinations/hubspot-web/trackCustomBehavioralEvent/index.ts rename to packages/browser-destinations/destinations/hubspot-web/src/trackCustomBehavioralEvent/index.ts index 0102519f2f..053501512f 100644 --- a/packages/browser-destinations/src/destinations/hubspot-web/trackCustomBehavioralEvent/index.ts +++ b/packages/browser-destinations/destinations/hubspot-web/src/trackCustomBehavioralEvent/index.ts @@ -1,4 +1,4 @@ -import type { BrowserActionDefinition } from '../../../lib/browser-destinations' +import type { BrowserActionDefinition } from '@segment/browser-destination-runtime/types' import type { Settings } from '../generated-types' import type { Payload } from './generated-types' import type { Hubspot } from '../types' diff --git a/packages/browser-destinations/src/destinations/hubspot-web/trackPageView/__tests__/index.test.ts b/packages/browser-destinations/destinations/hubspot-web/src/trackPageView/__tests__/index.test.ts similarity index 96% rename from packages/browser-destinations/src/destinations/hubspot-web/trackPageView/__tests__/index.test.ts rename to packages/browser-destinations/destinations/hubspot-web/src/trackPageView/__tests__/index.test.ts index 50491b110f..9f6969bfdd 100644 --- a/packages/browser-destinations/src/destinations/hubspot-web/trackPageView/__tests__/index.test.ts +++ b/packages/browser-destinations/destinations/hubspot-web/src/trackPageView/__tests__/index.test.ts @@ -1,5 +1,5 @@ import { Analytics, Context } from '@segment/analytics-next' -import { Subscription } from 'src/lib/browser-destinations' +import { Subscription } from '@segment/browser-destination-runtime' import hubspotDestination, { destination } from '../../index' import { Hubspot } from '../../types' diff --git a/packages/browser-destinations/src/destinations/hubspot-web/trackPageView/generated-types.ts b/packages/browser-destinations/destinations/hubspot-web/src/trackPageView/generated-types.ts similarity index 100% rename from packages/browser-destinations/src/destinations/hubspot-web/trackPageView/generated-types.ts rename to packages/browser-destinations/destinations/hubspot-web/src/trackPageView/generated-types.ts diff --git a/packages/browser-destinations/src/destinations/hubspot-web/trackPageView/index.ts b/packages/browser-destinations/destinations/hubspot-web/src/trackPageView/index.ts similarity index 89% rename from packages/browser-destinations/src/destinations/hubspot-web/trackPageView/index.ts rename to packages/browser-destinations/destinations/hubspot-web/src/trackPageView/index.ts index c64a8ebd43..d506f37f27 100644 --- a/packages/browser-destinations/src/destinations/hubspot-web/trackPageView/index.ts +++ b/packages/browser-destinations/destinations/hubspot-web/src/trackPageView/index.ts @@ -1,4 +1,4 @@ -import type { BrowserActionDefinition } from '../../../lib/browser-destinations' +import type { BrowserActionDefinition } from '@segment/browser-destination-runtime/types' import type { Settings } from '../generated-types' import { Hubspot } from '../types' import type { Payload } from './generated-types' diff --git a/packages/browser-destinations/src/destinations/hubspot-web/types.ts b/packages/browser-destinations/destinations/hubspot-web/src/types.ts similarity index 100% rename from packages/browser-destinations/src/destinations/hubspot-web/types.ts rename to packages/browser-destinations/destinations/hubspot-web/src/types.ts diff --git a/packages/browser-destinations/src/destinations/hubspot-web/upsertContact/__tests__/index.test.ts b/packages/browser-destinations/destinations/hubspot-web/src/upsertContact/__tests__/index.test.ts similarity index 98% rename from packages/browser-destinations/src/destinations/hubspot-web/upsertContact/__tests__/index.test.ts rename to packages/browser-destinations/destinations/hubspot-web/src/upsertContact/__tests__/index.test.ts index a04ce55924..9aea19304f 100644 --- a/packages/browser-destinations/src/destinations/hubspot-web/upsertContact/__tests__/index.test.ts +++ b/packages/browser-destinations/destinations/hubspot-web/src/upsertContact/__tests__/index.test.ts @@ -1,5 +1,5 @@ import { Analytics, Context } from '@segment/analytics-next' -import { Subscription } from 'src/lib/browser-destinations' +import { Subscription } from '@segment/browser-destination-runtime' import hubspotDestination, { destination } from '../../index' import { Hubspot } from '../../types' diff --git a/packages/browser-destinations/src/destinations/hubspot-web/upsertContact/generated-types.ts b/packages/browser-destinations/destinations/hubspot-web/src/upsertContact/generated-types.ts similarity index 100% rename from packages/browser-destinations/src/destinations/hubspot-web/upsertContact/generated-types.ts rename to packages/browser-destinations/destinations/hubspot-web/src/upsertContact/generated-types.ts diff --git a/packages/browser-destinations/src/destinations/hubspot-web/upsertContact/index.ts b/packages/browser-destinations/destinations/hubspot-web/src/upsertContact/index.ts similarity index 97% rename from packages/browser-destinations/src/destinations/hubspot-web/upsertContact/index.ts rename to packages/browser-destinations/destinations/hubspot-web/src/upsertContact/index.ts index 57c1ac2a9e..123c0b050f 100644 --- a/packages/browser-destinations/src/destinations/hubspot-web/upsertContact/index.ts +++ b/packages/browser-destinations/destinations/hubspot-web/src/upsertContact/index.ts @@ -1,4 +1,4 @@ -import type { BrowserActionDefinition } from '../../../lib/browser-destinations' +import type { BrowserActionDefinition } from '@segment/browser-destination-runtime/types' import type { Settings } from '../generated-types' import type { Payload } from './generated-types' import { Hubspot } from '../types' diff --git a/packages/browser-destinations/src/destinations/hubspot-web/utils/flatten.ts b/packages/browser-destinations/destinations/hubspot-web/src/utils/flatten.ts similarity index 100% rename from packages/browser-destinations/src/destinations/hubspot-web/utils/flatten.ts rename to packages/browser-destinations/destinations/hubspot-web/src/utils/flatten.ts diff --git a/packages/browser-destinations/destinations/hubspot-web/tsconfig.json b/packages/browser-destinations/destinations/hubspot-web/tsconfig.json new file mode 100644 index 0000000000..71c49219d9 --- /dev/null +++ b/packages/browser-destinations/destinations/hubspot-web/tsconfig.json @@ -0,0 +1,9 @@ +{ + "extends": "../../tsconfig.build.json", + "compilerOptions": { + "rootDir": "./src", + "baseUrl": "." + }, + "include": ["src"], + "exclude": ["dist", "**/__tests__"] +} \ No newline at end of file diff --git a/packages/browser-destinations/destinations/intercom/package.json b/packages/browser-destinations/destinations/intercom/package.json new file mode 100644 index 0000000000..ec61488c6a --- /dev/null +++ b/packages/browser-destinations/destinations/intercom/package.json @@ -0,0 +1,21 @@ +{ + "name": "@segment/analytics-browser-actions-intercom", + "version": "0.0.0", + "license": "MIT", + "main": "./dist/cjs", + "module": "./dist/esm", + "scripts": { + "build": "yarn build:esm && yarn build:cjs", + "build:cjs": "tsc --module commonjs --outDir ./dist/cjs", + "build:esm": "tsc --outDir ./dist/esm" + }, + "typings": "./dist/esm", + "dependencies": { + "@segment/actions-shared": "^1.52.0", + "@segment/actions-core": "^3.70.0", + "@segment/browser-destination-runtime": "^0.0.0" + }, + "peerDependencies": { + "@segment/analytics-next": "*" + } +} diff --git a/packages/browser-destinations/src/destinations/intercom/__tests__/index.test.ts b/packages/browser-destinations/destinations/intercom/src/__tests__/index.test.ts similarity index 94% rename from packages/browser-destinations/src/destinations/intercom/__tests__/index.test.ts rename to packages/browser-destinations/destinations/intercom/src/__tests__/index.test.ts index 233645578c..769339b6ac 100644 --- a/packages/browser-destinations/src/destinations/intercom/__tests__/index.test.ts +++ b/packages/browser-destinations/destinations/intercom/src/__tests__/index.test.ts @@ -1,4 +1,4 @@ -import { Subscription } from '../../../lib/browser-destinations' +import { Subscription } from '@segment/browser-destination-runtime/types' import { Analytics, Context } from '@segment/analytics-next' import intercomDestination, { destination } from '../index' diff --git a/packages/browser-destinations/src/destinations/intercom/__tests__/utils.test.ts b/packages/browser-destinations/destinations/intercom/src/__tests__/utils.test.ts similarity index 100% rename from packages/browser-destinations/src/destinations/intercom/__tests__/utils.test.ts rename to packages/browser-destinations/destinations/intercom/src/__tests__/utils.test.ts diff --git a/packages/browser-destinations/src/destinations/intercom/api.ts b/packages/browser-destinations/destinations/intercom/src/api.ts similarity index 100% rename from packages/browser-destinations/src/destinations/intercom/api.ts rename to packages/browser-destinations/destinations/intercom/src/api.ts diff --git a/packages/browser-destinations/src/destinations/intercom/generated-types.ts b/packages/browser-destinations/destinations/intercom/src/generated-types.ts similarity index 100% rename from packages/browser-destinations/src/destinations/intercom/generated-types.ts rename to packages/browser-destinations/destinations/intercom/src/generated-types.ts diff --git a/packages/browser-destinations/src/destinations/intercom/identifyCompany/__tests__/index.test.ts b/packages/browser-destinations/destinations/intercom/src/identifyCompany/__tests__/index.test.ts similarity index 99% rename from packages/browser-destinations/src/destinations/intercom/identifyCompany/__tests__/index.test.ts rename to packages/browser-destinations/destinations/intercom/src/identifyCompany/__tests__/index.test.ts index 1e4a01a2b8..d975260697 100644 --- a/packages/browser-destinations/src/destinations/intercom/identifyCompany/__tests__/index.test.ts +++ b/packages/browser-destinations/destinations/intercom/src/identifyCompany/__tests__/index.test.ts @@ -1,5 +1,5 @@ import { Analytics, Context } from '@segment/analytics-next' -import { Subscription } from 'src/lib/browser-destinations' +import { Subscription } from '@segment/browser-destination-runtime' import intercomDestination, { destination } from '../../index' const subscriptions: Subscription[] = [ diff --git a/packages/browser-destinations/src/destinations/intercom/identifyCompany/generated-types.ts b/packages/browser-destinations/destinations/intercom/src/identifyCompany/generated-types.ts similarity index 100% rename from packages/browser-destinations/src/destinations/intercom/identifyCompany/generated-types.ts rename to packages/browser-destinations/destinations/intercom/src/identifyCompany/generated-types.ts diff --git a/packages/browser-destinations/src/destinations/intercom/identifyCompany/index.ts b/packages/browser-destinations/destinations/intercom/src/identifyCompany/index.ts similarity index 97% rename from packages/browser-destinations/src/destinations/intercom/identifyCompany/index.ts rename to packages/browser-destinations/destinations/intercom/src/identifyCompany/index.ts index 8d95e7d38c..9afaf91ae9 100644 --- a/packages/browser-destinations/src/destinations/intercom/identifyCompany/index.ts +++ b/packages/browser-destinations/destinations/intercom/src/identifyCompany/index.ts @@ -1,5 +1,5 @@ import { InputField } from '@segment/actions-core' -import type { BrowserActionDefinition } from '../../../lib/browser-destinations' +import type { BrowserActionDefinition } from '@segment/browser-destination-runtime/types' import { Intercom } from '../api' import type { Settings } from '../generated-types' import { getCompanyProperties } from '../sharedCompanyProperties' diff --git a/packages/browser-destinations/src/destinations/intercom/identifyUser/__tests__/index.test.ts b/packages/browser-destinations/destinations/intercom/src/identifyUser/__tests__/index.test.ts similarity index 99% rename from packages/browser-destinations/src/destinations/intercom/identifyUser/__tests__/index.test.ts rename to packages/browser-destinations/destinations/intercom/src/identifyUser/__tests__/index.test.ts index cf0ccb5e43..712f6e17c7 100644 --- a/packages/browser-destinations/src/destinations/intercom/identifyUser/__tests__/index.test.ts +++ b/packages/browser-destinations/destinations/intercom/src/identifyUser/__tests__/index.test.ts @@ -1,5 +1,5 @@ import { Analytics, Context } from '@segment/analytics-next' -import { Subscription } from 'src/lib/browser-destinations' +import { Subscription } from '@segment/browser-destination-runtime' import intercomDestination, { destination } from '../../index' import { convertDateToUnix } from '../../utils' diff --git a/packages/browser-destinations/src/destinations/intercom/identifyUser/generated-types.ts b/packages/browser-destinations/destinations/intercom/src/identifyUser/generated-types.ts similarity index 100% rename from packages/browser-destinations/src/destinations/intercom/identifyUser/generated-types.ts rename to packages/browser-destinations/destinations/intercom/src/identifyUser/generated-types.ts diff --git a/packages/browser-destinations/src/destinations/intercom/identifyUser/index.ts b/packages/browser-destinations/destinations/intercom/src/identifyUser/index.ts similarity index 98% rename from packages/browser-destinations/src/destinations/intercom/identifyUser/index.ts rename to packages/browser-destinations/destinations/intercom/src/identifyUser/index.ts index 79a4fcdd65..574dcb7e78 100644 --- a/packages/browser-destinations/src/destinations/intercom/identifyUser/index.ts +++ b/packages/browser-destinations/destinations/intercom/src/identifyUser/index.ts @@ -1,5 +1,5 @@ import { InputField } from '@segment/actions-core' -import type { BrowserActionDefinition } from '../../../lib/browser-destinations' +import type { BrowserActionDefinition } from '@segment/browser-destination-runtime/types' import { Intercom } from '../api' import type { Settings } from '../generated-types' import { getCompanyProperties } from '../sharedCompanyProperties' diff --git a/packages/browser-destinations/src/destinations/intercom/index.ts b/packages/browser-destinations/destinations/intercom/src/index.ts similarity index 94% rename from packages/browser-destinations/src/destinations/intercom/index.ts rename to packages/browser-destinations/destinations/intercom/src/index.ts index e57622b6f8..057ad4abc8 100644 --- a/packages/browser-destinations/src/destinations/intercom/index.ts +++ b/packages/browser-destinations/destinations/intercom/src/index.ts @@ -1,6 +1,6 @@ import type { Settings } from './generated-types' -import type { BrowserDestinationDefinition } from '../../lib/browser-destinations' -import { browserDestination } from '../../runtime/shim' +import type { BrowserDestinationDefinition } from '@segment/browser-destination-runtime/types' +import { browserDestination } from '@segment/browser-destination-runtime/shim' import { initialBoot, initScript } from './init-script' import { Intercom } from './api' diff --git a/packages/browser-destinations/src/destinations/intercom/init-script.ts b/packages/browser-destinations/destinations/intercom/src/init-script.ts similarity index 100% rename from packages/browser-destinations/src/destinations/intercom/init-script.ts rename to packages/browser-destinations/destinations/intercom/src/init-script.ts diff --git a/packages/browser-destinations/src/destinations/intercom/sharedCompanyProperties.ts b/packages/browser-destinations/destinations/intercom/src/sharedCompanyProperties.ts similarity index 100% rename from packages/browser-destinations/src/destinations/intercom/sharedCompanyProperties.ts rename to packages/browser-destinations/destinations/intercom/src/sharedCompanyProperties.ts diff --git a/packages/browser-destinations/src/destinations/intercom/trackEvent/__tests__/index.test.ts b/packages/browser-destinations/destinations/intercom/src/trackEvent/__tests__/index.test.ts similarity index 98% rename from packages/browser-destinations/src/destinations/intercom/trackEvent/__tests__/index.test.ts rename to packages/browser-destinations/destinations/intercom/src/trackEvent/__tests__/index.test.ts index 047cd2758d..7dc519c12b 100644 --- a/packages/browser-destinations/src/destinations/intercom/trackEvent/__tests__/index.test.ts +++ b/packages/browser-destinations/destinations/intercom/src/trackEvent/__tests__/index.test.ts @@ -1,5 +1,5 @@ import { Analytics, Context } from '@segment/analytics-next' -import { Subscription } from 'src/lib/browser-destinations' +import { Subscription } from '@segment/browser-destination-runtime' import intercomDestination, { destination } from '../../index' const subscriptions: Subscription[] = [ diff --git a/packages/browser-destinations/src/destinations/intercom/trackEvent/generated-types.ts b/packages/browser-destinations/destinations/intercom/src/trackEvent/generated-types.ts similarity index 100% rename from packages/browser-destinations/src/destinations/intercom/trackEvent/generated-types.ts rename to packages/browser-destinations/destinations/intercom/src/trackEvent/generated-types.ts diff --git a/packages/browser-destinations/src/destinations/intercom/trackEvent/index.ts b/packages/browser-destinations/destinations/intercom/src/trackEvent/index.ts similarity index 96% rename from packages/browser-destinations/src/destinations/intercom/trackEvent/index.ts rename to packages/browser-destinations/destinations/intercom/src/trackEvent/index.ts index 2b62829909..51b805c026 100644 --- a/packages/browser-destinations/src/destinations/intercom/trackEvent/index.ts +++ b/packages/browser-destinations/destinations/intercom/src/trackEvent/index.ts @@ -1,4 +1,4 @@ -import type { BrowserActionDefinition } from '../../../lib/browser-destinations' +import type { BrowserActionDefinition } from '@segment/browser-destination-runtime/types' import { Intercom } from '../api' import type { Settings } from '../generated-types' import { filterCustomTraits, isEmpty } from '../utils' diff --git a/packages/browser-destinations/src/destinations/intercom/utils.ts b/packages/browser-destinations/destinations/intercom/src/utils.ts similarity index 100% rename from packages/browser-destinations/src/destinations/intercom/utils.ts rename to packages/browser-destinations/destinations/intercom/src/utils.ts diff --git a/packages/browser-destinations/destinations/intercom/tsconfig.json b/packages/browser-destinations/destinations/intercom/tsconfig.json new file mode 100644 index 0000000000..71c49219d9 --- /dev/null +++ b/packages/browser-destinations/destinations/intercom/tsconfig.json @@ -0,0 +1,9 @@ +{ + "extends": "../../tsconfig.build.json", + "compilerOptions": { + "rootDir": "./src", + "baseUrl": "." + }, + "include": ["src"], + "exclude": ["dist", "**/__tests__"] +} \ No newline at end of file diff --git a/packages/browser-destinations/destinations/iterate/package.json b/packages/browser-destinations/destinations/iterate/package.json new file mode 100644 index 0000000000..7ddaf61a4a --- /dev/null +++ b/packages/browser-destinations/destinations/iterate/package.json @@ -0,0 +1,20 @@ +{ + "name": "@segment/analytics-browser-actions-iterate", + "version": "0.0.0", + "license": "MIT", + "main": "./dist/cjs", + "module": "./dist/esm", + "scripts": { + "build": "yarn build:esm && yarn build:cjs", + "build:cjs": "tsc --module commonjs --outDir ./dist/cjs", + "build:esm": "tsc --outDir ./dist/esm" + }, + "typings": "./dist/esm", + "dependencies": { + "@segment/actions-core": "^3.70.0", + "@segment/browser-destination-runtime": "^0.0.0" + }, + "peerDependencies": { + "@segment/analytics-next": "*" + } +} diff --git a/packages/browser-destinations/src/destinations/iterate/__tests__/index.test.ts b/packages/browser-destinations/destinations/iterate/src/__tests__/index.test.ts similarity index 95% rename from packages/browser-destinations/src/destinations/iterate/__tests__/index.test.ts rename to packages/browser-destinations/destinations/iterate/src/__tests__/index.test.ts index 1a000d140a..948fd33908 100644 --- a/packages/browser-destinations/src/destinations/iterate/__tests__/index.test.ts +++ b/packages/browser-destinations/destinations/iterate/src/__tests__/index.test.ts @@ -1,6 +1,6 @@ import { Analytics, Context } from '@segment/analytics-next' import iterateDestination, { destination } from '../index' -import { Subscription } from '../../../lib/browser-destinations' +import { Subscription } from '@segment/browser-destination-runtime/types' const subscriptions: Subscription[] = [ { diff --git a/packages/browser-destinations/src/destinations/iterate/generated-types.ts b/packages/browser-destinations/destinations/iterate/src/generated-types.ts similarity index 100% rename from packages/browser-destinations/src/destinations/iterate/generated-types.ts rename to packages/browser-destinations/destinations/iterate/src/generated-types.ts diff --git a/packages/browser-destinations/src/destinations/iterate/identifyUser/__tests__/index.test.ts b/packages/browser-destinations/destinations/iterate/src/identifyUser/__tests__/index.test.ts similarity index 100% rename from packages/browser-destinations/src/destinations/iterate/identifyUser/__tests__/index.test.ts rename to packages/browser-destinations/destinations/iterate/src/identifyUser/__tests__/index.test.ts diff --git a/packages/browser-destinations/src/destinations/iterate/identifyUser/generated-types.ts b/packages/browser-destinations/destinations/iterate/src/identifyUser/generated-types.ts similarity index 100% rename from packages/browser-destinations/src/destinations/iterate/identifyUser/generated-types.ts rename to packages/browser-destinations/destinations/iterate/src/identifyUser/generated-types.ts diff --git a/packages/browser-destinations/src/destinations/iterate/identifyUser/index.ts b/packages/browser-destinations/destinations/iterate/src/identifyUser/index.ts similarity index 91% rename from packages/browser-destinations/src/destinations/iterate/identifyUser/index.ts rename to packages/browser-destinations/destinations/iterate/src/identifyUser/index.ts index 09cd215f74..5d02d16e19 100644 --- a/packages/browser-destinations/src/destinations/iterate/identifyUser/index.ts +++ b/packages/browser-destinations/destinations/iterate/src/identifyUser/index.ts @@ -1,4 +1,4 @@ -import type { BrowserActionDefinition } from '../../../lib/browser-destinations' +import type { BrowserActionDefinition } from '@segment/browser-destination-runtime/types' import type { Settings } from '../generated-types' import type { Payload } from './generated-types' import { Iterate as IterateClient, Command } from '../types' diff --git a/packages/browser-destinations/src/destinations/iterate/index.ts b/packages/browser-destinations/destinations/iterate/src/index.ts similarity index 92% rename from packages/browser-destinations/src/destinations/iterate/index.ts rename to packages/browser-destinations/destinations/iterate/src/index.ts index b68387b827..17c47c3936 100644 --- a/packages/browser-destinations/src/destinations/iterate/index.ts +++ b/packages/browser-destinations/destinations/iterate/src/index.ts @@ -1,5 +1,5 @@ -import type { BrowserDestinationDefinition } from '../../lib/browser-destinations' -import { browserDestination } from '../../runtime/shim' +import type { BrowserDestinationDefinition } from '@segment/browser-destination-runtime/types' +import { browserDestination } from '@segment/browser-destination-runtime/shim' import type { Settings } from './generated-types' import { Iterate, IterateApi, IterateSettings } from './types' import { defaultValues } from '@segment/actions-core' diff --git a/packages/browser-destinations/src/destinations/iterate/trackEvent/__tests__/index.test.ts b/packages/browser-destinations/destinations/iterate/src/trackEvent/__tests__/index.test.ts similarity index 100% rename from packages/browser-destinations/src/destinations/iterate/trackEvent/__tests__/index.test.ts rename to packages/browser-destinations/destinations/iterate/src/trackEvent/__tests__/index.test.ts diff --git a/packages/browser-destinations/src/destinations/iterate/trackEvent/generated-types.ts b/packages/browser-destinations/destinations/iterate/src/trackEvent/generated-types.ts similarity index 100% rename from packages/browser-destinations/src/destinations/iterate/trackEvent/generated-types.ts rename to packages/browser-destinations/destinations/iterate/src/trackEvent/generated-types.ts diff --git a/packages/browser-destinations/src/destinations/iterate/trackEvent/index.ts b/packages/browser-destinations/destinations/iterate/src/trackEvent/index.ts similarity index 87% rename from packages/browser-destinations/src/destinations/iterate/trackEvent/index.ts rename to packages/browser-destinations/destinations/iterate/src/trackEvent/index.ts index c35202196a..133369c053 100644 --- a/packages/browser-destinations/src/destinations/iterate/trackEvent/index.ts +++ b/packages/browser-destinations/destinations/iterate/src/trackEvent/index.ts @@ -1,4 +1,4 @@ -import type { BrowserActionDefinition } from '../../../lib/browser-destinations' +import type { BrowserActionDefinition } from '@segment/browser-destination-runtime/types' import type { Settings } from '../generated-types' import type { Payload } from './generated-types' import { Iterate as IterateClient, Command } from '../types' diff --git a/packages/browser-destinations/src/destinations/iterate/types.ts b/packages/browser-destinations/destinations/iterate/src/types.ts similarity index 100% rename from packages/browser-destinations/src/destinations/iterate/types.ts rename to packages/browser-destinations/destinations/iterate/src/types.ts diff --git a/packages/browser-destinations/destinations/iterate/tsconfig.json b/packages/browser-destinations/destinations/iterate/tsconfig.json new file mode 100644 index 0000000000..71c49219d9 --- /dev/null +++ b/packages/browser-destinations/destinations/iterate/tsconfig.json @@ -0,0 +1,9 @@ +{ + "extends": "../../tsconfig.build.json", + "compilerOptions": { + "rootDir": "./src", + "baseUrl": "." + }, + "include": ["src"], + "exclude": ["dist", "**/__tests__"] +} \ No newline at end of file diff --git a/packages/browser-destinations/destinations/koala/package.json b/packages/browser-destinations/destinations/koala/package.json new file mode 100644 index 0000000000..65a15e9504 --- /dev/null +++ b/packages/browser-destinations/destinations/koala/package.json @@ -0,0 +1,20 @@ +{ + "name": "@segment/analytics-browser-actions-koala", + "version": "0.0.0", + "license": "MIT", + "main": "./dist/cjs", + "module": "./dist/esm", + "scripts": { + "build": "yarn build:esm && yarn build:cjs", + "build:cjs": "tsc --module commonjs --outDir ./dist/cjs", + "build:esm": "tsc --outDir ./dist/esm" + }, + "typings": "./dist/esm", + "dependencies": { + "@segment/actions-core": "^3.70.0", + "@segment/browser-destination-runtime": "^0.0.0" + }, + "peerDependencies": { + "@segment/analytics-next": "*" + } +} diff --git a/packages/browser-destinations/src/destinations/koala/generated-types.ts b/packages/browser-destinations/destinations/koala/src/generated-types.ts similarity index 100% rename from packages/browser-destinations/src/destinations/koala/generated-types.ts rename to packages/browser-destinations/destinations/koala/src/generated-types.ts diff --git a/packages/browser-destinations/src/destinations/koala/identifyVisitor/__tests__/index.test.ts b/packages/browser-destinations/destinations/koala/src/identifyVisitor/__tests__/index.test.ts similarity index 87% rename from packages/browser-destinations/src/destinations/koala/identifyVisitor/__tests__/index.test.ts rename to packages/browser-destinations/destinations/koala/src/identifyVisitor/__tests__/index.test.ts index 9c21a443ea..87b79b23c9 100644 --- a/packages/browser-destinations/src/destinations/koala/identifyVisitor/__tests__/index.test.ts +++ b/packages/browser-destinations/destinations/koala/src/identifyVisitor/__tests__/index.test.ts @@ -1,9 +1,9 @@ -import type { Subscription } from '../../../../lib/browser-destinations' +import type { Subscription } from '@segment/browser-destination-runtime/types' import { Analytics, Context } from '@segment/analytics-next' import KoalaDestination, { destination } from '../../index' -import { loadScript } from '../../../../runtime/load-script' -jest.mock('../../../../runtime/load-script') +import { loadScript } from '@segment/browser-destination-runtime/load-script' +jest.mock('@segment/browser-destination-runtime/load-script') beforeEach(async () => { ;(loadScript as jest.Mock).mockResolvedValue(true) }) diff --git a/packages/browser-destinations/src/destinations/koala/identifyVisitor/generated-types.ts b/packages/browser-destinations/destinations/koala/src/identifyVisitor/generated-types.ts similarity index 100% rename from packages/browser-destinations/src/destinations/koala/identifyVisitor/generated-types.ts rename to packages/browser-destinations/destinations/koala/src/identifyVisitor/generated-types.ts diff --git a/packages/browser-destinations/src/destinations/koala/identifyVisitor/index.ts b/packages/browser-destinations/destinations/koala/src/identifyVisitor/index.ts similarity index 89% rename from packages/browser-destinations/src/destinations/koala/identifyVisitor/index.ts rename to packages/browser-destinations/destinations/koala/src/identifyVisitor/index.ts index 5a03dda7e8..390b15cbd7 100644 --- a/packages/browser-destinations/src/destinations/koala/identifyVisitor/index.ts +++ b/packages/browser-destinations/destinations/koala/src/identifyVisitor/index.ts @@ -1,4 +1,4 @@ -import type { BrowserActionDefinition } from '../../../lib/browser-destinations' +import type { BrowserActionDefinition } from '@segment/browser-destination-runtime/types' import type { Settings } from '../generated-types' import type { Payload } from './generated-types' import type { Koala } from '../types' diff --git a/packages/browser-destinations/src/destinations/koala/index.ts b/packages/browser-destinations/destinations/koala/src/index.ts similarity index 90% rename from packages/browser-destinations/src/destinations/koala/index.ts rename to packages/browser-destinations/destinations/koala/src/index.ts index 2d5bc42cd4..bcfea0ff04 100644 --- a/packages/browser-destinations/src/destinations/koala/index.ts +++ b/packages/browser-destinations/destinations/koala/src/index.ts @@ -1,8 +1,8 @@ import type { Settings } from './generated-types' -import type { BrowserDestinationDefinition } from '../../lib/browser-destinations' +import type { BrowserDestinationDefinition } from '@segment/browser-destination-runtime/types' import type { KoalaSDK, Koala } from './types' import { defaultValues } from '@segment/actions-core' -import { browserDestination } from '../../runtime/shim' +import { browserDestination } from '@segment/browser-destination-runtime/shim' import { initScript } from './init-script' import trackEvent from './trackEvent' import identifyVisitor from './identifyVisitor' diff --git a/packages/browser-destinations/src/destinations/koala/init-script.ts b/packages/browser-destinations/destinations/koala/src/init-script.ts similarity index 100% rename from packages/browser-destinations/src/destinations/koala/init-script.ts rename to packages/browser-destinations/destinations/koala/src/init-script.ts diff --git a/packages/browser-destinations/src/destinations/koala/trackEvent/__tests__/index.test.ts b/packages/browser-destinations/destinations/koala/src/trackEvent/__tests__/index.test.ts similarity index 88% rename from packages/browser-destinations/src/destinations/koala/trackEvent/__tests__/index.test.ts rename to packages/browser-destinations/destinations/koala/src/trackEvent/__tests__/index.test.ts index 68ac1c16e6..dfc33cd984 100644 --- a/packages/browser-destinations/src/destinations/koala/trackEvent/__tests__/index.test.ts +++ b/packages/browser-destinations/destinations/koala/src/trackEvent/__tests__/index.test.ts @@ -1,9 +1,9 @@ -import type { Subscription } from '../../../../lib/browser-destinations' +import type { Subscription } from '@segment/browser-destination-runtime/types' import { Analytics, Context } from '@segment/analytics-next' import KoalaDestination, { destination } from '../../index' -import { loadScript } from '../../../../runtime/load-script' -jest.mock('../../../../runtime/load-script') +import { loadScript } from '@segment/browser-destination-runtime/load-script' +jest.mock('@segment/browser-destination-runtime/load-script') beforeEach(async () => { ;(loadScript as jest.Mock).mockResolvedValue(true) }) diff --git a/packages/browser-destinations/src/destinations/koala/trackEvent/generated-types.ts b/packages/browser-destinations/destinations/koala/src/trackEvent/generated-types.ts similarity index 100% rename from packages/browser-destinations/src/destinations/koala/trackEvent/generated-types.ts rename to packages/browser-destinations/destinations/koala/src/trackEvent/generated-types.ts diff --git a/packages/browser-destinations/src/destinations/koala/trackEvent/index.ts b/packages/browser-destinations/destinations/koala/src/trackEvent/index.ts similarity index 91% rename from packages/browser-destinations/src/destinations/koala/trackEvent/index.ts rename to packages/browser-destinations/destinations/koala/src/trackEvent/index.ts index 14b6bfaa92..81c990fef9 100644 --- a/packages/browser-destinations/src/destinations/koala/trackEvent/index.ts +++ b/packages/browser-destinations/destinations/koala/src/trackEvent/index.ts @@ -1,4 +1,4 @@ -import type { BrowserActionDefinition } from '../../../lib/browser-destinations' +import type { BrowserActionDefinition } from '@segment/browser-destination-runtime/types' import type { Settings } from '../generated-types' import type { Payload } from './generated-types' import type { Koala } from '../types' diff --git a/packages/browser-destinations/src/destinations/koala/types.ts b/packages/browser-destinations/destinations/koala/src/types.ts similarity index 100% rename from packages/browser-destinations/src/destinations/koala/types.ts rename to packages/browser-destinations/destinations/koala/src/types.ts diff --git a/packages/browser-destinations/destinations/koala/tsconfig.json b/packages/browser-destinations/destinations/koala/tsconfig.json new file mode 100644 index 0000000000..71c49219d9 --- /dev/null +++ b/packages/browser-destinations/destinations/koala/tsconfig.json @@ -0,0 +1,9 @@ +{ + "extends": "../../tsconfig.build.json", + "compilerOptions": { + "rootDir": "./src", + "baseUrl": "." + }, + "include": ["src"], + "exclude": ["dist", "**/__tests__"] +} \ No newline at end of file diff --git a/packages/browser-destinations/destinations/logrocket/package.json b/packages/browser-destinations/destinations/logrocket/package.json new file mode 100644 index 0000000000..76788ebe7a --- /dev/null +++ b/packages/browser-destinations/destinations/logrocket/package.json @@ -0,0 +1,21 @@ +{ + "name": "@segment/analytics-browser-actions-logrocket", + "version": "0.0.0", + "license": "MIT", + "main": "./dist/cjs", + "module": "./dist/esm", + "scripts": { + "build": "yarn build:esm && yarn build:cjs", + "build:cjs": "tsc --module commonjs --outDir ./dist/cjs", + "build:esm": "tsc --outDir ./dist/esm" + }, + "typings": "./dist/esm", + "dependencies": { + "@segment/actions-core": "^3.70.0", + "@segment/browser-destination-runtime": "^0.0.0", + "logrocket": "^3.0.1" + }, + "peerDependencies": { + "@segment/analytics-next": "*" + } +} diff --git a/packages/browser-destinations/src/destinations/logrocket/__tests__/index.test.ts b/packages/browser-destinations/destinations/logrocket/src/__tests__/index.test.ts similarity index 100% rename from packages/browser-destinations/src/destinations/logrocket/__tests__/index.test.ts rename to packages/browser-destinations/destinations/logrocket/src/__tests__/index.test.ts diff --git a/packages/browser-destinations/src/destinations/logrocket/generated-types.ts b/packages/browser-destinations/destinations/logrocket/src/generated-types.ts similarity index 100% rename from packages/browser-destinations/src/destinations/logrocket/generated-types.ts rename to packages/browser-destinations/destinations/logrocket/src/generated-types.ts diff --git a/packages/browser-destinations/src/destinations/logrocket/identify/__tests__/index.test.ts b/packages/browser-destinations/destinations/logrocket/src/identify/__tests__/index.test.ts similarity index 100% rename from packages/browser-destinations/src/destinations/logrocket/identify/__tests__/index.test.ts rename to packages/browser-destinations/destinations/logrocket/src/identify/__tests__/index.test.ts diff --git a/packages/browser-destinations/src/destinations/logrocket/identify/generated-types.ts b/packages/browser-destinations/destinations/logrocket/src/identify/generated-types.ts similarity index 100% rename from packages/browser-destinations/src/destinations/logrocket/identify/generated-types.ts rename to packages/browser-destinations/destinations/logrocket/src/identify/generated-types.ts diff --git a/packages/browser-destinations/src/destinations/logrocket/identify/index.ts b/packages/browser-destinations/destinations/logrocket/src/identify/index.ts similarity index 92% rename from packages/browser-destinations/src/destinations/logrocket/identify/index.ts rename to packages/browser-destinations/destinations/logrocket/src/identify/index.ts index 5a9498d252..07c8e24087 100644 --- a/packages/browser-destinations/src/destinations/logrocket/identify/index.ts +++ b/packages/browser-destinations/destinations/logrocket/src/identify/index.ts @@ -1,4 +1,4 @@ -import type { BrowserActionDefinition } from '../../../lib/browser-destinations' +import type { BrowserActionDefinition } from '@segment/browser-destination-runtime/types' import type { Settings } from '../generated-types' import type { Payload } from './generated-types' import type { LR } from '../types' diff --git a/packages/browser-destinations/src/destinations/logrocket/index.ts b/packages/browser-destinations/destinations/logrocket/src/index.ts similarity index 93% rename from packages/browser-destinations/src/destinations/logrocket/index.ts rename to packages/browser-destinations/destinations/logrocket/src/index.ts index 29e193ed0e..b1ce85de0c 100644 --- a/packages/browser-destinations/src/destinations/logrocket/index.ts +++ b/packages/browser-destinations/destinations/logrocket/src/index.ts @@ -1,7 +1,7 @@ import { LR } from './types' import type { Settings } from './generated-types' -import type { BrowserDestinationDefinition } from '../../lib/browser-destinations' -import { browserDestination } from '../../runtime/shim' +import type { BrowserDestinationDefinition } from '@segment/browser-destination-runtime/types' +import { browserDestination } from '@segment/browser-destination-runtime/shim' import LogRocket from 'logrocket' import track from './track' import identify from './identify' diff --git a/packages/browser-destinations/src/destinations/logrocket/test_utilities.ts b/packages/browser-destinations/destinations/logrocket/src/test_utilities.ts similarity index 93% rename from packages/browser-destinations/src/destinations/logrocket/test_utilities.ts rename to packages/browser-destinations/destinations/logrocket/src/test_utilities.ts index 01cb676e68..d43164f2fb 100644 --- a/packages/browser-destinations/src/destinations/logrocket/test_utilities.ts +++ b/packages/browser-destinations/destinations/logrocket/src/test_utilities.ts @@ -1,4 +1,4 @@ -import { Subscription } from '../../lib/browser-destinations' +import { Subscription } from '@segment/browser-destination-runtime/types' class WorkerStub { url: string diff --git a/packages/browser-destinations/src/destinations/logrocket/track/__tests__/index.test.ts b/packages/browser-destinations/destinations/logrocket/src/track/__tests__/index.test.ts similarity index 100% rename from packages/browser-destinations/src/destinations/logrocket/track/__tests__/index.test.ts rename to packages/browser-destinations/destinations/logrocket/src/track/__tests__/index.test.ts diff --git a/packages/browser-destinations/src/destinations/logrocket/track/generated-types.ts b/packages/browser-destinations/destinations/logrocket/src/track/generated-types.ts similarity index 100% rename from packages/browser-destinations/src/destinations/logrocket/track/generated-types.ts rename to packages/browser-destinations/destinations/logrocket/src/track/generated-types.ts diff --git a/packages/browser-destinations/src/destinations/logrocket/track/index.ts b/packages/browser-destinations/destinations/logrocket/src/track/index.ts similarity index 92% rename from packages/browser-destinations/src/destinations/logrocket/track/index.ts rename to packages/browser-destinations/destinations/logrocket/src/track/index.ts index d365965bf1..feed230e5f 100644 --- a/packages/browser-destinations/src/destinations/logrocket/track/index.ts +++ b/packages/browser-destinations/destinations/logrocket/src/track/index.ts @@ -1,4 +1,4 @@ -import type { BrowserActionDefinition } from '../../../lib/browser-destinations' +import type { BrowserActionDefinition } from '@segment/browser-destination-runtime/types' import type { Settings } from '../generated-types' import type { Payload } from './generated-types' import type { LR } from '../types' diff --git a/packages/browser-destinations/src/destinations/logrocket/types.ts b/packages/browser-destinations/destinations/logrocket/src/types.ts similarity index 100% rename from packages/browser-destinations/src/destinations/logrocket/types.ts rename to packages/browser-destinations/destinations/logrocket/src/types.ts diff --git a/packages/browser-destinations/destinations/logrocket/tsconfig.json b/packages/browser-destinations/destinations/logrocket/tsconfig.json new file mode 100644 index 0000000000..71c49219d9 --- /dev/null +++ b/packages/browser-destinations/destinations/logrocket/tsconfig.json @@ -0,0 +1,9 @@ +{ + "extends": "../../tsconfig.build.json", + "compilerOptions": { + "rootDir": "./src", + "baseUrl": "." + }, + "include": ["src"], + "exclude": ["dist", "**/__tests__"] +} \ No newline at end of file diff --git a/packages/browser-destinations/destinations/playerzero-web/package.json b/packages/browser-destinations/destinations/playerzero-web/package.json new file mode 100644 index 0000000000..f8fcc38db6 --- /dev/null +++ b/packages/browser-destinations/destinations/playerzero-web/package.json @@ -0,0 +1,20 @@ +{ + "name": "@segment/analytics-browser-actions-playerzero", + "version": "0.0.0", + "license": "MIT", + "main": "./dist/cjs", + "module": "./dist/esm", + "scripts": { + "build": "yarn build:esm && yarn build:cjs", + "build:cjs": "tsc --module commonjs --outDir ./dist/cjs", + "build:esm": "tsc --outDir ./dist/esm" + }, + "typings": "./dist/esm", + "dependencies": { + "@segment/actions-core": "^3.70.0", + "@segment/browser-destination-runtime": "^0.0.0" + }, + "peerDependencies": { + "@segment/analytics-next": "*" + } +} diff --git a/packages/browser-destinations/src/destinations/playerzero-web/__tests__/index.test.ts b/packages/browser-destinations/destinations/playerzero-web/src/__tests__/index.test.ts similarity index 100% rename from packages/browser-destinations/src/destinations/playerzero-web/__tests__/index.test.ts rename to packages/browser-destinations/destinations/playerzero-web/src/__tests__/index.test.ts diff --git a/packages/browser-destinations/src/destinations/playerzero-web/generated-types.ts b/packages/browser-destinations/destinations/playerzero-web/src/generated-types.ts similarity index 100% rename from packages/browser-destinations/src/destinations/playerzero-web/generated-types.ts rename to packages/browser-destinations/destinations/playerzero-web/src/generated-types.ts diff --git a/packages/browser-destinations/src/destinations/playerzero-web/identifyUser/__tests__/index.test.ts b/packages/browser-destinations/destinations/playerzero-web/src/identifyUser/__tests__/index.test.ts similarity index 100% rename from packages/browser-destinations/src/destinations/playerzero-web/identifyUser/__tests__/index.test.ts rename to packages/browser-destinations/destinations/playerzero-web/src/identifyUser/__tests__/index.test.ts diff --git a/packages/browser-destinations/src/destinations/playerzero-web/identifyUser/generated-types.ts b/packages/browser-destinations/destinations/playerzero-web/src/identifyUser/generated-types.ts similarity index 100% rename from packages/browser-destinations/src/destinations/playerzero-web/identifyUser/generated-types.ts rename to packages/browser-destinations/destinations/playerzero-web/src/identifyUser/generated-types.ts diff --git a/packages/browser-destinations/src/destinations/playerzero-web/identifyUser/index.ts b/packages/browser-destinations/destinations/playerzero-web/src/identifyUser/index.ts similarity index 96% rename from packages/browser-destinations/src/destinations/playerzero-web/identifyUser/index.ts rename to packages/browser-destinations/destinations/playerzero-web/src/identifyUser/index.ts index b10cf13458..64bbe4150b 100644 --- a/packages/browser-destinations/src/destinations/playerzero-web/identifyUser/index.ts +++ b/packages/browser-destinations/destinations/playerzero-web/src/identifyUser/index.ts @@ -1,4 +1,4 @@ -import type { BrowserActionDefinition } from '../../../lib/browser-destinations' +import type { BrowserActionDefinition } from '@segment/browser-destination-runtime/types' import type { Settings } from '../generated-types' import { PlayerZero } from '../types' import type { Payload } from './generated-types' diff --git a/packages/browser-destinations/src/destinations/playerzero-web/index.ts b/packages/browser-destinations/destinations/playerzero-web/src/index.ts similarity index 90% rename from packages/browser-destinations/src/destinations/playerzero-web/index.ts rename to packages/browser-destinations/destinations/playerzero-web/src/index.ts index df2466d156..ce660d9e2a 100644 --- a/packages/browser-destinations/src/destinations/playerzero-web/index.ts +++ b/packages/browser-destinations/destinations/playerzero-web/src/index.ts @@ -1,7 +1,7 @@ import { defaultValues } from '@segment/actions-core' import type { Settings } from './generated-types' -import type { BrowserDestinationDefinition } from '../../lib/browser-destinations' -import { browserDestination } from '../../runtime/shim' +import type { BrowserDestinationDefinition } from '@segment/browser-destination-runtime/types' +import { browserDestination } from '@segment/browser-destination-runtime/shim' import { PlayerZero } from './types' import identifyUser from './identifyUser' diff --git a/packages/browser-destinations/src/destinations/playerzero-web/test-utils.ts b/packages/browser-destinations/destinations/playerzero-web/src/test-utils.ts similarity index 91% rename from packages/browser-destinations/src/destinations/playerzero-web/test-utils.ts rename to packages/browser-destinations/destinations/playerzero-web/src/test-utils.ts index 56fe3819c3..96b23e5348 100644 --- a/packages/browser-destinations/src/destinations/playerzero-web/test-utils.ts +++ b/packages/browser-destinations/destinations/playerzero-web/src/test-utils.ts @@ -1,4 +1,4 @@ -import { Subscription } from '../../lib/browser-destinations' +import { Subscription } from '@segment/browser-destination-runtime/types' export const TEST_PROJECT_ID = '634947ab6e8b1d18374ed00c' diff --git a/packages/browser-destinations/src/destinations/playerzero-web/trackEvent/__tests__/index.test.ts b/packages/browser-destinations/destinations/playerzero-web/src/trackEvent/__tests__/index.test.ts similarity index 100% rename from packages/browser-destinations/src/destinations/playerzero-web/trackEvent/__tests__/index.test.ts rename to packages/browser-destinations/destinations/playerzero-web/src/trackEvent/__tests__/index.test.ts diff --git a/packages/browser-destinations/src/destinations/playerzero-web/trackEvent/generated-types.ts b/packages/browser-destinations/destinations/playerzero-web/src/trackEvent/generated-types.ts similarity index 100% rename from packages/browser-destinations/src/destinations/playerzero-web/trackEvent/generated-types.ts rename to packages/browser-destinations/destinations/playerzero-web/src/trackEvent/generated-types.ts diff --git a/packages/browser-destinations/src/destinations/playerzero-web/trackEvent/index.ts b/packages/browser-destinations/destinations/playerzero-web/src/trackEvent/index.ts similarity index 90% rename from packages/browser-destinations/src/destinations/playerzero-web/trackEvent/index.ts rename to packages/browser-destinations/destinations/playerzero-web/src/trackEvent/index.ts index 244c023d94..f3c07887d2 100644 --- a/packages/browser-destinations/src/destinations/playerzero-web/trackEvent/index.ts +++ b/packages/browser-destinations/destinations/playerzero-web/src/trackEvent/index.ts @@ -1,4 +1,4 @@ -import type { BrowserActionDefinition } from '../../../lib/browser-destinations' +import type { BrowserActionDefinition } from '@segment/browser-destination-runtime/types' import type { Settings } from '../generated-types' import { PlayerZero } from '../types' import type { Payload } from './generated-types' diff --git a/packages/browser-destinations/src/destinations/playerzero-web/types.ts b/packages/browser-destinations/destinations/playerzero-web/src/types.ts similarity index 100% rename from packages/browser-destinations/src/destinations/playerzero-web/types.ts rename to packages/browser-destinations/destinations/playerzero-web/src/types.ts diff --git a/packages/browser-destinations/destinations/playerzero-web/tsconfig.json b/packages/browser-destinations/destinations/playerzero-web/tsconfig.json new file mode 100644 index 0000000000..71c49219d9 --- /dev/null +++ b/packages/browser-destinations/destinations/playerzero-web/tsconfig.json @@ -0,0 +1,9 @@ +{ + "extends": "../../tsconfig.build.json", + "compilerOptions": { + "rootDir": "./src", + "baseUrl": "." + }, + "include": ["src"], + "exclude": ["dist", "**/__tests__"] +} \ No newline at end of file diff --git a/packages/browser-destinations/destinations/ripe/package.json b/packages/browser-destinations/destinations/ripe/package.json new file mode 100644 index 0000000000..97c86302ec --- /dev/null +++ b/packages/browser-destinations/destinations/ripe/package.json @@ -0,0 +1,20 @@ +{ + "name": "@segment/analytics-browser-actions-ripe", + "version": "0.0.0", + "license": "MIT", + "main": "./dist/cjs", + "module": "./dist/esm", + "scripts": { + "build": "yarn build:esm && yarn build:cjs", + "build:cjs": "tsc --module commonjs --outDir ./dist/cjs", + "build:esm": "tsc --outDir ./dist/esm" + }, + "typings": "./dist/esm", + "dependencies": { + "@segment/actions-core": "^3.70.0", + "@segment/browser-destination-runtime": "^0.0.0" + }, + "peerDependencies": { + "@segment/analytics-next": "*" + } +} diff --git a/packages/browser-destinations/src/destinations/ripe/generated-types.ts b/packages/browser-destinations/destinations/ripe/src/generated-types.ts similarity index 100% rename from packages/browser-destinations/src/destinations/ripe/generated-types.ts rename to packages/browser-destinations/destinations/ripe/src/generated-types.ts diff --git a/packages/browser-destinations/src/destinations/ripe/group/__tests__/index.test.ts b/packages/browser-destinations/destinations/ripe/src/group/__tests__/index.test.ts similarity index 90% rename from packages/browser-destinations/src/destinations/ripe/group/__tests__/index.test.ts rename to packages/browser-destinations/destinations/ripe/src/group/__tests__/index.test.ts index 0abf4f2960..35e8d0d66a 100644 --- a/packages/browser-destinations/src/destinations/ripe/group/__tests__/index.test.ts +++ b/packages/browser-destinations/destinations/ripe/src/group/__tests__/index.test.ts @@ -1,11 +1,11 @@ -import type { Subscription } from '../../../../lib/browser-destinations' +import type { Subscription } from '@segment/browser-destination-runtime/types' import { Analytics, Context } from '@segment/analytics-next' import RipeDestination, { destination } from '../../index' -import { loadScript } from '../../../../runtime/load-script' +import { loadScript } from '@segment/browser-destination-runtime/load-script' import { RipeSDK } from '../../types' -jest.mock('../../../../runtime/load-script') +jest.mock('@segment/browser-destination-runtime/load-script') beforeEach(async () => { ;(loadScript as jest.Mock).mockResolvedValue(true) }) diff --git a/packages/browser-destinations/src/destinations/ripe/group/generated-types.ts b/packages/browser-destinations/destinations/ripe/src/group/generated-types.ts similarity index 100% rename from packages/browser-destinations/src/destinations/ripe/group/generated-types.ts rename to packages/browser-destinations/destinations/ripe/src/group/generated-types.ts diff --git a/packages/browser-destinations/src/destinations/ripe/group/index.ts b/packages/browser-destinations/destinations/ripe/src/group/index.ts similarity index 94% rename from packages/browser-destinations/src/destinations/ripe/group/index.ts rename to packages/browser-destinations/destinations/ripe/src/group/index.ts index 818babe45f..c4fc0bc38b 100644 --- a/packages/browser-destinations/src/destinations/ripe/group/index.ts +++ b/packages/browser-destinations/destinations/ripe/src/group/index.ts @@ -1,4 +1,4 @@ -import type { BrowserActionDefinition } from '../../../lib/browser-destinations' +import type { BrowserActionDefinition } from '@segment/browser-destination-runtime/types' import type { Settings } from '../generated-types' import type { Payload } from './generated-types' import { RipeSDK } from '../types' diff --git a/packages/browser-destinations/src/destinations/ripe/identify/__tests__/index.test.ts b/packages/browser-destinations/destinations/ripe/src/identify/__tests__/index.test.ts similarity index 91% rename from packages/browser-destinations/src/destinations/ripe/identify/__tests__/index.test.ts rename to packages/browser-destinations/destinations/ripe/src/identify/__tests__/index.test.ts index d9410ec42e..e646526266 100644 --- a/packages/browser-destinations/src/destinations/ripe/identify/__tests__/index.test.ts +++ b/packages/browser-destinations/destinations/ripe/src/identify/__tests__/index.test.ts @@ -1,11 +1,11 @@ -import type { Subscription } from '../../../../lib/browser-destinations' +import type { Subscription } from '@segment/browser-destination-runtime/types' import { Analytics, Context } from '@segment/analytics-next' import RipeDestination, { destination } from '../../index' import { RipeSDK } from '../../types' -import { loadScript } from '../../../../runtime/load-script' +import { loadScript } from '@segment/browser-destination-runtime/load-script' -jest.mock('../../../../runtime/load-script') +jest.mock('@segment/browser-destination-runtime/load-script') beforeEach(async () => { ;(loadScript as jest.Mock).mockResolvedValue(true) }) diff --git a/packages/browser-destinations/src/destinations/ripe/identify/generated-types.ts b/packages/browser-destinations/destinations/ripe/src/identify/generated-types.ts similarity index 100% rename from packages/browser-destinations/src/destinations/ripe/identify/generated-types.ts rename to packages/browser-destinations/destinations/ripe/src/identify/generated-types.ts diff --git a/packages/browser-destinations/src/destinations/ripe/identify/index.ts b/packages/browser-destinations/destinations/ripe/src/identify/index.ts similarity index 94% rename from packages/browser-destinations/src/destinations/ripe/identify/index.ts rename to packages/browser-destinations/destinations/ripe/src/identify/index.ts index c5efb0b2a2..a4da201d54 100644 --- a/packages/browser-destinations/src/destinations/ripe/identify/index.ts +++ b/packages/browser-destinations/destinations/ripe/src/identify/index.ts @@ -1,4 +1,4 @@ -import type { BrowserActionDefinition } from '../../../lib/browser-destinations' +import type { BrowserActionDefinition } from '@segment/browser-destination-runtime/types' import type { Settings } from '../generated-types' import type { Payload } from './generated-types' import { RipeSDK } from '../types' diff --git a/packages/browser-destinations/src/destinations/ripe/index.ts b/packages/browser-destinations/destinations/ripe/src/index.ts similarity index 93% rename from packages/browser-destinations/src/destinations/ripe/index.ts rename to packages/browser-destinations/destinations/ripe/src/index.ts index a6d1a48c67..a4dcc349a3 100644 --- a/packages/browser-destinations/src/destinations/ripe/index.ts +++ b/packages/browser-destinations/destinations/ripe/src/index.ts @@ -1,6 +1,6 @@ import type { Settings } from './generated-types' -import type { BrowserDestinationDefinition } from '../../lib/browser-destinations' -import { browserDestination } from '../../runtime/shim' +import type { BrowserDestinationDefinition } from '@segment/browser-destination-runtime/types' +import { browserDestination } from '@segment/browser-destination-runtime/shim' import { RipeSDK } from './types' import group from './group' diff --git a/packages/browser-destinations/src/destinations/ripe/init-script.ts b/packages/browser-destinations/destinations/ripe/src/init-script.ts similarity index 100% rename from packages/browser-destinations/src/destinations/ripe/init-script.ts rename to packages/browser-destinations/destinations/ripe/src/init-script.ts diff --git a/packages/browser-destinations/src/destinations/ripe/page/__tests__/index.test.ts b/packages/browser-destinations/destinations/ripe/src/page/__tests__/index.test.ts similarity index 91% rename from packages/browser-destinations/src/destinations/ripe/page/__tests__/index.test.ts rename to packages/browser-destinations/destinations/ripe/src/page/__tests__/index.test.ts index 370a66bbd8..35570448f0 100644 --- a/packages/browser-destinations/src/destinations/ripe/page/__tests__/index.test.ts +++ b/packages/browser-destinations/destinations/ripe/src/page/__tests__/index.test.ts @@ -1,11 +1,11 @@ -import type { Subscription } from '../../../../lib/browser-destinations' +import type { Subscription } from '@segment/browser-destination-runtime/types' import { Analytics, Context } from '@segment/analytics-next' import RipeDestination, { destination } from '../../index' import { RipeSDK } from '../../types' -import { loadScript } from '../../../../runtime/load-script' +import { loadScript } from '@segment/browser-destination-runtime/load-script' -jest.mock('../../../../runtime/load-script') +jest.mock('@segment/browser-destination-runtime/load-script') beforeEach(async () => { ;(loadScript as jest.Mock).mockResolvedValue(true) }) diff --git a/packages/browser-destinations/src/destinations/ripe/page/generated-types.ts b/packages/browser-destinations/destinations/ripe/src/page/generated-types.ts similarity index 100% rename from packages/browser-destinations/src/destinations/ripe/page/generated-types.ts rename to packages/browser-destinations/destinations/ripe/src/page/generated-types.ts diff --git a/packages/browser-destinations/src/destinations/ripe/page/index.ts b/packages/browser-destinations/destinations/ripe/src/page/index.ts similarity index 96% rename from packages/browser-destinations/src/destinations/ripe/page/index.ts rename to packages/browser-destinations/destinations/ripe/src/page/index.ts index d1e7bffcc1..b18e4c7f5c 100644 --- a/packages/browser-destinations/src/destinations/ripe/page/index.ts +++ b/packages/browser-destinations/destinations/ripe/src/page/index.ts @@ -1,4 +1,4 @@ -import type { BrowserActionDefinition } from '../../../lib/browser-destinations' +import type { BrowserActionDefinition } from '@segment/browser-destination-runtime/types' import type { Settings } from '../generated-types' import type { Payload } from './generated-types' import { RipeSDK } from '../types' diff --git a/packages/browser-destinations/src/destinations/ripe/track/__tests__/index.test.ts b/packages/browser-destinations/destinations/ripe/src/track/__tests__/index.test.ts similarity index 91% rename from packages/browser-destinations/src/destinations/ripe/track/__tests__/index.test.ts rename to packages/browser-destinations/destinations/ripe/src/track/__tests__/index.test.ts index abf38f8405..ed03c70f73 100644 --- a/packages/browser-destinations/src/destinations/ripe/track/__tests__/index.test.ts +++ b/packages/browser-destinations/destinations/ripe/src/track/__tests__/index.test.ts @@ -1,11 +1,11 @@ -import type { Subscription } from '../../../../lib/browser-destinations' +import type { Subscription } from '@segment/browser-destination-runtime/types' import { Analytics, Context } from '@segment/analytics-next' import RipeDestination, { destination } from '../../index' import { RipeSDK } from '../../types' -import { loadScript } from '../../../../runtime/load-script' +import { loadScript } from '@segment/browser-destination-runtime/load-script' -jest.mock('../../../../runtime/load-script') +jest.mock('@segment/browser-destination-runtime/load-script') beforeEach(async () => { ;(loadScript as jest.Mock).mockResolvedValue(true) }) diff --git a/packages/browser-destinations/src/destinations/ripe/track/generated-types.ts b/packages/browser-destinations/destinations/ripe/src/track/generated-types.ts similarity index 100% rename from packages/browser-destinations/src/destinations/ripe/track/generated-types.ts rename to packages/browser-destinations/destinations/ripe/src/track/generated-types.ts diff --git a/packages/browser-destinations/src/destinations/ripe/track/index.ts b/packages/browser-destinations/destinations/ripe/src/track/index.ts similarity index 95% rename from packages/browser-destinations/src/destinations/ripe/track/index.ts rename to packages/browser-destinations/destinations/ripe/src/track/index.ts index 5054822439..cee99bb853 100644 --- a/packages/browser-destinations/src/destinations/ripe/track/index.ts +++ b/packages/browser-destinations/destinations/ripe/src/track/index.ts @@ -1,4 +1,4 @@ -import type { BrowserActionDefinition } from '../../../lib/browser-destinations' +import type { BrowserActionDefinition } from '@segment/browser-destination-runtime/types' import type { Settings } from '../generated-types' import type { Payload } from './generated-types' import { RipeSDK } from '../types' diff --git a/packages/browser-destinations/src/destinations/ripe/types.ts b/packages/browser-destinations/destinations/ripe/src/types.ts similarity index 100% rename from packages/browser-destinations/src/destinations/ripe/types.ts rename to packages/browser-destinations/destinations/ripe/src/types.ts diff --git a/packages/browser-destinations/destinations/ripe/tsconfig.json b/packages/browser-destinations/destinations/ripe/tsconfig.json new file mode 100644 index 0000000000..71c49219d9 --- /dev/null +++ b/packages/browser-destinations/destinations/ripe/tsconfig.json @@ -0,0 +1,9 @@ +{ + "extends": "../../tsconfig.build.json", + "compilerOptions": { + "rootDir": "./src", + "baseUrl": "." + }, + "include": ["src"], + "exclude": ["dist", "**/__tests__"] +} \ No newline at end of file diff --git a/packages/browser-destinations/destinations/sabil/package.json b/packages/browser-destinations/destinations/sabil/package.json new file mode 100644 index 0000000000..02455f7d55 --- /dev/null +++ b/packages/browser-destinations/destinations/sabil/package.json @@ -0,0 +1,19 @@ +{ + "name": "@segment/analytics-browser-actions-sabil", + "version": "0.0.0", + "license": "MIT", + "main": "./dist/cjs", + "module": "./dist/esm", + "scripts": { + "build": "yarn build:esm && yarn build:cjs", + "build:cjs": "tsc --module commonjs --outDir ./dist/cjs", + "build:esm": "tsc --outDir ./dist/esm" + }, + "typings": "./dist/esm", + "dependencies": { + "@segment/browser-destination-runtime": "^0.0.0" + }, + "peerDependencies": { + "@segment/analytics-next": "*" + } +} diff --git a/packages/browser-destinations/src/destinations/sabil/__tests__/index.test.ts b/packages/browser-destinations/destinations/sabil/src/__tests__/index.test.ts similarity index 100% rename from packages/browser-destinations/src/destinations/sabil/__tests__/index.test.ts rename to packages/browser-destinations/destinations/sabil/src/__tests__/index.test.ts diff --git a/packages/browser-destinations/src/destinations/sabil/attach/__tests__/index.test.ts b/packages/browser-destinations/destinations/sabil/src/attach/__tests__/index.test.ts similarity index 100% rename from packages/browser-destinations/src/destinations/sabil/attach/__tests__/index.test.ts rename to packages/browser-destinations/destinations/sabil/src/attach/__tests__/index.test.ts diff --git a/packages/browser-destinations/src/destinations/sabil/attach/generated-types.ts b/packages/browser-destinations/destinations/sabil/src/attach/generated-types.ts similarity index 100% rename from packages/browser-destinations/src/destinations/sabil/attach/generated-types.ts rename to packages/browser-destinations/destinations/sabil/src/attach/generated-types.ts diff --git a/packages/browser-destinations/src/destinations/sabil/attach/index.ts b/packages/browser-destinations/destinations/sabil/src/attach/index.ts similarity index 92% rename from packages/browser-destinations/src/destinations/sabil/attach/index.ts rename to packages/browser-destinations/destinations/sabil/src/attach/index.ts index 532d440c7c..c23c03d71e 100644 --- a/packages/browser-destinations/src/destinations/sabil/attach/index.ts +++ b/packages/browser-destinations/destinations/sabil/src/attach/index.ts @@ -1,4 +1,4 @@ -import type { BrowserActionDefinition } from '../../../lib/browser-destinations' +import type { BrowserActionDefinition } from '@segment/browser-destination-runtime/types' import type { Settings } from '../generated-types' import type { Payload } from './generated-types' import Sabil from '../types' diff --git a/packages/browser-destinations/src/destinations/sabil/generated-types.ts b/packages/browser-destinations/destinations/sabil/src/generated-types.ts similarity index 100% rename from packages/browser-destinations/src/destinations/sabil/generated-types.ts rename to packages/browser-destinations/destinations/sabil/src/generated-types.ts diff --git a/packages/browser-destinations/src/destinations/sabil/index.ts b/packages/browser-destinations/destinations/sabil/src/index.ts similarity index 84% rename from packages/browser-destinations/src/destinations/sabil/index.ts rename to packages/browser-destinations/destinations/sabil/src/index.ts index 07ffd6af0f..ebecd70ac4 100644 --- a/packages/browser-destinations/src/destinations/sabil/index.ts +++ b/packages/browser-destinations/destinations/sabil/src/index.ts @@ -1,6 +1,6 @@ import type { Settings } from './generated-types' -import type { BrowserDestinationDefinition } from '../../lib/browser-destinations' -import { browserDestination } from '../../runtime/shim' +import type { BrowserDestinationDefinition } from '@segment/browser-destination-runtime/types' +import { browserDestination } from '@segment/browser-destination-runtime/shim' import Sabil from './types' import attach from './attach' diff --git a/packages/browser-destinations/src/destinations/sabil/test-utils.ts b/packages/browser-destinations/destinations/sabil/src/test-utils.ts similarity index 82% rename from packages/browser-destinations/src/destinations/sabil/test-utils.ts rename to packages/browser-destinations/destinations/sabil/src/test-utils.ts index 9eb7eac570..18eba65824 100644 --- a/packages/browser-destinations/src/destinations/sabil/test-utils.ts +++ b/packages/browser-destinations/destinations/sabil/src/test-utils.ts @@ -1,4 +1,4 @@ -import { Subscription } from '../../lib/browser-destinations' +import { Subscription } from '@segment/browser-destination-runtime/types' export const TEST_CLIENT_ID = 'c8d82ede-c8e4-4bd0-8240-5c723f83fe3f' export const TEST_USER_ID = 'segment_test_user_id' diff --git a/packages/browser-destinations/src/destinations/sabil/types.ts b/packages/browser-destinations/destinations/sabil/src/types.ts similarity index 100% rename from packages/browser-destinations/src/destinations/sabil/types.ts rename to packages/browser-destinations/destinations/sabil/src/types.ts diff --git a/packages/browser-destinations/destinations/sabil/tsconfig.json b/packages/browser-destinations/destinations/sabil/tsconfig.json new file mode 100644 index 0000000000..71c49219d9 --- /dev/null +++ b/packages/browser-destinations/destinations/sabil/tsconfig.json @@ -0,0 +1,9 @@ +{ + "extends": "../../tsconfig.build.json", + "compilerOptions": { + "rootDir": "./src", + "baseUrl": "." + }, + "include": ["src"], + "exclude": ["dist", "**/__tests__"] +} \ No newline at end of file diff --git a/packages/browser-destinations/destinations/screeb/package.json b/packages/browser-destinations/destinations/screeb/package.json new file mode 100644 index 0000000000..d2be584946 --- /dev/null +++ b/packages/browser-destinations/destinations/screeb/package.json @@ -0,0 +1,20 @@ +{ + "name": "@segment/analytics-browser-actions-screeb", + "version": "0.0.0", + "license": "MIT", + "main": "./dist/cjs", + "module": "./dist/esm", + "scripts": { + "build": "yarn build:esm && yarn build:cjs", + "build:cjs": "tsc --module commonjs --outDir ./dist/cjs", + "build:esm": "tsc --outDir ./dist/esm" + }, + "typings": "./dist/esm", + "dependencies": { + "@segment/actions-core": "^3.70.0", + "@segment/browser-destination-runtime": "^0.0.0" + }, + "peerDependencies": { + "@segment/analytics-next": "*" + } +} diff --git a/packages/browser-destinations/src/destinations/screeb/__tests__/index.test.ts b/packages/browser-destinations/destinations/screeb/src/__tests__/index.test.ts similarity index 80% rename from packages/browser-destinations/src/destinations/screeb/__tests__/index.test.ts rename to packages/browser-destinations/destinations/screeb/src/__tests__/index.test.ts index fa5943f8a7..3e7403822d 100644 --- a/packages/browser-destinations/src/destinations/screeb/__tests__/index.test.ts +++ b/packages/browser-destinations/destinations/screeb/src/__tests__/index.test.ts @@ -1,6 +1,6 @@ import { Analytics, Context } from '@segment/analytics-next' import screebDestination, { destination } from '../index' -import { Subscription } from '../../../lib/browser-destinations' +import { Subscription } from '@segment/browser-destination-runtime/types' const subscriptions: Subscription[] = [ { @@ -18,10 +18,10 @@ const subscriptions: Subscription[] = [ describe('Screeb initialization', () => { beforeAll(() => { - jest.mock('../../../runtime/load-script', () => ({ + jest.mock('@segment/browser-destination-runtime/load-script', () => ({ loadScript: (_src: any, _attributes: any) => {} })) - jest.mock('../../../runtime/resolve-when', () => ({ + jest.mock('@segment/browser-destination-runtime/resolve-when', () => ({ resolveWhen: (_fn: any, _timeout: any) => {} })) }) diff --git a/packages/browser-destinations/src/destinations/screeb/alias.types.ts b/packages/browser-destinations/destinations/screeb/src/alias.types.ts similarity index 100% rename from packages/browser-destinations/src/destinations/screeb/alias.types.ts rename to packages/browser-destinations/destinations/screeb/src/alias.types.ts diff --git a/packages/browser-destinations/src/destinations/screeb/alias/__tests__/index.test.ts b/packages/browser-destinations/destinations/screeb/src/alias/__tests__/index.test.ts similarity index 90% rename from packages/browser-destinations/src/destinations/screeb/alias/__tests__/index.test.ts rename to packages/browser-destinations/destinations/screeb/src/alias/__tests__/index.test.ts index 90d7802a0e..e578ee41fc 100644 --- a/packages/browser-destinations/src/destinations/screeb/alias/__tests__/index.test.ts +++ b/packages/browser-destinations/destinations/screeb/src/alias/__tests__/index.test.ts @@ -1,6 +1,6 @@ import { Analytics, Context } from '@segment/analytics-next' import screebDestination, { destination } from '../../index' -import { Subscription } from '../../../../lib/browser-destinations' +import { Subscription } from '@segment/browser-destination-runtime/types' const subscriptions: Subscription[] = [ { @@ -21,10 +21,10 @@ const subscriptions: Subscription[] = [ describe('alias', () => { beforeAll(() => { - jest.mock('../../../../runtime/load-script', () => ({ + jest.mock('@segment/browser-destination-runtime/load-script', () => ({ loadScript: (_src: any, _attributes: any) => {} })) - jest.mock('../../../../runtime/resolve-when', () => ({ + jest.mock('@segment/browser-destination-runtime/resolve-when', () => ({ resolveWhen: (_fn: any, _timeout: any) => {} })) }) diff --git a/packages/browser-destinations/src/destinations/screeb/alias/generated-types.ts b/packages/browser-destinations/destinations/screeb/src/alias/generated-types.ts similarity index 100% rename from packages/browser-destinations/src/destinations/screeb/alias/generated-types.ts rename to packages/browser-destinations/destinations/screeb/src/alias/generated-types.ts diff --git a/packages/browser-destinations/src/destinations/screeb/alias/index.ts b/packages/browser-destinations/destinations/screeb/src/alias/index.ts similarity index 93% rename from packages/browser-destinations/src/destinations/screeb/alias/index.ts rename to packages/browser-destinations/destinations/screeb/src/alias/index.ts index dd9c0a605a..841573e337 100644 --- a/packages/browser-destinations/src/destinations/screeb/alias/index.ts +++ b/packages/browser-destinations/destinations/screeb/src/alias/index.ts @@ -1,4 +1,4 @@ -import type { BrowserActionDefinition } from '../../../lib/browser-destinations' +import type { BrowserActionDefinition } from '@segment/browser-destination-runtime/types' import type { Settings } from '../generated-types' import type { Payload } from './generated-types' import type { Screeb } from '../types' diff --git a/packages/browser-destinations/src/destinations/screeb/generated-types.ts b/packages/browser-destinations/destinations/screeb/src/generated-types.ts similarity index 100% rename from packages/browser-destinations/src/destinations/screeb/generated-types.ts rename to packages/browser-destinations/destinations/screeb/src/generated-types.ts diff --git a/packages/browser-destinations/src/destinations/screeb/group/__tests__/index.test.ts b/packages/browser-destinations/destinations/screeb/src/group/__tests__/index.test.ts similarity index 91% rename from packages/browser-destinations/src/destinations/screeb/group/__tests__/index.test.ts rename to packages/browser-destinations/destinations/screeb/src/group/__tests__/index.test.ts index 78b14b9712..9509f05e18 100644 --- a/packages/browser-destinations/src/destinations/screeb/group/__tests__/index.test.ts +++ b/packages/browser-destinations/destinations/screeb/src/group/__tests__/index.test.ts @@ -1,6 +1,6 @@ import { Analytics, Context } from '@segment/analytics-next' import screebDestination, { destination } from '../../index' -import { Subscription } from '../../../../lib/browser-destinations' +import { Subscription } from '@segment/browser-destination-runtime/types' const subscriptions: Subscription[] = [ { @@ -24,10 +24,10 @@ const subscriptions: Subscription[] = [ describe('group', () => { beforeAll(() => { - jest.mock('../../../../runtime/load-script', () => ({ + jest.mock('@segment/browser-destination-runtime/load-script', () => ({ loadScript: (_src: any, _attributes: any) => {} })) - jest.mock('../../../../runtime/resolve-when', () => ({ + jest.mock('@segment/browser-destination-runtime/resolve-when', () => ({ resolveWhen: (_fn: any, _timeout: any) => {} })) }) diff --git a/packages/browser-destinations/src/destinations/screeb/group/generated-types.ts b/packages/browser-destinations/destinations/screeb/src/group/generated-types.ts similarity index 100% rename from packages/browser-destinations/src/destinations/screeb/group/generated-types.ts rename to packages/browser-destinations/destinations/screeb/src/group/generated-types.ts diff --git a/packages/browser-destinations/src/destinations/screeb/group/index.ts b/packages/browser-destinations/destinations/screeb/src/group/index.ts similarity index 94% rename from packages/browser-destinations/src/destinations/screeb/group/index.ts rename to packages/browser-destinations/destinations/screeb/src/group/index.ts index 6d3ae301ff..0d2177aed3 100644 --- a/packages/browser-destinations/src/destinations/screeb/group/index.ts +++ b/packages/browser-destinations/destinations/screeb/src/group/index.ts @@ -1,4 +1,4 @@ -import type { BrowserActionDefinition } from '../../../lib/browser-destinations' +import type { BrowserActionDefinition } from '@segment/browser-destination-runtime/types' import type { Settings } from '../generated-types' import type { Payload } from './generated-types' import type { Screeb } from '../types' diff --git a/packages/browser-destinations/src/destinations/screeb/identify/__tests__/index.test.ts b/packages/browser-destinations/destinations/screeb/src/identify/__tests__/index.test.ts similarity index 93% rename from packages/browser-destinations/src/destinations/screeb/identify/__tests__/index.test.ts rename to packages/browser-destinations/destinations/screeb/src/identify/__tests__/index.test.ts index 7e2655443b..ae9776520f 100644 --- a/packages/browser-destinations/src/destinations/screeb/identify/__tests__/index.test.ts +++ b/packages/browser-destinations/destinations/screeb/src/identify/__tests__/index.test.ts @@ -1,6 +1,6 @@ import { Analytics, Context } from '@segment/analytics-next' import screebDestination, { destination } from '../../index' -import { Subscription } from '../../../../lib/browser-destinations' +import { Subscription } from '@segment/browser-destination-runtime/types' const subscriptions: Subscription[] = [ { @@ -24,10 +24,10 @@ const subscriptions: Subscription[] = [ describe('identify', () => { beforeAll(() => { - jest.mock('../../../../runtime/load-script', () => ({ + jest.mock('@segment/browser-destination-runtime/load-script', () => ({ loadScript: (_src: any, _attributes: any) => {} })) - jest.mock('../../../../runtime/resolve-when', () => ({ + jest.mock('@segment/browser-destination-runtime/resolve-when', () => ({ resolveWhen: (_fn: any, _timeout: any) => {} })) }) diff --git a/packages/browser-destinations/src/destinations/screeb/identify/generated-types.ts b/packages/browser-destinations/destinations/screeb/src/identify/generated-types.ts similarity index 100% rename from packages/browser-destinations/src/destinations/screeb/identify/generated-types.ts rename to packages/browser-destinations/destinations/screeb/src/identify/generated-types.ts diff --git a/packages/browser-destinations/src/destinations/screeb/identify/index.ts b/packages/browser-destinations/destinations/screeb/src/identify/index.ts similarity index 94% rename from packages/browser-destinations/src/destinations/screeb/identify/index.ts rename to packages/browser-destinations/destinations/screeb/src/identify/index.ts index 3c6f78701b..6b7cb08639 100644 --- a/packages/browser-destinations/src/destinations/screeb/identify/index.ts +++ b/packages/browser-destinations/destinations/screeb/src/identify/index.ts @@ -1,4 +1,4 @@ -import type { BrowserActionDefinition } from '../../../lib/browser-destinations' +import type { BrowserActionDefinition } from '@segment/browser-destination-runtime/types' import type { Settings } from '../generated-types' import type { Payload } from './generated-types' import type { Screeb } from '../types' diff --git a/packages/browser-destinations/src/destinations/screeb/index.ts b/packages/browser-destinations/destinations/screeb/src/index.ts similarity index 91% rename from packages/browser-destinations/src/destinations/screeb/index.ts rename to packages/browser-destinations/destinations/screeb/src/index.ts index 443e08f51f..6a32cc2711 100644 --- a/packages/browser-destinations/src/destinations/screeb/index.ts +++ b/packages/browser-destinations/destinations/screeb/src/index.ts @@ -1,6 +1,6 @@ import type { Settings } from './generated-types' -import type { BrowserDestinationDefinition } from '../../lib/browser-destinations' -import { browserDestination } from '../../runtime/shim' +import type { BrowserDestinationDefinition } from '@segment/browser-destination-runtime/types' +import { browserDestination } from '@segment/browser-destination-runtime/shim' import { Screeb } from './types' import { defaultValues } from '@segment/actions-core' import identify from './identify' diff --git a/packages/browser-destinations/src/destinations/screeb/track/__tests__/index.test.ts b/packages/browser-destinations/destinations/screeb/src/track/__tests__/index.test.ts similarity index 87% rename from packages/browser-destinations/src/destinations/screeb/track/__tests__/index.test.ts rename to packages/browser-destinations/destinations/screeb/src/track/__tests__/index.test.ts index a6faefeb58..5bfa38157c 100644 --- a/packages/browser-destinations/src/destinations/screeb/track/__tests__/index.test.ts +++ b/packages/browser-destinations/destinations/screeb/src/track/__tests__/index.test.ts @@ -1,6 +1,6 @@ import { Analytics, Context } from '@segment/analytics-next' import screebDestination, { destination } from '../../index' -import { Subscription } from '../../../../lib/browser-destinations' +import { Subscription } from '@segment/browser-destination-runtime/types' const subscriptions: Subscription[] = [ { @@ -21,10 +21,10 @@ const subscriptions: Subscription[] = [ describe('track', () => { beforeAll(() => { - jest.mock('../../../../runtime/load-script', () => ({ + jest.mock('@segment/browser-destination-runtime/load-script', () => ({ loadScript: (_src: any, _attributes: any) => {} })) - jest.mock('../../../../runtime/resolve-when', () => ({ + jest.mock('@segment/browser-destination-runtime/resolve-when', () => ({ resolveWhen: (_fn: any, _timeout: any) => {} })) }) diff --git a/packages/browser-destinations/src/destinations/screeb/track/generated-types.ts b/packages/browser-destinations/destinations/screeb/src/track/generated-types.ts similarity index 100% rename from packages/browser-destinations/src/destinations/screeb/track/generated-types.ts rename to packages/browser-destinations/destinations/screeb/src/track/generated-types.ts diff --git a/packages/browser-destinations/src/destinations/screeb/track/index.ts b/packages/browser-destinations/destinations/screeb/src/track/index.ts similarity index 93% rename from packages/browser-destinations/src/destinations/screeb/track/index.ts rename to packages/browser-destinations/destinations/screeb/src/track/index.ts index 2b3d83f9e2..71770006f2 100644 --- a/packages/browser-destinations/src/destinations/screeb/track/index.ts +++ b/packages/browser-destinations/destinations/screeb/src/track/index.ts @@ -1,4 +1,4 @@ -import type { BrowserActionDefinition } from '../../../lib/browser-destinations' +import type { BrowserActionDefinition } from '@segment/browser-destination-runtime/types' import type { Settings } from '../generated-types' import type { Payload } from './generated-types' import type { Screeb } from '../types' diff --git a/packages/browser-destinations/src/destinations/screeb/types.ts b/packages/browser-destinations/destinations/screeb/src/types.ts similarity index 100% rename from packages/browser-destinations/src/destinations/screeb/types.ts rename to packages/browser-destinations/destinations/screeb/src/types.ts diff --git a/packages/browser-destinations/destinations/screeb/tsconfig.json b/packages/browser-destinations/destinations/screeb/tsconfig.json new file mode 100644 index 0000000000..71c49219d9 --- /dev/null +++ b/packages/browser-destinations/destinations/screeb/tsconfig.json @@ -0,0 +1,9 @@ +{ + "extends": "../../tsconfig.build.json", + "compilerOptions": { + "rootDir": "./src", + "baseUrl": "." + }, + "include": ["src"], + "exclude": ["dist", "**/__tests__"] +} \ No newline at end of file diff --git a/packages/browser-destinations/destinations/segment-utilities-web/package.json b/packages/browser-destinations/destinations/segment-utilities-web/package.json new file mode 100644 index 0000000000..7f538007bd --- /dev/null +++ b/packages/browser-destinations/destinations/segment-utilities-web/package.json @@ -0,0 +1,19 @@ +{ + "name": "@segment/analytics-browser-actions-utils", + "version": "0.0.0", + "license": "MIT", + "main": "./dist/cjs", + "module": "./dist/esm", + "scripts": { + "build": "yarn build:esm && yarn build:cjs", + "build:cjs": "tsc --module commonjs --outDir ./dist/cjs", + "build:esm": "tsc --outDir ./dist/esm" + }, + "typings": "./dist/esm", + "dependencies": { + "@segment/browser-destination-runtime": "^0.0.0" + }, + "peerDependencies": { + "@segment/analytics-next": "*" + } +} diff --git a/packages/browser-destinations/src/destinations/segment-utilities-web/__tests__/index.test.ts b/packages/browser-destinations/destinations/segment-utilities-web/src/__tests__/index.test.ts similarity index 100% rename from packages/browser-destinations/src/destinations/segment-utilities-web/__tests__/index.test.ts rename to packages/browser-destinations/destinations/segment-utilities-web/src/__tests__/index.test.ts diff --git a/packages/browser-destinations/src/destinations/segment-utilities-web/generated-types.ts b/packages/browser-destinations/destinations/segment-utilities-web/src/generated-types.ts similarity index 100% rename from packages/browser-destinations/src/destinations/segment-utilities-web/generated-types.ts rename to packages/browser-destinations/destinations/segment-utilities-web/src/generated-types.ts diff --git a/packages/browser-destinations/src/destinations/segment-utilities-web/index.ts b/packages/browser-destinations/destinations/segment-utilities-web/src/index.ts similarity index 85% rename from packages/browser-destinations/src/destinations/segment-utilities-web/index.ts rename to packages/browser-destinations/destinations/segment-utilities-web/src/index.ts index 3bcdfeab4d..ab8ff7c688 100644 --- a/packages/browser-destinations/src/destinations/segment-utilities-web/index.ts +++ b/packages/browser-destinations/destinations/segment-utilities-web/src/index.ts @@ -1,6 +1,6 @@ import type { Settings } from './generated-types' -import type { BrowserDestinationDefinition } from '../../lib/browser-destinations' -import { browserDestination } from '../../runtime/shim' +import type { BrowserDestinationDefinition } from '@segment/browser-destination-runtime/types' +import { browserDestination } from '@segment/browser-destination-runtime/shim' import throttle from './throttle' diff --git a/packages/browser-destinations/src/destinations/segment-utilities-web/throttle/__tests__/index.test.ts b/packages/browser-destinations/destinations/segment-utilities-web/src/throttle/__tests__/index.test.ts similarity index 100% rename from packages/browser-destinations/src/destinations/segment-utilities-web/throttle/__tests__/index.test.ts rename to packages/browser-destinations/destinations/segment-utilities-web/src/throttle/__tests__/index.test.ts diff --git a/packages/browser-destinations/src/destinations/segment-utilities-web/throttle/generated-types.ts b/packages/browser-destinations/destinations/segment-utilities-web/src/throttle/generated-types.ts similarity index 100% rename from packages/browser-destinations/src/destinations/segment-utilities-web/throttle/generated-types.ts rename to packages/browser-destinations/destinations/segment-utilities-web/src/throttle/generated-types.ts diff --git a/packages/browser-destinations/src/destinations/segment-utilities-web/throttle/index.ts b/packages/browser-destinations/destinations/segment-utilities-web/src/throttle/index.ts similarity index 95% rename from packages/browser-destinations/src/destinations/segment-utilities-web/throttle/index.ts rename to packages/browser-destinations/destinations/segment-utilities-web/src/throttle/index.ts index bbde5804ae..f944a4e51d 100644 --- a/packages/browser-destinations/src/destinations/segment-utilities-web/throttle/index.ts +++ b/packages/browser-destinations/destinations/segment-utilities-web/src/throttle/index.ts @@ -1,5 +1,5 @@ import { SegmentUtilitiesInstance } from '..' -import type { BrowserActionDefinition } from '../../../lib/browser-destinations' +import type { BrowserActionDefinition } from '@segment/browser-destination-runtime/types' import type { Settings } from '../generated-types' import type { Payload } from './generated-types' diff --git a/packages/browser-destinations/destinations/segment-utilities-web/tsconfig.json b/packages/browser-destinations/destinations/segment-utilities-web/tsconfig.json new file mode 100644 index 0000000000..71c49219d9 --- /dev/null +++ b/packages/browser-destinations/destinations/segment-utilities-web/tsconfig.json @@ -0,0 +1,9 @@ +{ + "extends": "../../tsconfig.build.json", + "compilerOptions": { + "rootDir": "./src", + "baseUrl": "." + }, + "include": ["src"], + "exclude": ["dist", "**/__tests__"] +} \ No newline at end of file diff --git a/packages/browser-destinations/destinations/sprig-web/package.json b/packages/browser-destinations/destinations/sprig-web/package.json new file mode 100644 index 0000000000..453921c4b7 --- /dev/null +++ b/packages/browser-destinations/destinations/sprig-web/package.json @@ -0,0 +1,20 @@ +{ + "name": "@segment/analytics-browser-actions-sprig", + "version": "0.0.0", + "license": "MIT", + "main": "./dist/cjs", + "module": "./dist/esm", + "scripts": { + "build": "yarn build:esm && yarn build:cjs", + "build:cjs": "tsc --module commonjs --outDir ./dist/cjs", + "build:esm": "tsc --outDir ./dist/esm" + }, + "typings": "./dist/esm", + "dependencies": { + "@segment/actions-core": "^3.70.0", + "@segment/browser-destination-runtime": "^0.0.0" + }, + "peerDependencies": { + "@segment/analytics-next": "*" + } +} diff --git a/packages/browser-destinations/src/destinations/sprig-web/__tests__/__snapshots__/index.test.ts.snap b/packages/browser-destinations/destinations/sprig-web/src/__tests__/__snapshots__/index.test.ts.snap similarity index 100% rename from packages/browser-destinations/src/destinations/sprig-web/__tests__/__snapshots__/index.test.ts.snap rename to packages/browser-destinations/destinations/sprig-web/src/__tests__/__snapshots__/index.test.ts.snap diff --git a/packages/browser-destinations/src/destinations/sprig-web/__tests__/index.test.ts b/packages/browser-destinations/destinations/sprig-web/src/__tests__/index.test.ts similarity index 88% rename from packages/browser-destinations/src/destinations/sprig-web/__tests__/index.test.ts rename to packages/browser-destinations/destinations/sprig-web/src/__tests__/index.test.ts index bfed9993d1..6348f5aecd 100644 --- a/packages/browser-destinations/src/destinations/sprig-web/__tests__/index.test.ts +++ b/packages/browser-destinations/destinations/sprig-web/src/__tests__/index.test.ts @@ -1,6 +1,6 @@ import { Analytics, Context } from '@segment/analytics-next' import sprigWebDestination, { destination } from '../index' -import { Subscription } from '../../../lib/browser-destinations' +import { Subscription } from '@segment/browser-destination-runtime/types' const subscriptions: Subscription[] = [ { @@ -18,7 +18,7 @@ const subscriptions: Subscription[] = [ describe('Sprig initialization', () => { beforeAll(() => { - jest.mock('../../../runtime/load-script', () => ({ + jest.mock('@segment/browser-destination-runtime/load-script', () => ({ loadScript: (_src: any, _attributes: any) => {} })) }) diff --git a/packages/browser-destinations/src/destinations/sprig-web/generated-types.ts b/packages/browser-destinations/destinations/sprig-web/src/generated-types.ts similarity index 100% rename from packages/browser-destinations/src/destinations/sprig-web/generated-types.ts rename to packages/browser-destinations/destinations/sprig-web/src/generated-types.ts diff --git a/packages/browser-destinations/src/destinations/sprig-web/identifyUser/__tests__/index.test.ts b/packages/browser-destinations/destinations/sprig-web/src/identifyUser/__tests__/index.test.ts similarity index 91% rename from packages/browser-destinations/src/destinations/sprig-web/identifyUser/__tests__/index.test.ts rename to packages/browser-destinations/destinations/sprig-web/src/identifyUser/__tests__/index.test.ts index ba31040145..3186917954 100644 --- a/packages/browser-destinations/src/destinations/sprig-web/identifyUser/__tests__/index.test.ts +++ b/packages/browser-destinations/destinations/sprig-web/src/identifyUser/__tests__/index.test.ts @@ -1,6 +1,6 @@ import { Analytics, Context } from '@segment/analytics-next' import sprigWebDestination, { destination } from '../../index' -import { Subscription } from '../../../../lib/browser-destinations' +import { Subscription } from '@segment/browser-destination-runtime/types' const subscriptions: Subscription[] = [ { @@ -24,7 +24,7 @@ const subscriptions: Subscription[] = [ describe('identifyUser', () => { beforeAll(() => { - jest.mock('../../../../runtime/load-script', () => ({ + jest.mock('@segment/browser-destination-runtime/load-script', () => ({ loadScript: (_src: any, _attributes: any) => {} })) }) diff --git a/packages/browser-destinations/src/destinations/sprig-web/identifyUser/generated-types.ts b/packages/browser-destinations/destinations/sprig-web/src/identifyUser/generated-types.ts similarity index 100% rename from packages/browser-destinations/src/destinations/sprig-web/identifyUser/generated-types.ts rename to packages/browser-destinations/destinations/sprig-web/src/identifyUser/generated-types.ts diff --git a/packages/browser-destinations/src/destinations/sprig-web/identifyUser/index.ts b/packages/browser-destinations/destinations/sprig-web/src/identifyUser/index.ts similarity index 96% rename from packages/browser-destinations/src/destinations/sprig-web/identifyUser/index.ts rename to packages/browser-destinations/destinations/sprig-web/src/identifyUser/index.ts index 5a080d59c0..d1d80bd946 100644 --- a/packages/browser-destinations/src/destinations/sprig-web/identifyUser/index.ts +++ b/packages/browser-destinations/destinations/sprig-web/src/identifyUser/index.ts @@ -1,4 +1,4 @@ -import type { BrowserActionDefinition } from '../../../lib/browser-destinations' +import type { BrowserActionDefinition } from '@segment/browser-destination-runtime/types' import type { Settings } from '../generated-types' import type { Payload } from './generated-types' import type { Sprig } from '../types' diff --git a/packages/browser-destinations/src/destinations/sprig-web/index.ts b/packages/browser-destinations/destinations/sprig-web/src/index.ts similarity index 92% rename from packages/browser-destinations/src/destinations/sprig-web/index.ts rename to packages/browser-destinations/destinations/sprig-web/src/index.ts index f6b0e7b148..fe0a211fa3 100644 --- a/packages/browser-destinations/src/destinations/sprig-web/index.ts +++ b/packages/browser-destinations/destinations/sprig-web/src/index.ts @@ -1,6 +1,6 @@ import type { Settings } from './generated-types' -import type { BrowserDestinationDefinition } from '../../lib/browser-destinations' -import { browserDestination } from '../../runtime/shim' +import type { BrowserDestinationDefinition } from '@segment/browser-destination-runtime/types' +import { browserDestination } from '@segment/browser-destination-runtime/shim' import { Sprig } from './types' import identifyUser from './identifyUser' import signoutUser from './signoutUser' diff --git a/packages/browser-destinations/src/destinations/sprig-web/signoutUser/generated-types.ts b/packages/browser-destinations/destinations/sprig-web/src/signoutUser/generated-types.ts similarity index 100% rename from packages/browser-destinations/src/destinations/sprig-web/signoutUser/generated-types.ts rename to packages/browser-destinations/destinations/sprig-web/src/signoutUser/generated-types.ts diff --git a/packages/browser-destinations/src/destinations/sprig-web/signoutUser/index.ts b/packages/browser-destinations/destinations/sprig-web/src/signoutUser/index.ts similarity index 85% rename from packages/browser-destinations/src/destinations/sprig-web/signoutUser/index.ts rename to packages/browser-destinations/destinations/sprig-web/src/signoutUser/index.ts index 69c36e6a65..28f6480aa9 100644 --- a/packages/browser-destinations/src/destinations/sprig-web/signoutUser/index.ts +++ b/packages/browser-destinations/destinations/sprig-web/src/signoutUser/index.ts @@ -1,4 +1,4 @@ -import type { BrowserActionDefinition } from '../../../lib/browser-destinations' +import type { BrowserActionDefinition } from '@segment/browser-destination-runtime/types' import type { Settings } from '../generated-types' import type { Payload } from './generated-types' import type { Sprig } from '../types' diff --git a/packages/browser-destinations/src/destinations/sprig-web/trackEvent/__tests__/index.test.ts b/packages/browser-destinations/destinations/sprig-web/src/trackEvent/__tests__/index.test.ts similarity index 90% rename from packages/browser-destinations/src/destinations/sprig-web/trackEvent/__tests__/index.test.ts rename to packages/browser-destinations/destinations/sprig-web/src/trackEvent/__tests__/index.test.ts index 5d9d19742b..813fba958d 100644 --- a/packages/browser-destinations/src/destinations/sprig-web/trackEvent/__tests__/index.test.ts +++ b/packages/browser-destinations/destinations/sprig-web/src/trackEvent/__tests__/index.test.ts @@ -1,6 +1,6 @@ import { Analytics, Context } from '@segment/analytics-next' import sprigWebDestination, { destination } from '../../index' -import { Subscription } from '../../../../lib/browser-destinations' +import { Subscription } from '@segment/browser-destination-runtime/types' const subscriptions: Subscription[] = [ { @@ -27,7 +27,7 @@ const subscriptions: Subscription[] = [ describe('trackEvent', () => { beforeAll(() => { - jest.mock('../../../../runtime/load-script', () => ({ + jest.mock('@segment/browser-destination-runtime/load-script', () => ({ loadScript: (_src: any, _attributes: any) => {} })) }) diff --git a/packages/browser-destinations/src/destinations/sprig-web/trackEvent/generated-types.ts b/packages/browser-destinations/destinations/sprig-web/src/trackEvent/generated-types.ts similarity index 100% rename from packages/browser-destinations/src/destinations/sprig-web/trackEvent/generated-types.ts rename to packages/browser-destinations/destinations/sprig-web/src/trackEvent/generated-types.ts diff --git a/packages/browser-destinations/src/destinations/sprig-web/trackEvent/index.ts b/packages/browser-destinations/destinations/sprig-web/src/trackEvent/index.ts similarity index 96% rename from packages/browser-destinations/src/destinations/sprig-web/trackEvent/index.ts rename to packages/browser-destinations/destinations/sprig-web/src/trackEvent/index.ts index 256cc2e8ef..1cabd2bca4 100644 --- a/packages/browser-destinations/src/destinations/sprig-web/trackEvent/index.ts +++ b/packages/browser-destinations/destinations/sprig-web/src/trackEvent/index.ts @@ -1,4 +1,4 @@ -import type { BrowserActionDefinition } from '../../../lib/browser-destinations' +import type { BrowserActionDefinition } from '@segment/browser-destination-runtime/types' import type { Settings } from '../generated-types' import type { Payload } from './generated-types' import type { Sprig } from '../types' diff --git a/packages/browser-destinations/src/destinations/sprig-web/types.ts b/packages/browser-destinations/destinations/sprig-web/src/types.ts similarity index 100% rename from packages/browser-destinations/src/destinations/sprig-web/types.ts rename to packages/browser-destinations/destinations/sprig-web/src/types.ts diff --git a/packages/browser-destinations/src/destinations/sprig-web/updateUserId/__tests__/index.test.ts b/packages/browser-destinations/destinations/sprig-web/src/updateUserId/__tests__/index.test.ts similarity index 93% rename from packages/browser-destinations/src/destinations/sprig-web/updateUserId/__tests__/index.test.ts rename to packages/browser-destinations/destinations/sprig-web/src/updateUserId/__tests__/index.test.ts index 2ac11bd586..52c9112a9f 100644 --- a/packages/browser-destinations/src/destinations/sprig-web/updateUserId/__tests__/index.test.ts +++ b/packages/browser-destinations/destinations/sprig-web/src/updateUserId/__tests__/index.test.ts @@ -1,6 +1,6 @@ import { Analytics, Context } from '@segment/analytics-next' import sprigWebDestination, { destination } from '../../index' -import { Subscription } from '../../../../lib/browser-destinations' +import { Subscription } from '@segment/browser-destination-runtime/types' const subscriptions: Subscription[] = [ { @@ -21,7 +21,7 @@ const subscriptions: Subscription[] = [ describe('updateUserId', () => { beforeAll(() => { - jest.mock('../../../../runtime/load-script', () => ({ + jest.mock('@segment/browser-destination-runtime/load-script', () => ({ loadScript: (_src: any, _attributes: any) => {} })) }) diff --git a/packages/browser-destinations/src/destinations/sprig-web/updateUserId/generated-types.ts b/packages/browser-destinations/destinations/sprig-web/src/updateUserId/generated-types.ts similarity index 100% rename from packages/browser-destinations/src/destinations/sprig-web/updateUserId/generated-types.ts rename to packages/browser-destinations/destinations/sprig-web/src/updateUserId/generated-types.ts diff --git a/packages/browser-destinations/src/destinations/sprig-web/updateUserId/index.ts b/packages/browser-destinations/destinations/sprig-web/src/updateUserId/index.ts similarity index 94% rename from packages/browser-destinations/src/destinations/sprig-web/updateUserId/index.ts rename to packages/browser-destinations/destinations/sprig-web/src/updateUserId/index.ts index c6554e3e54..5cbedf5b63 100644 --- a/packages/browser-destinations/src/destinations/sprig-web/updateUserId/index.ts +++ b/packages/browser-destinations/destinations/sprig-web/src/updateUserId/index.ts @@ -1,4 +1,4 @@ -import type { BrowserActionDefinition } from '../../../lib/browser-destinations' +import type { BrowserActionDefinition } from '@segment/browser-destination-runtime/types' import type { Settings } from '../generated-types' import type { Payload } from './generated-types' import type { Sprig } from '../types' diff --git a/packages/browser-destinations/destinations/sprig-web/tsconfig.json b/packages/browser-destinations/destinations/sprig-web/tsconfig.json new file mode 100644 index 0000000000..71c49219d9 --- /dev/null +++ b/packages/browser-destinations/destinations/sprig-web/tsconfig.json @@ -0,0 +1,9 @@ +{ + "extends": "../../tsconfig.build.json", + "compilerOptions": { + "rootDir": "./src", + "baseUrl": "." + }, + "include": ["src"], + "exclude": ["dist", "**/__tests__"] +} \ No newline at end of file diff --git a/packages/browser-destinations/destinations/stackadapt/package.json b/packages/browser-destinations/destinations/stackadapt/package.json new file mode 100644 index 0000000000..251354fee2 --- /dev/null +++ b/packages/browser-destinations/destinations/stackadapt/package.json @@ -0,0 +1,20 @@ +{ + "name": "@segment/analytics-browser-actions-stackadapt", + "version": "0.0.0", + "license": "MIT", + "main": "./dist/cjs", + "module": "./dist/esm", + "scripts": { + "build": "yarn build:esm && yarn build:cjs", + "build:cjs": "tsc --module commonjs --outDir ./dist/cjs", + "build:esm": "tsc --outDir ./dist/esm" + }, + "typings": "./dist/esm", + "dependencies": { + "@segment/actions-core": "^3.70.0", + "@segment/browser-destination-runtime": "^0.0.0" + }, + "peerDependencies": { + "@segment/analytics-next": "*" + } +} diff --git a/packages/browser-destinations/src/destinations/stackadapt/__tests__/index.test.ts b/packages/browser-destinations/destinations/stackadapt/src/__tests__/index.test.ts similarity index 100% rename from packages/browser-destinations/src/destinations/stackadapt/__tests__/index.test.ts rename to packages/browser-destinations/destinations/stackadapt/src/__tests__/index.test.ts diff --git a/packages/browser-destinations/src/destinations/stackadapt/__tests__/page.test.ts b/packages/browser-destinations/destinations/stackadapt/src/__tests__/page.test.ts similarity index 100% rename from packages/browser-destinations/src/destinations/stackadapt/__tests__/page.test.ts rename to packages/browser-destinations/destinations/stackadapt/src/__tests__/page.test.ts diff --git a/packages/browser-destinations/src/destinations/stackadapt/__tests__/track.test.ts b/packages/browser-destinations/destinations/stackadapt/src/__tests__/track.test.ts similarity index 100% rename from packages/browser-destinations/src/destinations/stackadapt/__tests__/track.test.ts rename to packages/browser-destinations/destinations/stackadapt/src/__tests__/track.test.ts diff --git a/packages/browser-destinations/src/destinations/stackadapt/generated-types.ts b/packages/browser-destinations/destinations/stackadapt/src/generated-types.ts similarity index 100% rename from packages/browser-destinations/src/destinations/stackadapt/generated-types.ts rename to packages/browser-destinations/destinations/stackadapt/src/generated-types.ts diff --git a/packages/browser-destinations/src/destinations/stackadapt/index.ts b/packages/browser-destinations/destinations/stackadapt/src/index.ts similarity index 88% rename from packages/browser-destinations/src/destinations/stackadapt/index.ts rename to packages/browser-destinations/destinations/stackadapt/src/index.ts index 10d186e51f..6fce3b0c91 100644 --- a/packages/browser-destinations/src/destinations/stackadapt/index.ts +++ b/packages/browser-destinations/destinations/stackadapt/src/index.ts @@ -1,6 +1,6 @@ import type { Settings } from './generated-types' -import type { BrowserDestinationDefinition } from '../../lib/browser-destinations' -import { browserDestination } from '../../runtime/shim' +import type { BrowserDestinationDefinition } from '@segment/browser-destination-runtime/types' +import { browserDestination } from '@segment/browser-destination-runtime/shim' import { defaultValues } from '@segment/actions-core' import { initScript } from './init-script' import trackEvent, { trackEventDefaultSubscription } from './trackEvent' diff --git a/packages/browser-destinations/src/destinations/stackadapt/init-script.ts b/packages/browser-destinations/destinations/stackadapt/src/init-script.ts similarity index 100% rename from packages/browser-destinations/src/destinations/stackadapt/init-script.ts rename to packages/browser-destinations/destinations/stackadapt/src/init-script.ts diff --git a/packages/browser-destinations/src/destinations/stackadapt/trackEvent/generated-types.ts b/packages/browser-destinations/destinations/stackadapt/src/trackEvent/generated-types.ts similarity index 100% rename from packages/browser-destinations/src/destinations/stackadapt/trackEvent/generated-types.ts rename to packages/browser-destinations/destinations/stackadapt/src/trackEvent/generated-types.ts diff --git a/packages/browser-destinations/src/destinations/stackadapt/trackEvent/index.ts b/packages/browser-destinations/destinations/stackadapt/src/trackEvent/index.ts similarity index 92% rename from packages/browser-destinations/src/destinations/stackadapt/trackEvent/index.ts rename to packages/browser-destinations/destinations/stackadapt/src/trackEvent/index.ts index 8ed52e8246..997821997a 100644 --- a/packages/browser-destinations/src/destinations/stackadapt/trackEvent/index.ts +++ b/packages/browser-destinations/destinations/stackadapt/src/trackEvent/index.ts @@ -1,4 +1,4 @@ -import type { BrowserActionDefinition } from '../../../lib/browser-destinations' +import type { BrowserActionDefinition } from '@segment/browser-destination-runtime/types' import type { Settings } from '../generated-types' import type { StackAdaptSDK } from '../types' import type { Payload } from './generated-types' diff --git a/packages/browser-destinations/src/destinations/stackadapt/trackPage/generated-types.ts b/packages/browser-destinations/destinations/stackadapt/src/trackPage/generated-types.ts similarity index 100% rename from packages/browser-destinations/src/destinations/stackadapt/trackPage/generated-types.ts rename to packages/browser-destinations/destinations/stackadapt/src/trackPage/generated-types.ts diff --git a/packages/browser-destinations/src/destinations/stackadapt/trackPage/index.ts b/packages/browser-destinations/destinations/stackadapt/src/trackPage/index.ts similarity index 90% rename from packages/browser-destinations/src/destinations/stackadapt/trackPage/index.ts rename to packages/browser-destinations/destinations/stackadapt/src/trackPage/index.ts index 0f45cdb66b..55f2637f63 100644 --- a/packages/browser-destinations/src/destinations/stackadapt/trackPage/index.ts +++ b/packages/browser-destinations/destinations/stackadapt/src/trackPage/index.ts @@ -1,4 +1,4 @@ -import type { BrowserActionDefinition } from '../../../lib/browser-destinations' +import type { BrowserActionDefinition } from '@segment/browser-destination-runtime/types' import type { Settings } from '../generated-types' import type { StackAdaptSDK } from '../types' import type { Payload } from './generated-types' diff --git a/packages/browser-destinations/src/destinations/stackadapt/types.ts b/packages/browser-destinations/destinations/stackadapt/src/types.ts similarity index 100% rename from packages/browser-destinations/src/destinations/stackadapt/types.ts rename to packages/browser-destinations/destinations/stackadapt/src/types.ts diff --git a/packages/browser-destinations/destinations/stackadapt/tsconfig.json b/packages/browser-destinations/destinations/stackadapt/tsconfig.json new file mode 100644 index 0000000000..71c49219d9 --- /dev/null +++ b/packages/browser-destinations/destinations/stackadapt/tsconfig.json @@ -0,0 +1,9 @@ +{ + "extends": "../../tsconfig.build.json", + "compilerOptions": { + "rootDir": "./src", + "baseUrl": "." + }, + "include": ["src"], + "exclude": ["dist", "**/__tests__"] +} \ No newline at end of file diff --git a/packages/browser-destinations/destinations/upollo/package.json b/packages/browser-destinations/destinations/upollo/package.json new file mode 100644 index 0000000000..5d1dd1c4f1 --- /dev/null +++ b/packages/browser-destinations/destinations/upollo/package.json @@ -0,0 +1,20 @@ +{ + "name": "@segment/analytics-browser-actions-upollo", + "version": "0.0.0", + "license": "MIT", + "main": "./dist/cjs", + "module": "./dist/esm", + "scripts": { + "build": "yarn build:esm && yarn build:cjs", + "build:cjs": "tsc --module commonjs --outDir ./dist/cjs", + "build:esm": "tsc --outDir ./dist/esm" + }, + "typings": "./dist/esm", + "dependencies": { + "@segment/actions-core": "^3.70.0", + "@segment/browser-destination-runtime": "^0.0.0" + }, + "peerDependencies": { + "@segment/analytics-next": "*" + } +} diff --git a/packages/browser-destinations/src/destinations/upollo/__tests__/index.test.ts b/packages/browser-destinations/destinations/upollo/src/__tests__/index.test.ts similarity index 100% rename from packages/browser-destinations/src/destinations/upollo/__tests__/index.test.ts rename to packages/browser-destinations/destinations/upollo/src/__tests__/index.test.ts diff --git a/packages/browser-destinations/src/destinations/upollo/enrichUser/__tests__/index.test.ts b/packages/browser-destinations/destinations/upollo/src/enrichUser/__tests__/index.test.ts similarity index 100% rename from packages/browser-destinations/src/destinations/upollo/enrichUser/__tests__/index.test.ts rename to packages/browser-destinations/destinations/upollo/src/enrichUser/__tests__/index.test.ts diff --git a/packages/browser-destinations/src/destinations/upollo/enrichUser/generated-types.ts b/packages/browser-destinations/destinations/upollo/src/enrichUser/generated-types.ts similarity index 100% rename from packages/browser-destinations/src/destinations/upollo/enrichUser/generated-types.ts rename to packages/browser-destinations/destinations/upollo/src/enrichUser/generated-types.ts diff --git a/packages/browser-destinations/src/destinations/upollo/enrichUser/index.ts b/packages/browser-destinations/destinations/upollo/src/enrichUser/index.ts similarity index 96% rename from packages/browser-destinations/src/destinations/upollo/enrichUser/index.ts rename to packages/browser-destinations/destinations/upollo/src/enrichUser/index.ts index 1d5772d976..c68d305a66 100644 --- a/packages/browser-destinations/src/destinations/upollo/enrichUser/index.ts +++ b/packages/browser-destinations/destinations/upollo/src/enrichUser/index.ts @@ -1,4 +1,4 @@ -import { BrowserActionDefinition } from 'src/lib/browser-destinations' +import { BrowserActionDefinition } from '@segment/browser-destination-runtime/types' import { UpolloClient } from '../types' import type { Settings } from '../generated-types' import type { Payload } from './generated-types' diff --git a/packages/browser-destinations/src/destinations/upollo/generated-types.ts b/packages/browser-destinations/destinations/upollo/src/generated-types.ts similarity index 100% rename from packages/browser-destinations/src/destinations/upollo/generated-types.ts rename to packages/browser-destinations/destinations/upollo/src/generated-types.ts diff --git a/packages/browser-destinations/src/destinations/upollo/identifyUser/__tests__/index.test.ts b/packages/browser-destinations/destinations/upollo/src/identifyUser/__tests__/index.test.ts similarity index 100% rename from packages/browser-destinations/src/destinations/upollo/identifyUser/__tests__/index.test.ts rename to packages/browser-destinations/destinations/upollo/src/identifyUser/__tests__/index.test.ts diff --git a/packages/browser-destinations/src/destinations/upollo/identifyUser/generated-types.ts b/packages/browser-destinations/destinations/upollo/src/identifyUser/generated-types.ts similarity index 100% rename from packages/browser-destinations/src/destinations/upollo/identifyUser/generated-types.ts rename to packages/browser-destinations/destinations/upollo/src/identifyUser/generated-types.ts diff --git a/packages/browser-destinations/src/destinations/upollo/identifyUser/index.ts b/packages/browser-destinations/destinations/upollo/src/identifyUser/index.ts similarity index 97% rename from packages/browser-destinations/src/destinations/upollo/identifyUser/index.ts rename to packages/browser-destinations/destinations/upollo/src/identifyUser/index.ts index 8b542054c7..c043e7670f 100644 --- a/packages/browser-destinations/src/destinations/upollo/identifyUser/index.ts +++ b/packages/browser-destinations/destinations/upollo/src/identifyUser/index.ts @@ -1,4 +1,4 @@ -import { BrowserActionDefinition } from 'src/lib/browser-destinations' +import { BrowserActionDefinition } from '@segment/browser-destination-runtime/types' import { UpolloClient } from '../types' import type { Settings } from '../generated-types' import type { Payload } from './generated-types' diff --git a/packages/browser-destinations/src/destinations/upollo/index.ts b/packages/browser-destinations/destinations/upollo/src/index.ts similarity index 90% rename from packages/browser-destinations/src/destinations/upollo/index.ts rename to packages/browser-destinations/destinations/upollo/src/index.ts index 0fd7cd28b2..a8b523acdb 100644 --- a/packages/browser-destinations/src/destinations/upollo/index.ts +++ b/packages/browser-destinations/destinations/upollo/src/index.ts @@ -1,6 +1,6 @@ import type { Settings } from './generated-types' -import type { BrowserDestinationDefinition } from '../../lib/browser-destinations' -import { browserDestination } from '../../runtime/shim' +import type { BrowserDestinationDefinition } from '@segment/browser-destination-runtime/types' +import { browserDestination } from '@segment/browser-destination-runtime/shim' import { UpolloClient } from './types' import { defaultValues } from '@segment/actions-core' import identifyUser from './identifyUser' diff --git a/packages/browser-destinations/src/destinations/upollo/types.ts b/packages/browser-destinations/destinations/upollo/src/types.ts similarity index 100% rename from packages/browser-destinations/src/destinations/upollo/types.ts rename to packages/browser-destinations/destinations/upollo/src/types.ts diff --git a/packages/browser-destinations/destinations/upollo/tsconfig.json b/packages/browser-destinations/destinations/upollo/tsconfig.json new file mode 100644 index 0000000000..71c49219d9 --- /dev/null +++ b/packages/browser-destinations/destinations/upollo/tsconfig.json @@ -0,0 +1,9 @@ +{ + "extends": "../../tsconfig.build.json", + "compilerOptions": { + "rootDir": "./src", + "baseUrl": "." + }, + "include": ["src"], + "exclude": ["dist", "**/__tests__"] +} \ No newline at end of file diff --git a/packages/browser-destinations/destinations/userpilot/package.json b/packages/browser-destinations/destinations/userpilot/package.json new file mode 100644 index 0000000000..b5ded724fd --- /dev/null +++ b/packages/browser-destinations/destinations/userpilot/package.json @@ -0,0 +1,20 @@ +{ + "name": "@segment/analytics-browser-actions-userpilot", + "version": "0.0.0", + "license": "MIT", + "main": "./dist/cjs", + "module": "./dist/esm", + "scripts": { + "build": "yarn build:esm && yarn build:cjs", + "build:cjs": "tsc --module commonjs --outDir ./dist/cjs", + "build:esm": "tsc --outDir ./dist/esm" + }, + "typings": "./dist/esm", + "dependencies": { + "@segment/actions-core": "^3.70.0", + "@segment/browser-destination-runtime": "^0.0.0" + }, + "peerDependencies": { + "@segment/analytics-next": "*" + } +} diff --git a/packages/browser-destinations/src/destinations/userpilot/__tests__/index.test.ts b/packages/browser-destinations/destinations/userpilot/src/__tests__/index.test.ts similarity index 97% rename from packages/browser-destinations/src/destinations/userpilot/__tests__/index.test.ts rename to packages/browser-destinations/destinations/userpilot/src/__tests__/index.test.ts index 39ef2ecc8d..e16878eb46 100644 --- a/packages/browser-destinations/src/destinations/userpilot/__tests__/index.test.ts +++ b/packages/browser-destinations/destinations/userpilot/src/__tests__/index.test.ts @@ -1,5 +1,5 @@ import { Analytics, Context } from '@segment/analytics-next' -import { Subscription } from '../../../lib/browser-destinations' +import { Subscription } from '@segment/browser-destination-runtime/types' import userpilot, { destination } from '../index' const example: Subscription[] = [ diff --git a/packages/browser-destinations/src/destinations/userpilot/generated-types.ts b/packages/browser-destinations/destinations/userpilot/src/generated-types.ts similarity index 100% rename from packages/browser-destinations/src/destinations/userpilot/generated-types.ts rename to packages/browser-destinations/destinations/userpilot/src/generated-types.ts diff --git a/packages/browser-destinations/src/destinations/userpilot/identifyCompany/generated-types.ts b/packages/browser-destinations/destinations/userpilot/src/identifyCompany/generated-types.ts similarity index 100% rename from packages/browser-destinations/src/destinations/userpilot/identifyCompany/generated-types.ts rename to packages/browser-destinations/destinations/userpilot/src/identifyCompany/generated-types.ts diff --git a/packages/browser-destinations/src/destinations/userpilot/identifyCompany/index.ts b/packages/browser-destinations/destinations/userpilot/src/identifyCompany/index.ts similarity index 91% rename from packages/browser-destinations/src/destinations/userpilot/identifyCompany/index.ts rename to packages/browser-destinations/destinations/userpilot/src/identifyCompany/index.ts index d67651cc4e..a13ea3ba82 100644 --- a/packages/browser-destinations/src/destinations/userpilot/identifyCompany/index.ts +++ b/packages/browser-destinations/destinations/userpilot/src/identifyCompany/index.ts @@ -1,4 +1,4 @@ -import type { BrowserActionDefinition } from '../../../lib/browser-destinations' +import type { BrowserActionDefinition } from '@segment/browser-destination-runtime/types' import type { Settings } from '../generated-types' import type { Payload } from './generated-types' import type { Userpilot } from '../types' diff --git a/packages/browser-destinations/src/destinations/userpilot/identifyUser/generated-types.ts b/packages/browser-destinations/destinations/userpilot/src/identifyUser/generated-types.ts similarity index 100% rename from packages/browser-destinations/src/destinations/userpilot/identifyUser/generated-types.ts rename to packages/browser-destinations/destinations/userpilot/src/identifyUser/generated-types.ts diff --git a/packages/browser-destinations/src/destinations/userpilot/identifyUser/index.ts b/packages/browser-destinations/destinations/userpilot/src/identifyUser/index.ts similarity index 94% rename from packages/browser-destinations/src/destinations/userpilot/identifyUser/index.ts rename to packages/browser-destinations/destinations/userpilot/src/identifyUser/index.ts index d28d4e9ecb..3abedf41d7 100644 --- a/packages/browser-destinations/src/destinations/userpilot/identifyUser/index.ts +++ b/packages/browser-destinations/destinations/userpilot/src/identifyUser/index.ts @@ -1,4 +1,4 @@ -import type { BrowserActionDefinition } from '../../../lib/browser-destinations' +import type { BrowserActionDefinition } from '@segment/browser-destination-runtime/types' import type { Settings } from '../generated-types' import type { Payload } from './generated-types' import type { Userpilot } from '../types' diff --git a/packages/browser-destinations/src/destinations/userpilot/index.ts b/packages/browser-destinations/destinations/userpilot/src/index.ts similarity index 94% rename from packages/browser-destinations/src/destinations/userpilot/index.ts rename to packages/browser-destinations/destinations/userpilot/src/index.ts index 8107d1ebf3..d9c44e92d3 100644 --- a/packages/browser-destinations/src/destinations/userpilot/index.ts +++ b/packages/browser-destinations/destinations/userpilot/src/index.ts @@ -1,8 +1,8 @@ import type { Settings } from './generated-types' -import type { BrowserDestinationDefinition } from '../../lib/browser-destinations' +import type { BrowserDestinationDefinition } from '@segment/browser-destination-runtime/types' import type { Userpilot } from './types' -import { browserDestination } from '../../runtime/shim' +import { browserDestination } from '@segment/browser-destination-runtime/shim' import { defaultValues } from '@segment/actions-core' import identifyUser from './identifyUser' diff --git a/packages/browser-destinations/src/destinations/userpilot/pageView/generated-types.ts b/packages/browser-destinations/destinations/userpilot/src/pageView/generated-types.ts similarity index 100% rename from packages/browser-destinations/src/destinations/userpilot/pageView/generated-types.ts rename to packages/browser-destinations/destinations/userpilot/src/pageView/generated-types.ts diff --git a/packages/browser-destinations/src/destinations/userpilot/pageView/index.ts b/packages/browser-destinations/destinations/userpilot/src/pageView/index.ts similarity index 92% rename from packages/browser-destinations/src/destinations/userpilot/pageView/index.ts rename to packages/browser-destinations/destinations/userpilot/src/pageView/index.ts index 3ff30e1a69..d48e52ca4a 100644 --- a/packages/browser-destinations/src/destinations/userpilot/pageView/index.ts +++ b/packages/browser-destinations/destinations/userpilot/src/pageView/index.ts @@ -1,4 +1,4 @@ -import type { BrowserActionDefinition } from '../../../lib/browser-destinations' +import type { BrowserActionDefinition } from '@segment/browser-destination-runtime/types' import type { Settings } from '../generated-types' import type { Payload } from './generated-types' import type { Userpilot } from '../types' diff --git a/packages/browser-destinations/src/destinations/userpilot/trackEvent/generated-types.ts b/packages/browser-destinations/destinations/userpilot/src/trackEvent/generated-types.ts similarity index 100% rename from packages/browser-destinations/src/destinations/userpilot/trackEvent/generated-types.ts rename to packages/browser-destinations/destinations/userpilot/src/trackEvent/generated-types.ts diff --git a/packages/browser-destinations/src/destinations/userpilot/trackEvent/index.ts b/packages/browser-destinations/destinations/userpilot/src/trackEvent/index.ts similarity index 92% rename from packages/browser-destinations/src/destinations/userpilot/trackEvent/index.ts rename to packages/browser-destinations/destinations/userpilot/src/trackEvent/index.ts index 1ea9e37bd1..618bd94d83 100644 --- a/packages/browser-destinations/src/destinations/userpilot/trackEvent/index.ts +++ b/packages/browser-destinations/destinations/userpilot/src/trackEvent/index.ts @@ -1,4 +1,4 @@ -import type { BrowserActionDefinition } from '../../../lib/browser-destinations' +import type { BrowserActionDefinition } from '@segment/browser-destination-runtime/types' import type { Settings } from '../generated-types' import type { Payload } from './generated-types' import type { Userpilot } from '../types' diff --git a/packages/browser-destinations/src/destinations/userpilot/types.ts b/packages/browser-destinations/destinations/userpilot/src/types.ts similarity index 100% rename from packages/browser-destinations/src/destinations/userpilot/types.ts rename to packages/browser-destinations/destinations/userpilot/src/types.ts diff --git a/packages/browser-destinations/destinations/userpilot/tsconfig.json b/packages/browser-destinations/destinations/userpilot/tsconfig.json new file mode 100644 index 0000000000..71c49219d9 --- /dev/null +++ b/packages/browser-destinations/destinations/userpilot/tsconfig.json @@ -0,0 +1,9 @@ +{ + "extends": "../../tsconfig.build.json", + "compilerOptions": { + "rootDir": "./src", + "baseUrl": "." + }, + "include": ["src"], + "exclude": ["dist", "**/__tests__"] +} \ No newline at end of file diff --git a/packages/browser-destinations/destinations/vwo/package.json b/packages/browser-destinations/destinations/vwo/package.json new file mode 100644 index 0000000000..5fa9c03ce6 --- /dev/null +++ b/packages/browser-destinations/destinations/vwo/package.json @@ -0,0 +1,20 @@ +{ + "name": "@segment/analytics-browser-actions-vwo", + "version": "0.0.0", + "license": "MIT", + "main": "./dist/cjs", + "module": "./dist/esm", + "scripts": { + "build": "yarn build:esm && yarn build:cjs", + "build:cjs": "tsc --module commonjs --outDir ./dist/cjs", + "build:esm": "tsc --outDir ./dist/esm" + }, + "typings": "./dist/esm", + "dependencies": { + "@segment/actions-core": "^3.70.0", + "@segment/browser-destination-runtime": "^0.0.0" + }, + "peerDependencies": { + "@segment/analytics-next": "*" + } +} diff --git a/packages/browser-destinations/src/destinations/vwo/__tests__/index.test.ts b/packages/browser-destinations/destinations/vwo/src/__tests__/index.test.ts similarity index 93% rename from packages/browser-destinations/src/destinations/vwo/__tests__/index.test.ts rename to packages/browser-destinations/destinations/vwo/src/__tests__/index.test.ts index 691b1dd76f..ff0fb8a2c5 100644 --- a/packages/browser-destinations/src/destinations/vwo/__tests__/index.test.ts +++ b/packages/browser-destinations/destinations/vwo/src/__tests__/index.test.ts @@ -1,4 +1,4 @@ -import { Subscription } from '../../../lib/browser-destinations' +import { Subscription } from '@segment/browser-destination-runtime/types' import { Analytics, Context } from '@segment/analytics-next' import vwoDestination, { destination } from '../index' diff --git a/packages/browser-destinations/src/destinations/vwo/generated-types.ts b/packages/browser-destinations/destinations/vwo/src/generated-types.ts similarity index 100% rename from packages/browser-destinations/src/destinations/vwo/generated-types.ts rename to packages/browser-destinations/destinations/vwo/src/generated-types.ts diff --git a/packages/browser-destinations/src/destinations/vwo/identifyUser/__tests__/index.test.ts b/packages/browser-destinations/destinations/vwo/src/identifyUser/__tests__/index.test.ts similarity index 95% rename from packages/browser-destinations/src/destinations/vwo/identifyUser/__tests__/index.test.ts rename to packages/browser-destinations/destinations/vwo/src/identifyUser/__tests__/index.test.ts index c254dfac2c..c67395104f 100644 --- a/packages/browser-destinations/src/destinations/vwo/identifyUser/__tests__/index.test.ts +++ b/packages/browser-destinations/destinations/vwo/src/identifyUser/__tests__/index.test.ts @@ -1,5 +1,5 @@ import { Analytics, Context } from '@segment/analytics-next' -import { Subscription } from 'src/lib/browser-destinations' +import { Subscription } from '@segment/browser-destination-runtime' import vwoDestination, { destination } from '../../index' const subscriptions: Subscription[] = [ diff --git a/packages/browser-destinations/src/destinations/vwo/identifyUser/generated-types.ts b/packages/browser-destinations/destinations/vwo/src/identifyUser/generated-types.ts similarity index 100% rename from packages/browser-destinations/src/destinations/vwo/identifyUser/generated-types.ts rename to packages/browser-destinations/destinations/vwo/src/identifyUser/generated-types.ts diff --git a/packages/browser-destinations/src/destinations/vwo/identifyUser/index.ts b/packages/browser-destinations/destinations/vwo/src/identifyUser/index.ts similarity index 92% rename from packages/browser-destinations/src/destinations/vwo/identifyUser/index.ts rename to packages/browser-destinations/destinations/vwo/src/identifyUser/index.ts index 1ec8b2303c..d81bb0d6ad 100644 --- a/packages/browser-destinations/src/destinations/vwo/identifyUser/index.ts +++ b/packages/browser-destinations/destinations/vwo/src/identifyUser/index.ts @@ -1,4 +1,4 @@ -import type { BrowserActionDefinition } from '../../../lib/browser-destinations' +import type { BrowserActionDefinition } from '@segment/browser-destination-runtime/types' import type { VWO } from '../types' import type { Settings } from '../generated-types' import type { Payload } from './generated-types' diff --git a/packages/browser-destinations/src/destinations/vwo/index.ts b/packages/browser-destinations/destinations/vwo/src/index.ts similarity index 94% rename from packages/browser-destinations/src/destinations/vwo/index.ts rename to packages/browser-destinations/destinations/vwo/src/index.ts index 3619ad6266..b89be03779 100644 --- a/packages/browser-destinations/src/destinations/vwo/index.ts +++ b/packages/browser-destinations/destinations/vwo/src/index.ts @@ -1,6 +1,6 @@ import type { Settings } from './generated-types' -import type { BrowserDestinationDefinition } from '../../lib/browser-destinations' -import { browserDestination } from '../../runtime/shim' +import type { BrowserDestinationDefinition } from '@segment/browser-destination-runtime/types' +import { browserDestination } from '@segment/browser-destination-runtime/shim' import type { VWO } from './types' import { initScript } from './init-script' import { defaultValues } from '@segment/actions-core' diff --git a/packages/browser-destinations/src/destinations/vwo/init-script.ts b/packages/browser-destinations/destinations/vwo/src/init-script.ts similarity index 100% rename from packages/browser-destinations/src/destinations/vwo/init-script.ts rename to packages/browser-destinations/destinations/vwo/src/init-script.ts diff --git a/packages/browser-destinations/src/destinations/vwo/trackEvent/__tests__/index.test.ts b/packages/browser-destinations/destinations/vwo/src/trackEvent/__tests__/index.test.ts similarity index 96% rename from packages/browser-destinations/src/destinations/vwo/trackEvent/__tests__/index.test.ts rename to packages/browser-destinations/destinations/vwo/src/trackEvent/__tests__/index.test.ts index 0ad0d056d2..dbe43805fa 100644 --- a/packages/browser-destinations/src/destinations/vwo/trackEvent/__tests__/index.test.ts +++ b/packages/browser-destinations/destinations/vwo/src/trackEvent/__tests__/index.test.ts @@ -1,5 +1,5 @@ import { Analytics, Context } from '@segment/analytics-next' -import { Subscription } from 'src/lib/browser-destinations' +import { Subscription } from '@segment/browser-destination-runtime' import vwoDestination, { destination } from '../../index' const subscriptions: Subscription[] = [ diff --git a/packages/browser-destinations/src/destinations/vwo/trackEvent/generated-types.ts b/packages/browser-destinations/destinations/vwo/src/trackEvent/generated-types.ts similarity index 100% rename from packages/browser-destinations/src/destinations/vwo/trackEvent/generated-types.ts rename to packages/browser-destinations/destinations/vwo/src/trackEvent/generated-types.ts diff --git a/packages/browser-destinations/src/destinations/vwo/trackEvent/index.ts b/packages/browser-destinations/destinations/vwo/src/trackEvent/index.ts similarity index 93% rename from packages/browser-destinations/src/destinations/vwo/trackEvent/index.ts rename to packages/browser-destinations/destinations/vwo/src/trackEvent/index.ts index d2bf958c8f..436cd8af41 100644 --- a/packages/browser-destinations/src/destinations/vwo/trackEvent/index.ts +++ b/packages/browser-destinations/destinations/vwo/src/trackEvent/index.ts @@ -1,4 +1,4 @@ -import type { BrowserActionDefinition } from '../../../lib/browser-destinations' +import type { BrowserActionDefinition } from '@segment/browser-destination-runtime/types' import type { VWO } from '../types' import type { Settings } from '../generated-types' import type { Payload } from './generated-types' diff --git a/packages/browser-destinations/src/destinations/vwo/types.ts b/packages/browser-destinations/destinations/vwo/src/types.ts similarity index 100% rename from packages/browser-destinations/src/destinations/vwo/types.ts rename to packages/browser-destinations/destinations/vwo/src/types.ts diff --git a/packages/browser-destinations/src/destinations/vwo/utility.ts b/packages/browser-destinations/destinations/vwo/src/utility.ts similarity index 100% rename from packages/browser-destinations/src/destinations/vwo/utility.ts rename to packages/browser-destinations/destinations/vwo/src/utility.ts diff --git a/packages/browser-destinations/destinations/vwo/tsconfig.json b/packages/browser-destinations/destinations/vwo/tsconfig.json new file mode 100644 index 0000000000..71c49219d9 --- /dev/null +++ b/packages/browser-destinations/destinations/vwo/tsconfig.json @@ -0,0 +1,9 @@ +{ + "extends": "../../tsconfig.build.json", + "compilerOptions": { + "rootDir": "./src", + "baseUrl": "." + }, + "include": ["src"], + "exclude": ["dist", "**/__tests__"] +} \ No newline at end of file diff --git a/packages/browser-destinations/destinations/wisepops/package.json b/packages/browser-destinations/destinations/wisepops/package.json new file mode 100644 index 0000000000..b16eb46cb0 --- /dev/null +++ b/packages/browser-destinations/destinations/wisepops/package.json @@ -0,0 +1,20 @@ +{ + "name": "@segment/analytics-browser-actions-wiseops", + "version": "0.0.0", + "license": "MIT", + "main": "./dist/cjs", + "module": "./dist/esm", + "scripts": { + "build": "yarn build:esm && yarn build:cjs", + "build:cjs": "tsc --module commonjs --outDir ./dist/cjs", + "build:esm": "tsc --outDir ./dist/esm" + }, + "typings": "./dist/esm", + "dependencies": { + "@segment/actions-core": "^3.70.0", + "@segment/browser-destination-runtime": "^0.0.0" + }, + "peerDependencies": { + "@segment/analytics-next": "*" + } +} diff --git a/packages/browser-destinations/src/destinations/wisepops/__tests__/index.test.ts b/packages/browser-destinations/destinations/wisepops/src/__tests__/index.test.ts similarity index 95% rename from packages/browser-destinations/src/destinations/wisepops/__tests__/index.test.ts rename to packages/browser-destinations/destinations/wisepops/src/__tests__/index.test.ts index b6f01a6fc5..43e480a3bf 100644 --- a/packages/browser-destinations/src/destinations/wisepops/__tests__/index.test.ts +++ b/packages/browser-destinations/destinations/wisepops/src/__tests__/index.test.ts @@ -1,6 +1,6 @@ import { Analytics, Context } from '@segment/analytics-next' import wisepopsDestination, { destination } from '../index' -import { Subscription } from '../../../lib/browser-destinations' +import { Subscription } from '@segment/browser-destination-runtime/types' import nock from 'nock' const subscriptions: Subscription[] = [ diff --git a/packages/browser-destinations/src/destinations/wisepops/generated-types.ts b/packages/browser-destinations/destinations/wisepops/src/generated-types.ts similarity index 100% rename from packages/browser-destinations/src/destinations/wisepops/generated-types.ts rename to packages/browser-destinations/destinations/wisepops/src/generated-types.ts diff --git a/packages/browser-destinations/src/destinations/wisepops/index.ts b/packages/browser-destinations/destinations/wisepops/src/index.ts similarity index 93% rename from packages/browser-destinations/src/destinations/wisepops/index.ts rename to packages/browser-destinations/destinations/wisepops/src/index.ts index b4bbd62327..f89716794e 100644 --- a/packages/browser-destinations/src/destinations/wisepops/index.ts +++ b/packages/browser-destinations/destinations/wisepops/src/index.ts @@ -1,6 +1,6 @@ import type { Settings } from './generated-types' -import type { BrowserDestinationDefinition } from '../../lib/browser-destinations' -import { browserDestination } from '../../runtime/shim' +import type { BrowserDestinationDefinition } from '@segment/browser-destination-runtime/types' +import { browserDestination } from '@segment/browser-destination-runtime/shim' import type { Wisepops } from './types' import { defaultValues } from '@segment/actions-core' diff --git a/packages/browser-destinations/src/destinations/wisepops/setCustomProperties/__tests__/index.test.ts b/packages/browser-destinations/destinations/wisepops/src/setCustomProperties/__tests__/index.test.ts similarity index 94% rename from packages/browser-destinations/src/destinations/wisepops/setCustomProperties/__tests__/index.test.ts rename to packages/browser-destinations/destinations/wisepops/src/setCustomProperties/__tests__/index.test.ts index d507b07a45..14aefece9f 100644 --- a/packages/browser-destinations/src/destinations/wisepops/setCustomProperties/__tests__/index.test.ts +++ b/packages/browser-destinations/destinations/wisepops/src/setCustomProperties/__tests__/index.test.ts @@ -1,10 +1,10 @@ import { Analytics, Context } from '@segment/analytics-next' import setCustomPropertiesObject from '../index' import wisepopsDestination from '../../index' -import { Subscription } from '../../../../lib/browser-destinations' +import { Subscription } from '@segment/browser-destination-runtime/types' -import { loadScript } from '../../../../runtime/load-script' -jest.mock('../../../../runtime/load-script') +import { loadScript } from '@segment/browser-destination-runtime/load-script' +jest.mock('@segment/browser-destination-runtime/load-script') beforeEach(async () => { // Prevent Wisepops SDK from being loaded. ;(loadScript as jest.Mock).mockResolvedValue(true) diff --git a/packages/browser-destinations/src/destinations/wisepops/setCustomProperties/generated-types.ts b/packages/browser-destinations/destinations/wisepops/src/setCustomProperties/generated-types.ts similarity index 100% rename from packages/browser-destinations/src/destinations/wisepops/setCustomProperties/generated-types.ts rename to packages/browser-destinations/destinations/wisepops/src/setCustomProperties/generated-types.ts diff --git a/packages/browser-destinations/src/destinations/wisepops/setCustomProperties/index.ts b/packages/browser-destinations/destinations/wisepops/src/setCustomProperties/index.ts similarity index 95% rename from packages/browser-destinations/src/destinations/wisepops/setCustomProperties/index.ts rename to packages/browser-destinations/destinations/wisepops/src/setCustomProperties/index.ts index 7c585cb48d..71945a5bc8 100644 --- a/packages/browser-destinations/src/destinations/wisepops/setCustomProperties/index.ts +++ b/packages/browser-destinations/destinations/wisepops/src/setCustomProperties/index.ts @@ -1,4 +1,4 @@ -import type { BrowserActionDefinition } from '../../../lib/browser-destinations' +import type { BrowserActionDefinition } from '@segment/browser-destination-runtime/types' import type { Settings } from '../generated-types' import type { Payload } from './generated-types' import type { Wisepops } from '../types' diff --git a/packages/browser-destinations/src/destinations/wisepops/trackEvent/__tests__/index.test.ts b/packages/browser-destinations/destinations/wisepops/src/trackEvent/__tests__/index.test.ts similarity index 84% rename from packages/browser-destinations/src/destinations/wisepops/trackEvent/__tests__/index.test.ts rename to packages/browser-destinations/destinations/wisepops/src/trackEvent/__tests__/index.test.ts index ba0dfac097..0325cb4195 100644 --- a/packages/browser-destinations/src/destinations/wisepops/trackEvent/__tests__/index.test.ts +++ b/packages/browser-destinations/destinations/wisepops/src/trackEvent/__tests__/index.test.ts @@ -1,10 +1,10 @@ import { Analytics, Context } from '@segment/analytics-next' import trackEventObject from '../index' import wisepopsDestination from '../../index' -import { Subscription } from '../../../../lib/browser-destinations' +import { Subscription } from '@segment/browser-destination-runtime/types' -import { loadScript } from '../../../../runtime/load-script' -jest.mock('../../../../runtime/load-script') +import { loadScript } from '@segment/browser-destination-runtime/load-script' +jest.mock('@segment/browser-destination-runtime/load-script') beforeEach(async () => { // Prevent Wisepops SDK from being loaded. ;(loadScript as jest.Mock).mockResolvedValue(true) diff --git a/packages/browser-destinations/src/destinations/wisepops/trackEvent/generated-types.ts b/packages/browser-destinations/destinations/wisepops/src/trackEvent/generated-types.ts similarity index 100% rename from packages/browser-destinations/src/destinations/wisepops/trackEvent/generated-types.ts rename to packages/browser-destinations/destinations/wisepops/src/trackEvent/generated-types.ts diff --git a/packages/browser-destinations/src/destinations/wisepops/trackEvent/index.ts b/packages/browser-destinations/destinations/wisepops/src/trackEvent/index.ts similarity index 90% rename from packages/browser-destinations/src/destinations/wisepops/trackEvent/index.ts rename to packages/browser-destinations/destinations/wisepops/src/trackEvent/index.ts index 84c5ef639a..917ec6deae 100644 --- a/packages/browser-destinations/src/destinations/wisepops/trackEvent/index.ts +++ b/packages/browser-destinations/destinations/wisepops/src/trackEvent/index.ts @@ -1,4 +1,4 @@ -import type { BrowserActionDefinition } from '../../../lib/browser-destinations' +import type { BrowserActionDefinition } from '@segment/browser-destination-runtime/types' import type { Settings } from '../generated-types' import type { Payload } from './generated-types' import type { Wisepops } from '../types'; diff --git a/packages/browser-destinations/src/destinations/wisepops/trackGoal/__tests__/index.test.ts b/packages/browser-destinations/destinations/wisepops/src/trackGoal/__tests__/index.test.ts similarity index 85% rename from packages/browser-destinations/src/destinations/wisepops/trackGoal/__tests__/index.test.ts rename to packages/browser-destinations/destinations/wisepops/src/trackGoal/__tests__/index.test.ts index 87a52ff440..06eeeda8b5 100644 --- a/packages/browser-destinations/src/destinations/wisepops/trackGoal/__tests__/index.test.ts +++ b/packages/browser-destinations/destinations/wisepops/src/trackGoal/__tests__/index.test.ts @@ -1,10 +1,10 @@ import { Analytics, Context } from '@segment/analytics-next' import trackGoalObject from '../index' import wisepopsDestination from '../../index' -import { Subscription } from '../../../../lib/browser-destinations' +import { Subscription } from '@segment/browser-destination-runtime/types' -import { loadScript } from '../../../../runtime/load-script' -jest.mock('../../../../runtime/load-script') +import { loadScript } from '@segment/browser-destination-runtime/load-script' +jest.mock('@segment/browser-destination-runtime/load-script') beforeEach(async () => { // Prevent Wisepops SDK from being loaded. ;(loadScript as jest.Mock).mockResolvedValue(true) diff --git a/packages/browser-destinations/src/destinations/wisepops/trackGoal/generated-types.ts b/packages/browser-destinations/destinations/wisepops/src/trackGoal/generated-types.ts similarity index 100% rename from packages/browser-destinations/src/destinations/wisepops/trackGoal/generated-types.ts rename to packages/browser-destinations/destinations/wisepops/src/trackGoal/generated-types.ts diff --git a/packages/browser-destinations/src/destinations/wisepops/trackGoal/index.ts b/packages/browser-destinations/destinations/wisepops/src/trackGoal/index.ts similarity index 92% rename from packages/browser-destinations/src/destinations/wisepops/trackGoal/index.ts rename to packages/browser-destinations/destinations/wisepops/src/trackGoal/index.ts index 00a2957ea2..ed2a998956 100644 --- a/packages/browser-destinations/src/destinations/wisepops/trackGoal/index.ts +++ b/packages/browser-destinations/destinations/wisepops/src/trackGoal/index.ts @@ -1,4 +1,4 @@ -import type { BrowserActionDefinition } from '../../../lib/browser-destinations' +import type { BrowserActionDefinition } from '@segment/browser-destination-runtime/types' import type { Settings } from '../generated-types' import type { Payload } from './generated-types' import type { Wisepops } from '../types' diff --git a/packages/browser-destinations/src/destinations/wisepops/trackPage/__tests__/index.test.ts b/packages/browser-destinations/destinations/wisepops/src/trackPage/__tests__/index.test.ts similarity index 82% rename from packages/browser-destinations/src/destinations/wisepops/trackPage/__tests__/index.test.ts rename to packages/browser-destinations/destinations/wisepops/src/trackPage/__tests__/index.test.ts index bd89020911..71e669809f 100644 --- a/packages/browser-destinations/src/destinations/wisepops/trackPage/__tests__/index.test.ts +++ b/packages/browser-destinations/destinations/wisepops/src/trackPage/__tests__/index.test.ts @@ -1,10 +1,10 @@ import { Analytics, Context } from '@segment/analytics-next' import trackPageObject from '../index' import wisepopsDestination from '../../index' -import { Subscription } from '../../../../lib/browser-destinations' +import { Subscription } from '@segment/browser-destination-runtime/types' -import { loadScript } from '../../../../runtime/load-script' -jest.mock('../../../../runtime/load-script') +import { loadScript } from '@segment/browser-destination-runtime/load-script' +jest.mock('@segment/browser-destination-runtime/load-script') beforeEach(async () => { // Prevent Wisepops SDK from being loaded. ;(loadScript as jest.Mock).mockResolvedValue(true) diff --git a/packages/browser-destinations/src/destinations/wisepops/trackPage/generated-types.ts b/packages/browser-destinations/destinations/wisepops/src/trackPage/generated-types.ts similarity index 100% rename from packages/browser-destinations/src/destinations/wisepops/trackPage/generated-types.ts rename to packages/browser-destinations/destinations/wisepops/src/trackPage/generated-types.ts diff --git a/packages/browser-destinations/src/destinations/wisepops/trackPage/index.ts b/packages/browser-destinations/destinations/wisepops/src/trackPage/index.ts similarity index 85% rename from packages/browser-destinations/src/destinations/wisepops/trackPage/index.ts rename to packages/browser-destinations/destinations/wisepops/src/trackPage/index.ts index f323602c05..4cb0c3bcf9 100644 --- a/packages/browser-destinations/src/destinations/wisepops/trackPage/index.ts +++ b/packages/browser-destinations/destinations/wisepops/src/trackPage/index.ts @@ -1,4 +1,4 @@ -import type { BrowserActionDefinition } from '../../../lib/browser-destinations' +import type { BrowserActionDefinition } from '@segment/browser-destination-runtime/types' import type { Settings } from '../generated-types' import type { Payload } from './generated-types' import type { Wisepops } from '../types'; diff --git a/packages/browser-destinations/src/destinations/wisepops/types.ts b/packages/browser-destinations/destinations/wisepops/src/types.ts similarity index 100% rename from packages/browser-destinations/src/destinations/wisepops/types.ts rename to packages/browser-destinations/destinations/wisepops/src/types.ts diff --git a/packages/browser-destinations/destinations/wisepops/tsconfig.json b/packages/browser-destinations/destinations/wisepops/tsconfig.json new file mode 100644 index 0000000000..71c49219d9 --- /dev/null +++ b/packages/browser-destinations/destinations/wisepops/tsconfig.json @@ -0,0 +1,9 @@ +{ + "extends": "../../tsconfig.build.json", + "compilerOptions": { + "rootDir": "./src", + "baseUrl": "." + }, + "include": ["src"], + "exclude": ["dist", "**/__tests__"] +} \ No newline at end of file diff --git a/packages/browser-destinations/src/global.d.ts b/packages/browser-destinations/global.d.ts similarity index 100% rename from packages/browser-destinations/src/global.d.ts rename to packages/browser-destinations/global.d.ts diff --git a/packages/browser-destinations/package.json b/packages/browser-destinations/package.json index 775c6ff487..716dba87da 100644 --- a/packages/browser-destinations/package.json +++ b/packages/browser-destinations/package.json @@ -1,6 +1,7 @@ { "name": "@segment/browser-destinations", - "version": "3.98.0", + "private": true, + "version": "0.0.0", "description": "Action based browser destinations", "author": "Netto Farah", "license": "MIT", @@ -9,40 +10,19 @@ "url": "https://github.com/segmentio/action-destinations", "directory": "packages/browser-destinations" }, - "publishConfig": { - "access": "public", - "registry": "https://registry.npmjs.org" - }, - "exports": { - "import": "./dist/index.js", - "require": "./dist/cjs/index.js" - }, - "types": "dist/index.d.ts", "scripts": { "analyze": "NODE_ENV=production webpack --profile --json > stats.json && webpack-bundle-analyzer --port 4200 stats.json", - "build": "yarn clean && yarn build-ts && yarn build-cjs && yarn build-web", - "build-ts": "yarn tsc -b tsconfig.build.json", - "build-cjs": "yarn tsc -p ./tsconfig.build.json -m commonjs --outDir ./dist/cjs/", - "build-web": "bash scripts/build-web.sh", + "build-web": "yarn clean && bash scripts/build-web.sh", "build-web-stage": "bash scripts/build-web-stage.sh", "deploy-prod": "yarn build-web && aws s3 sync ./dist/web/ s3://segment-ajs-next-destinations-production/next-integrations/actions --grants read=id=$npm_config_prod_cdn_oai,id=$npm_config_prod_custom_domain_oai", "deploy-stage": "yarn build-web-stage && aws-okta exec plat-write -- aws s3 sync ./dist/web/ s3://segment-ajs-next-destinations-stage/next-integrations/actions --grants read=id=$npm_config_stage_cdn_oai,id=$npm_config_stage_custom_domain_oai", - "clean": "tsc -b tsconfig.build.json --clean", - "postclean": "rm -rf dist", + "clean": "rm -rf dist", "prepublishOnly": "yarn build", "test": "jest", "typecheck": "tsc -p tsconfig.build.json --noEmit", "dev": "NODE_ENV=development NODE_OPTIONS=--openssl-legacy-provider concurrently \"webpack serve\" \"webpack -c webpack.config.js --watch\"" }, "dependencies": { - "@braze/web-sdk": "npm:@braze/web-sdk@^4.1.0", - "@braze/web-sdk-v3": "npm:@braze/web-sdk@^3.5.1", - "@fullstory/browser": "^1.4.9", - "@segment/actions-shared": "^1.52.0", - "@segment/analytics-next": "^1.51.3", - "@segment/destination-subscriptions": "^3.23.0", - "dayjs": "^1.10.7", - "logrocket": "^3.0.1", "tslib": "^2.3.1", "vm-browserify": "^1.1.2" }, @@ -52,23 +32,19 @@ "@babel/plugin-transform-modules-commonjs": "^7.13.8", "@babel/preset-env": "^7.13.10", "@babel/preset-typescript": "^7.13.0", - "@segment/actions-core": "^3.70.0", - "@types/amplitude-js": "^7.0.1", "@types/jest": "^27.0.0", - "@types/js-cookie": "^3.0.0", "babel-jest": "^27.3.1", "compression-webpack-plugin": "^7.1.2", "concurrently": "^6.3.0", "globby": "^11.0.2", "jest": "^27.3.1", - "js-cookie": "^3.0.1", "serve": "^12.0.1", "terser-webpack-plugin": "^5.1.1", "ts-loader": "^9.2.6", - "webpack": "^5.36.1", + "webpack": "^5.82.0", "webpack-bundle-analyzer": "^4.4.1", - "webpack-cli": "^4.4.0", - "webpack-dev-server": "^4.2.0", + "webpack-cli": "^5.1.1", + "webpack-dev-server": "^4.15.0", "webpack-manifest-plugin": "^5.0.0" }, "jest": { @@ -83,7 +59,8 @@ "@segment/ajv-human-errors": "/../ajv-human-errors/src", "@segment/actions-core": "/../core/src", "@segment/destination-subscriptions": "/../destination-subscriptions/src", - "@segment/actions-shared": "/../actions-shared/src" + "@segment/actions-shared": "/../actions-shared/src", + "@segment/browser-destination-runtime/(.*)": "/../browser-destination-runtime/src/$1" }, "transform": { "^.+\\.[t|j]sx?$": "babel-jest" diff --git a/packages/browser-destinations/scripts/build-es.sh b/packages/browser-destinations/scripts/build-es.sh new file mode 100755 index 0000000000..f63bc48b36 --- /dev/null +++ b/packages/browser-destinations/scripts/build-es.sh @@ -0,0 +1,2 @@ +#!/bin/bash +find ./destinations -maxdepth 1 -mindepth 1 -type d -exec bash -c "cd '{}' && pwd && yarn tsc --build" \; \ No newline at end of file diff --git a/packages/browser-destinations/src/destinations/index.ts b/packages/browser-destinations/src/destinations/index.ts deleted file mode 100644 index 55a4c3f488..0000000000 --- a/packages/browser-destinations/src/destinations/index.ts +++ /dev/null @@ -1,53 +0,0 @@ -import type { BrowserDestinationDefinition } from '../lib/browser-destinations' -import path from 'path' - -type MetadataId = string - -export interface ManifestEntry { - // eslint-disable-next-line @typescript-eslint/no-explicit-any - definition: BrowserDestinationDefinition - directory: string - path: string -} - -export const manifest: Record = {} - -function register(id: MetadataId, destinationPath: string) { - // eslint-disable-next-line @typescript-eslint/no-var-requires - const definition = require(destinationPath).destination - const resolvedPath = require.resolve(destinationPath) - const [directory] = path.dirname(resolvedPath).split(path.sep).reverse() - - manifest[id] = { - definition, - directory, - path: resolvedPath - } -} - -// TODO figure out if it's possible to colocate the Amplitude web action with the rest of its destination definition (in `./packages/destination-actions`) -register('61fc2ffcc76fb3e73d85c89d', './adobe-target') -register('5f7dd6d21ad74f3842b1fc47', './amplitude-plugins') -register('60fb01aec459242d3b6f20c1', './braze') -register('60f9d0d048950c356be2e4da', './braze-cloud-plugins') -register('6170a348128093cd0245e0ea', './friendbuy') -register('6141153ee7500f15d3838703', './fullstory') -register('6230c835c0d6535357ee950d', './koala') -register('61d8859be4f795335d5c677c', './stackadapt') -register('61d8c74d174a9acd0e138b31', './sprig-web') -register('62b256147cbb49302d1486d0', './heap') -register('62d9daff84a6bf190da9f592', './intercom') -register('62fec615a42fa3dbfd208ce7', './iterate') -register('631a1c2bfdce36a23f0a14ec', './hubspot-web') -register('6340a951fbda093061f5f1d7', './segment-utilities-web') -register('634ef204885be3def430af66', './playerzero-web') -register('635ada35ce269dbe305203ff', './logrocket') -register('6372e18fb2b3d5d741c34bb6', './sabil') -register('6372e1e36d9c2181f3900834', './wisepops') -register('637c192eba61b944e08ee158', './vwo') -register('638f843c4520d424f63c9e51', './commandbar') -register('63913b2bf906ea939f153851', './ripe') -register('63ed446fe60a1b56c5e6f130', './google-analytics-4-web') -register('640267d74c13708d74062dcd', './upollo') -register('6480b4eeab29eca5415089d4', './userpilot') -register('64820d8030d09e775fbac372', './screeb') diff --git a/packages/browser-destinations/src/destinations/upollo/identifyUser/__tests__/index.test.ts.rej b/packages/browser-destinations/src/destinations/upollo/identifyUser/__tests__/index.test.ts.rej deleted file mode 100644 index 3e55b0044c..0000000000 --- a/packages/browser-destinations/src/destinations/upollo/identifyUser/__tests__/index.test.ts.rej +++ /dev/null @@ -1,67 +0,0 @@ -diff a/packages/browser-destinations/src/destinations/upollo/identifyUser/__tests__/index.test.ts b/packages/browser-destinations/src/destinations/upollo/identifyUser/__tests__/index.test.ts (rejected hunks) -@@ -6,16 +6,61 @@ import { Payload } from '../generated-types' - - it('should identify', async () => { - const client = { -- track: jest.fn() -+ assess: jest.fn().mockResolvedValue({ emailAnalysis: { company: { name: 'Bar' } } }) - } as any as UpolloClient - -+ const context = new Context({ -+ type: 'identify', -+ event: 'Signed Up' -+ }) -+ - await identify.perform(client as any as UpolloClient, { -- settings: { apiKey: '123' }, -+ settings: { apiKey: '123', companyEnrichment: true }, - analytics: jest.fn() as any as Analytics, -- context: new Context({ -+ context: context, -+ payload: { -+ user_id: 'u1', -+ email: 'foo@bar.com', -+ phone: '+611231234', -+ name: 'Mr Foo', -+ avatar_image_url: 'http://smile', -+ custom_traits: { -+ DOB: '1990-01-01', -+ Plan: 'Bronze', -+ session: { -+ // session is excluded because its not a string -+ count: 1 -+ } -+ } -+ } as Payload -+ }) -+ -+ expect(client.assess).toHaveBeenCalledWith({ -+ userId: 'u1', -+ userEmail: 'foo@bar.com', -+ userPhone: '+611231234', -+ userName: 'Mr Foo', -+ userImage: 'http://smile', -+ customerSuppliedValues: { DOB: '1990-01-01', Plan: 'Bronze' } -+ }) -+ -+ expect(context.event.traits?.company?.name).toEqual('Bar') -+}) -+ -+it('should not enrich when it gets no result', async () => { -+ const client = { -+ assess: jest.fn().mockResolvedValue({ emailAnalysis: { company: { name: '' } } }) -+ } as any as UpolloClient -+ -+ const context = new Context({ - type: 'identify', - event: 'Signed Up' -- }), -+ }) -+ -+ await identify.perform(client as any as UpolloClient, { -+ settings: { apiKey: '123', companyEnrichment: true }, -+ analytics: jest.fn() as any as Analytics, -+ context: context, - payload: { - user_id: 'u1', - email: 'foo@bar.com', diff --git a/packages/browser-destinations/src/index.ts b/packages/browser-destinations/src/index.ts deleted file mode 100644 index a46bc26334..0000000000 --- a/packages/browser-destinations/src/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from './destinations' -export { BrowserDestinationDefinition } from './lib/browser-destinations' diff --git a/packages/browser-destinations/src/lib/dayjs.ts b/packages/browser-destinations/src/lib/dayjs.ts deleted file mode 100644 index 7d52a21a0c..0000000000 --- a/packages/browser-destinations/src/lib/dayjs.ts +++ /dev/null @@ -1,6 +0,0 @@ -import dayjs from 'dayjs' -import utc from 'dayjs/plugin/utc' - -dayjs.extend(utc) - -export default dayjs diff --git a/packages/browser-destinations/src/runtime/shim.ts b/packages/browser-destinations/src/runtime/shim.ts deleted file mode 100644 index 293cc17ff3..0000000000 --- a/packages/browser-destinations/src/runtime/shim.ts +++ /dev/null @@ -1,12 +0,0 @@ -import type { BrowserDestinationDefinition, Subscription } from '../lib/browser-destinations' - -export function browserDestination(definition: BrowserDestinationDefinition) { - return async (settings: S & { subscriptions?: Subscription[] }) => { - const plugin = await import( - /* webpackChunkName: "actions-plugin" */ - /* webpackMode: "lazy-once" */ - './plugin' - ) - return plugin.generatePlugins(definition, settings, settings.subscriptions || []) - } -} diff --git a/packages/browser-destinations/webpack.config.js b/packages/browser-destinations/webpack.config.js index 5e865f915e..7c70996b82 100644 --- a/packages/browser-destinations/webpack.config.js +++ b/packages/browser-destinations/webpack.config.js @@ -6,11 +6,11 @@ const { WebpackManifestPlugin } = require('webpack-manifest-plugin') const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin const webpack = require('webpack') -const files = globby.sync('./src/destinations/*/index.ts') +const files = globby.sync('./destinations/*/src/index.ts') const isProd = process.env.NODE_ENV === 'production' const entries = files.reduce((acc, current) => { - const [_dot, _src, _destinations, destination, ..._rest] = current.split('/') + const [_dot, _destinations, destination, ..._rest] = current.split('/') return { ...acc, [destination]: current @@ -74,6 +74,12 @@ const unobfuscatedOutput = { }, module: { rules: [ + { + test: /\.m?js$/, + resolve: { + fullySpecified: false, + }, + }, { test: /\.ts$/, use: [ diff --git a/packages/cli-internal/package.json b/packages/cli-internal/package.json index f8e0910572..4f40749d01 100644 --- a/packages/cli-internal/package.json +++ b/packages/cli-internal/package.json @@ -54,7 +54,8 @@ "@oclif/errors": "^1.3.6", "@oclif/plugin-help": "^3.3", "@segment/action-destinations": "^3.155.1", - "@segment/actions-core": "^3.62.1", + "@segment/actions-core": "^3.70.0", + "@segment/destinations-manifest": "^0.0.0", "@types/node": "^18.11.15", "chalk": "^4.1.1", "chokidar": "^3.5.1", @@ -78,7 +79,6 @@ "tslib": "^2.3.1" }, "optionalDependencies": { - "@segment/browser-destinations": "^3.88.1", "@segment/control-plane-service-client": "github:segmentio/control-plane-service-js-client.git#master" }, "oclif": { diff --git a/packages/cli-internal/src/commands/push-browser-destinations.ts b/packages/cli-internal/src/commands/push-browser-destinations.ts index a7aa417681..661d8d8c5e 100644 --- a/packages/cli-internal/src/commands/push-browser-destinations.ts +++ b/packages/cli-internal/src/commands/push-browser-destinations.ts @@ -3,7 +3,7 @@ import { prompt } from '@segment/actions-cli/lib/prompt' import { diffString } from 'json-diff' import execa from 'execa' import chalk from 'chalk' -import { manifest } from '@segment/browser-destinations' +import { manifest } from '@segment/destinations-manifest' import ora from 'ora' import { assetPath } from '../config' import type { RemotePlugin } from '../lib/control-plane-service' diff --git a/packages/cli-internal/src/commands/push.ts b/packages/cli-internal/src/commands/push.ts index 159aa669bd..5dc967bc26 100644 --- a/packages/cli-internal/src/commands/push.ts +++ b/packages/cli-internal/src/commands/push.ts @@ -1,7 +1,7 @@ import { Command, flags } from '@oclif/command' import type { DestinationDefinition as CloudDestinationDefinition, MinimalInputField } from '@segment/actions-core' import { fieldsToJsonSchema } from '@segment/actions-core' -import { BrowserDestinationDefinition } from '@segment/browser-destinations' +import { BrowserDestinationDefinition } from '@segment/destinations-manifest' import chalk from 'chalk' import { pick, omit, sortBy } from 'lodash' import { diffString } from 'json-diff' diff --git a/packages/cli-internal/tsconfig.json b/packages/cli-internal/tsconfig.json index 2329923536..a929d6e49c 100644 --- a/packages/cli-internal/tsconfig.json +++ b/packages/cli-internal/tsconfig.json @@ -27,7 +27,6 @@ "@segment/actions-core/*": ["../core/src/*"], "@segment/action-destinations": ["../destination-actions/src"], "@segment/ajv-human-errors": ["../ajv-human-errors/src"], - "@segment/browser-destinations": ["../browser-destinations/src"], "@segment/destination-subscriptions": ["../destination-subscriptions/src"] } }, diff --git a/packages/cli/package.json b/packages/cli/package.json index ad8678fbb6..30581c8b93 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -57,7 +57,8 @@ "@oclif/errors": "^1.3.6", "@oclif/plugin-help": "^3.3", "@segment/action-destinations": "^3.155.1", - "@segment/actions-core": "^3.62.1", + "@segment/actions-core": "^3.70.0", + "@segment/destinations-manifest": "^0.0.0", "@types/node": "^18.11.15", "chalk": "^4.1.1", "chokidar": "^3.5.1", @@ -81,8 +82,7 @@ "tslib": "^2.3.1" }, "optionalDependencies": { - "@segment/actions-cli-internal": "^3.143.1", - "@segment/browser-destinations": "^3.88.1" + "@segment/actions-cli-internal": "^3.143.1" }, "oclif": { "commands": "./dist/commands", diff --git a/packages/cli/src/commands/generate/types.ts b/packages/cli/src/commands/generate/types.ts index 3c86ec739d..14223e6f66 100644 --- a/packages/cli/src/commands/generate/types.ts +++ b/packages/cli/src/commands/generate/types.ts @@ -1,7 +1,7 @@ import { Command, flags } from '@oclif/command' import { fieldsToJsonSchema } from '@segment/actions-core' import type { InputField, DestinationDefinition as CloudDestinationDefinition } from '@segment/actions-core' -import type { BrowserDestinationDefinition } from '@segment/browser-destinations' +import type { BrowserDestinationDefinition } from '@segment/destinations-manifest' import chokidar from 'chokidar' import fs from 'fs-extra' import globby from 'globby' diff --git a/packages/cli/src/commands/scaffold.ts b/packages/cli/src/commands/scaffold.ts index 8708e17fd8..c3e2ff25a7 100644 --- a/packages/cli/src/commands/scaffold.ts +++ b/packages/cli/src/commands/scaffold.ts @@ -9,7 +9,7 @@ import fs from 'fs-extra' import { camelCase, startCase } from 'lodash' import { fieldsToJsonSchema } from '@segment/actions-core' import type { InputField, DestinationDefinition as CloudDestinationDefinition } from '@segment/actions-core' -import type { BrowserDestinationDefinition } from '@segment/browser-destinations' +import type { BrowserDestinationDefinition } from '@segment/destinations-manifest' import { JSONSchema4 } from 'json-schema' import { compile } from 'json-schema-to-typescript' import prettier from 'prettier' diff --git a/packages/cli/src/lib/destinations.ts b/packages/cli/src/lib/destinations.ts index 0be0e5b3ce..663d86667f 100644 --- a/packages/cli/src/lib/destinations.ts +++ b/packages/cli/src/lib/destinations.ts @@ -1,4 +1,4 @@ -import type { ManifestEntry as BrowserManifest, BrowserDestinationDefinition } from '@segment/browser-destinations' +import type { ManifestEntry as BrowserManifest, BrowserDestinationDefinition } from '@segment/destinations-manifest' import type { DestinationDefinition as CloudDestinationDefinition } from '@segment/actions-core' import type { ManifestEntry as CloudManifest } from '@segment/action-destinations' import path from 'path' @@ -36,7 +36,7 @@ export async function loadDestination(filePath: string): Promise Record = () => { - const { manifest: browserManifest } = require('@segment/browser-destinations') + const { manifest: browserManifest } = require('@segment/destinations-manifest') const { manifest: cloudManifest } = require('@segment/action-destinations') const { mergeWith } = require('lodash') diff --git a/packages/cli/templates/actions/empty-browser-action/index.ts b/packages/cli/templates/actions/empty-browser-action/index.ts index 2e13636bd8..2c86c67696 100644 --- a/packages/cli/templates/actions/empty-browser-action/index.ts +++ b/packages/cli/templates/actions/empty-browser-action/index.ts @@ -1,4 +1,4 @@ -import type { BrowserActionDefinition } from '../../../lib/browser-destinations' +import type { BrowserActionDefinition } from '@segment/browser-destination-runtime/types' import type { Settings } from '../generated-types' import type { Payload } from './generated-types' diff --git a/packages/cli/templates/destinations/browser/index.ts b/packages/cli/templates/destinations/browser/index.ts index 323a8aa372..fec3d9426f 100644 --- a/packages/cli/templates/destinations/browser/index.ts +++ b/packages/cli/templates/destinations/browser/index.ts @@ -1,5 +1,5 @@ import type { Settings } from './generated-types' -import type { BrowserDestinationDefinition } from '../../lib/browser-destinations' +import type { BrowserDestinationDefinition } from '@segment/browser-destination-runtime/types' import { browserDestination } from '../../runtime/shim' // Switch from unknown to the partner SDK client types diff --git a/packages/cli/tsconfig.json b/packages/cli/tsconfig.json index 2329923536..a929d6e49c 100644 --- a/packages/cli/tsconfig.json +++ b/packages/cli/tsconfig.json @@ -27,7 +27,6 @@ "@segment/actions-core/*": ["../core/src/*"], "@segment/action-destinations": ["../destination-actions/src"], "@segment/ajv-human-errors": ["../ajv-human-errors/src"], - "@segment/browser-destinations": ["../browser-destinations/src"], "@segment/destination-subscriptions": ["../destination-subscriptions/src"] } }, diff --git a/packages/core/package.json b/packages/core/package.json index fa2551525f..df5dd56396 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -14,12 +14,38 @@ "require": "./dist/cjs/index.js", "default": "./dist/esm/index.js" }, + "./destination-kit": { + "require": "./dist/cjs/destination-kit/index.js", + "default": "./dist/esm/destination-kit/index.js" + }, + "./destination-kit/*": { + "require": "./dist/cjs/destination-kit/*.js", + "default": "./dist/esm/destination-kit/*.js" + }, "./mapping-kit": { "require": "./dist/cjs/mapping-kit/index.js", "default": "./dist/esm/mapping-kit/index.js" + }, + "./mapping-kit/*": { + "require": "./dist/cjs/mapping-kit/*.js", + "default": "./dist/esm/mapping-kit/*.js" + } + }, + "typesVersions": { + "*": { + "*": [ + "dist/esm/index.d.ts" + ], + "destination-kit*": [ + "dist/esm/destination-kit/*.d.ts", + "dist/esm/destination-kit/index.d.ts" + ], + "mapping-kit*": [ + "dist/esm/mapping-kit/*.d.ts", + "dist/esm/mapping-kit/index.d.ts" + ] } }, - "types": "dist/esm/index.d.ts", "files": [ "dist", "package.json" diff --git a/packages/destination-actions/src/destinations/acoustic/Utility/__tests__/tablemaintutilities.test.ts b/packages/destination-actions/src/destinations/acoustic/Utility/__tests__/tablemaintutilities.test.ts index 356e365b39..67ef86e6c8 100644 --- a/packages/destination-actions/src/destinations/acoustic/Utility/__tests__/tablemaintutilities.test.ts +++ b/packages/destination-actions/src/destinations/acoustic/Utility/__tests__/tablemaintutilities.test.ts @@ -13,7 +13,7 @@ import { getAuthCreds, getAccessToken, doPOST } from '../tablemaintutilities' jest.mock('@segment/actions-core') jest.mock('@segment/actions-core') jest.mock('lodash/get') -jest.mock('@segment/actions-core/src/destination-kit/parse-settings') +jest.mock('@segment/actions-core/destination-kit/parse-settings') jest.mock('../../generated-types') //jest.mock('../generated-types'); diff --git a/packages/destination-actions/src/destinations/acoustic/Utility/tablemaintutilities.ts b/packages/destination-actions/src/destinations/acoustic/Utility/tablemaintutilities.ts index 3c41ab66ae..64178e746c 100644 --- a/packages/destination-actions/src/destinations/acoustic/Utility/tablemaintutilities.ts +++ b/packages/destination-actions/src/destinations/acoustic/Utility/tablemaintutilities.ts @@ -1,7 +1,7 @@ import { OAuth2ClientCredentials, RefreshAccessTokenResult, RetryableError } from '@segment/actions-core' import { RequestClient } from '@segment/actions-core' import { Settings } from '../generated-types' -import { AuthTokens } from '@segment/actions-core/src/destination-kit/parse-settings' +import { AuthTokens } from '@segment/actions-core/destination-kit/parse-settings' export interface accessResp { access_token: string diff --git a/packages/destination-actions/src/destinations/acoustic/receiveEvents/index.ts b/packages/destination-actions/src/destinations/acoustic/receiveEvents/index.ts index 094066377f..63e0c22f53 100644 --- a/packages/destination-actions/src/destinations/acoustic/receiveEvents/index.ts +++ b/packages/destination-actions/src/destinations/acoustic/receiveEvents/index.ts @@ -4,7 +4,7 @@ import { Payload } from './generated-types' import { doPOST, getAuthCreds } from '../Utility/tablemaintutilities' import get from 'lodash/get' import { addUpdateEvents } from '../Utility/eventprocessing' -import { AuthTokens } from '@segment/actions-core/src/destination-kit/parse-settings' +import { AuthTokens } from '@segment/actions-core/destination-kit/parse-settings' const action: ActionDefinition = { title: 'Receive Track and Identify Events', diff --git a/packages/destination-actions/src/destinations/actions-pardot/pa-properties.ts b/packages/destination-actions/src/destinations/actions-pardot/pa-properties.ts index 6beba1b86f..a6a6d55e68 100644 --- a/packages/destination-actions/src/destinations/actions-pardot/pa-properties.ts +++ b/packages/destination-actions/src/destinations/actions-pardot/pa-properties.ts @@ -1,4 +1,4 @@ -import { InputField } from '@segment/actions-core/src/destination-kit/types' +import { InputField } from '@segment/actions-core/destination-kit/types' export const customFields: InputField = { label: 'Other Fields', diff --git a/packages/destination-actions/src/destinations/adobe-target/adobeTarget_operations.ts b/packages/destination-actions/src/destinations/adobe-target/adobeTarget_operations.ts index bed6fe015c..0f3d47a4be 100644 --- a/packages/destination-actions/src/destinations/adobe-target/adobeTarget_operations.ts +++ b/packages/destination-actions/src/destinations/adobe-target/adobeTarget_operations.ts @@ -1,5 +1,5 @@ import { RequestClient, IntegrationError, APIError } from '@segment/actions-core' -import { StatsContext } from '@segment/actions-core/src/destination-kit' +import { StatsContext } from '@segment/actions-core/destination-kit' function getNestedObjects(obj: { [x: string]: any }, objectPath = '', attributes: { [x: string]: string } = {}) { // Do not run on null or undefined diff --git a/packages/destination-actions/src/destinations/adobe-target/updateProfile/__tests__/index.test.ts b/packages/destination-actions/src/destinations/adobe-target/updateProfile/__tests__/index.test.ts index e3178028b8..e757116133 100644 --- a/packages/destination-actions/src/destinations/adobe-target/updateProfile/__tests__/index.test.ts +++ b/packages/destination-actions/src/destinations/adobe-target/updateProfile/__tests__/index.test.ts @@ -1,7 +1,7 @@ import nock from 'nock' import { createTestEvent, createTestIntegration } from '@segment/actions-core' import Destination from '../../index' -import { StatsClient, StatsContext } from '@segment/actions-core/src/destination-kit' +import { StatsClient, StatsContext } from '@segment/actions-core/destination-kit' const testDestination = createTestIntegration(Destination) const settings = { diff --git a/packages/destination-actions/src/destinations/braze-cohorts/syncAudiences/index.ts b/packages/destination-actions/src/destinations/braze-cohorts/syncAudiences/index.ts index 3844a23170..8b7cdf73ca 100644 --- a/packages/destination-actions/src/destinations/braze-cohorts/syncAudiences/index.ts +++ b/packages/destination-actions/src/destinations/braze-cohorts/syncAudiences/index.ts @@ -3,7 +3,7 @@ import type { Settings } from '../generated-types' import type { Payload } from './generated-types' import { SyncAudiences } from '../api' import { CohortChanges } from '../braze-cohorts-types' -import { StateContext } from '@segment/actions-core/src/destination-kit' +import { StateContext } from '@segment/actions-core/destination-kit' import isEmpty from 'lodash/isEmpty' const action: ActionDefinition = { diff --git a/packages/destination-actions/src/destinations/engage-messaging-sendgrid/__tests__/send-email.test.ts b/packages/destination-actions/src/destinations/engage-messaging-sendgrid/__tests__/send-email.test.ts index 215b3949c3..c5958ebacc 100644 --- a/packages/destination-actions/src/destinations/engage-messaging-sendgrid/__tests__/send-email.test.ts +++ b/packages/destination-actions/src/destinations/engage-messaging-sendgrid/__tests__/send-email.test.ts @@ -2,7 +2,7 @@ import nock from 'nock' import { createTestIntegration, omit } from '@segment/actions-core' import { createMessagingTestEvent } from '../../../lib/engage-test-data/create-messaging-test-event' import Sendgrid from '..' -import { Logger } from '@segment/actions-core/src/destination-kit' +import { Logger } from '@segment/actions-core/destination-kit' const sendgrid = createTestIntegration(Sendgrid) const timestamp = new Date().toISOString() diff --git a/packages/destination-actions/src/destinations/engage-messaging-sendgrid/sendEmail/index.ts b/packages/destination-actions/src/destinations/engage-messaging-sendgrid/sendEmail/index.ts index 383cb21d2a..cb859929b2 100644 --- a/packages/destination-actions/src/destinations/engage-messaging-sendgrid/sendEmail/index.ts +++ b/packages/destination-actions/src/destinations/engage-messaging-sendgrid/sendEmail/index.ts @@ -4,7 +4,7 @@ import type { Payload } from './generated-types' import { Liquid as LiquidJs } from 'liquidjs' import cheerio from 'cheerio' import { htmlEscape } from 'escape-goat' -import { Logger, StatsClient } from '@segment/actions-core/src/destination-kit' +import { Logger, StatsClient } from '@segment/actions-core/destination-kit' const Liquid = new LiquidJs() type Region = 'us-west-2' | 'eu-west-1' diff --git a/packages/destination-actions/src/destinations/engage-messaging-twilio/__tests__/__helpers__/test-utils.ts b/packages/destination-actions/src/destinations/engage-messaging-twilio/__tests__/__helpers__/test-utils.ts index 0a3c1f0006..f6e05d4f6e 100644 --- a/packages/destination-actions/src/destinations/engage-messaging-twilio/__tests__/__helpers__/test-utils.ts +++ b/packages/destination-actions/src/destinations/engage-messaging-twilio/__tests__/__helpers__/test-utils.ts @@ -1,4 +1,4 @@ -import { Logger } from '@segment/actions-core/src/destination-kit' +import { Logger } from '@segment/actions-core/destination-kit' import { omit } from '@segment/actions-core' import { createMessagingTestEvent } from '../../../../lib/engage-test-data/create-messaging-test-event' import { FLAGON_NAME_LOG_ERROR, FLAGON_NAME_LOG_INFO } from '../../utils/message-sender' diff --git a/packages/destination-actions/src/destinations/engage-messaging-twilio/utils/message-sender.ts b/packages/destination-actions/src/destinations/engage-messaging-twilio/utils/message-sender.ts index 43d032d34b..83d3a866b0 100644 --- a/packages/destination-actions/src/destinations/engage-messaging-twilio/utils/message-sender.ts +++ b/packages/destination-actions/src/destinations/engage-messaging-twilio/utils/message-sender.ts @@ -3,7 +3,7 @@ import type { Settings } from '../generated-types' import type { Payload as SmsPayload } from '../sendSms/generated-types' import type { Payload as WhatsappPayload } from '../sendWhatsApp/generated-types' import { IntegrationError, PayloadValidationError, RequestOptions } from '@segment/actions-core' -import { Logger, StatsClient, StatsContext } from '@segment/actions-core/src/destination-kit' +import { Logger, StatsClient, StatsContext } from '@segment/actions-core/destination-kit' import { ExecuteInput } from '@segment/actions-core' import { ContentTemplateResponse, ContentTemplateTypes, Profile, TwilioApiError } from './types' diff --git a/packages/destination-actions/src/destinations/facebook-conversions-api/__tests__/utils.test.ts b/packages/destination-actions/src/destinations/facebook-conversions-api/__tests__/utils.test.ts index 22af8bbe37..46761229d7 100644 --- a/packages/destination-actions/src/destinations/facebook-conversions-api/__tests__/utils.test.ts +++ b/packages/destination-actions/src/destinations/facebook-conversions-api/__tests__/utils.test.ts @@ -1,6 +1,6 @@ import { get_api_version } from '../utils' import { API_VERSION, CANARY_API_VERSION } from '../constants' -import { StatsContext } from '@segment/actions-core/src/destination-kit' +import { StatsContext } from '@segment/actions-core/destination-kit' describe('FacebookConversionsApi', () => { describe('get_api_version', () => { diff --git a/packages/destination-actions/src/destinations/facebook-conversions-api/fb-capi-properties.ts b/packages/destination-actions/src/destinations/facebook-conversions-api/fb-capi-properties.ts index c94e31eec7..bbea3b5617 100644 --- a/packages/destination-actions/src/destinations/facebook-conversions-api/fb-capi-properties.ts +++ b/packages/destination-actions/src/destinations/facebook-conversions-api/fb-capi-properties.ts @@ -1,4 +1,4 @@ -import { InputField } from '@segment/actions-core/src/destination-kit/types' +import { InputField } from '@segment/actions-core/destination-kit/types' import { PayloadValidationError } from '@segment/actions-core' // Implementation of the facebook pixel object properties. diff --git a/packages/destination-actions/src/destinations/facebook-conversions-api/fb-capi-user-data.ts b/packages/destination-actions/src/destinations/facebook-conversions-api/fb-capi-user-data.ts index c064d24b7c..0748848fe3 100644 --- a/packages/destination-actions/src/destinations/facebook-conversions-api/fb-capi-user-data.ts +++ b/packages/destination-actions/src/destinations/facebook-conversions-api/fb-capi-user-data.ts @@ -1,4 +1,4 @@ -import { InputField } from '@segment/actions-core/src/destination-kit/types' +import { InputField } from '@segment/actions-core/destination-kit/types' import { createHash } from 'crypto' import { US_STATE_CODES, COUNTRY_CODES } from './constants' import { Payload } from './addToCart/generated-types' diff --git a/packages/destination-actions/src/destinations/facebook-conversions-api/utils.ts b/packages/destination-actions/src/destinations/facebook-conversions-api/utils.ts index 3a7961d190..b796d7bc1e 100644 --- a/packages/destination-actions/src/destinations/facebook-conversions-api/utils.ts +++ b/packages/destination-actions/src/destinations/facebook-conversions-api/utils.ts @@ -1,5 +1,5 @@ -import { StatsContext } from '@segment/actions-core/src/destination-kit' -import { Features } from '@segment/actions-core/src/mapping-kit' +import { StatsContext } from '@segment/actions-core/destination-kit' +import { Features } from '@segment/actions-core/mapping-kit' import { API_VERSION, CANARY_API_VERSION } from './constants' const FLAGON_NAME = 'facebook-capi-actions-canary-version' diff --git a/packages/destination-actions/src/destinations/google-analytics-4/ga4-properties.ts b/packages/destination-actions/src/destinations/google-analytics-4/ga4-properties.ts index e19613f855..7574818e51 100644 --- a/packages/destination-actions/src/destinations/google-analytics-4/ga4-properties.ts +++ b/packages/destination-actions/src/destinations/google-analytics-4/ga4-properties.ts @@ -1,4 +1,4 @@ -import { InputField } from '@segment/actions-core/src/destination-kit/types' +import { InputField } from '@segment/actions-core/destination-kit/types' import { DataStreamType } from './ga4-types' export const formatUserProperties = (userProperties: object | undefined): object | undefined => { diff --git a/packages/destination-actions/src/destinations/google-enhanced-conversions/functions.ts b/packages/destination-actions/src/destinations/google-enhanced-conversions/functions.ts index a5ca4e69b1..c7fa329282 100644 --- a/packages/destination-actions/src/destinations/google-enhanced-conversions/functions.ts +++ b/packages/destination-actions/src/destinations/google-enhanced-conversions/functions.ts @@ -1,8 +1,8 @@ import { createHash } from 'crypto' import { ConversionCustomVariable, PartialErrorResponse, QueryResponse } from './types' import { ModifiedResponse, RequestClient, IntegrationError, PayloadValidationError } from '@segment/actions-core' -import { StatsContext } from '@segment/actions-core/src/destination-kit' -import { Features } from '@segment/actions-core/src/mapping-kit' +import { StatsContext } from '@segment/actions-core/destination-kit' +import { Features } from '@segment/actions-core/mapping-kit' import { fullFormats } from 'ajv-formats/dist/formats' export const API_VERSION = 'v12' diff --git a/packages/destination-actions/src/destinations/hubspot/__tests__/snapshot.test.ts b/packages/destination-actions/src/destinations/hubspot/__tests__/snapshot.test.ts index 5df717d656..d519b9c253 100644 --- a/packages/destination-actions/src/destinations/hubspot/__tests__/snapshot.test.ts +++ b/packages/destination-actions/src/destinations/hubspot/__tests__/snapshot.test.ts @@ -2,7 +2,7 @@ import { createTestEvent, createTestIntegration } from '@segment/actions-core' import { generateTestData } from '../../../lib/test-data' import destination from '../index' import nock from 'nock' -import { TransactionContext } from '@segment/actions-core/src/destination-kit' +import { TransactionContext } from '@segment/actions-core/destination-kit' const testDestination = createTestIntegration(destination) const destinationSlug = 'actions-hubspot-cloud' diff --git a/packages/destination-actions/src/destinations/hubspot/upsertContact/__tests__/snapshot.test.ts b/packages/destination-actions/src/destinations/hubspot/upsertContact/__tests__/snapshot.test.ts index eb94da9713..a0ea8dd3fa 100644 --- a/packages/destination-actions/src/destinations/hubspot/upsertContact/__tests__/snapshot.test.ts +++ b/packages/destination-actions/src/destinations/hubspot/upsertContact/__tests__/snapshot.test.ts @@ -2,7 +2,7 @@ import { createTestEvent, createTestIntegration } from '@segment/actions-core' import { generateTestData } from '../../../../lib/test-data' import destination from '../../index' import nock from 'nock' -import { TransactionContext } from '@segment/actions-core/src/destination-kit' +import { TransactionContext } from '@segment/actions-core/destination-kit' const testDestination = createTestIntegration(destination) const actionSlug = 'upsertContact' diff --git a/packages/destination-actions/src/destinations/insider/insider-properties.ts b/packages/destination-actions/src/destinations/insider/insider-properties.ts index 4b23d7edb8..298ff34203 100644 --- a/packages/destination-actions/src/destinations/insider/insider-properties.ts +++ b/packages/destination-actions/src/destinations/insider/insider-properties.ts @@ -1,4 +1,4 @@ -import { InputField } from '@segment/actions-core/src/destination-kit/types' +import { InputField } from '@segment/actions-core/destination-kit/types' export const getEventParameteres = (wantedParameters: string[]): InputField => { const event_parameters: InputField = { diff --git a/packages/destination-actions/src/destinations/pinterest-conversions/pinterest-capi-custom-data.ts b/packages/destination-actions/src/destinations/pinterest-conversions/pinterest-capi-custom-data.ts index 3e1ec15271..65c1a0f2d6 100644 --- a/packages/destination-actions/src/destinations/pinterest-conversions/pinterest-capi-custom-data.ts +++ b/packages/destination-actions/src/destinations/pinterest-conversions/pinterest-capi-custom-data.ts @@ -1,4 +1,4 @@ -import { InputField } from '@segment/actions-core/src/destination-kit/types' +import { InputField } from '@segment/actions-core/destination-kit/types' export const custom_data_field: InputField = { label: 'Custom Data', diff --git a/packages/destination-actions/src/destinations/pinterest-conversions/pinterset-capi-user-data.ts b/packages/destination-actions/src/destinations/pinterest-conversions/pinterset-capi-user-data.ts index d332ba2b6f..60f9f598fa 100644 --- a/packages/destination-actions/src/destinations/pinterest-conversions/pinterset-capi-user-data.ts +++ b/packages/destination-actions/src/destinations/pinterest-conversions/pinterset-capi-user-data.ts @@ -1,4 +1,4 @@ -import { InputField } from '@segment/actions-core/src/destination-kit/types' +import { InputField } from '@segment/actions-core/destination-kit/types' import { createHash } from 'crypto' import { Payload } from './reportConversionEvent/generated-types' import isEmpty from 'lodash/isEmpty' diff --git a/packages/destination-actions/src/destinations/revend/ga4-properties.ts b/packages/destination-actions/src/destinations/revend/ga4-properties.ts index ca152a6999..ba25aebf9c 100644 --- a/packages/destination-actions/src/destinations/revend/ga4-properties.ts +++ b/packages/destination-actions/src/destinations/revend/ga4-properties.ts @@ -1,4 +1,4 @@ -import { InputField } from '@segment/actions-core/src/destination-kit/types' +import { InputField } from '@segment/actions-core/destination-kit/types' export const formatUserProperties = (userProperties: object | undefined): object | undefined => { if (!userProperties) { diff --git a/packages/destination-actions/src/destinations/salesforce-marketing-cloud/sfmc-properties.ts b/packages/destination-actions/src/destinations/salesforce-marketing-cloud/sfmc-properties.ts index cb69e92d9a..869a4f5023 100644 --- a/packages/destination-actions/src/destinations/salesforce-marketing-cloud/sfmc-properties.ts +++ b/packages/destination-actions/src/destinations/salesforce-marketing-cloud/sfmc-properties.ts @@ -1,4 +1,4 @@ -import { InputField } from '@segment/actions-core/src/destination-kit/types' +import { InputField } from '@segment/actions-core/destination-kit/types' export const contactKey: InputField = { label: 'Contact Key', diff --git a/packages/destination-actions/src/destinations/salesforce/sf-properties.ts b/packages/destination-actions/src/destinations/salesforce/sf-properties.ts index 7aec409ebe..3af637cc61 100644 --- a/packages/destination-actions/src/destinations/salesforce/sf-properties.ts +++ b/packages/destination-actions/src/destinations/salesforce/sf-properties.ts @@ -1,4 +1,4 @@ -import { InputField } from '@segment/actions-core/src/destination-kit/types' +import { InputField } from '@segment/actions-core/destination-kit/types' import { IntegrationError } from '@segment/actions-core' export const operation: InputField = { diff --git a/packages/destination-actions/src/destinations/saleswings/fields.ts b/packages/destination-actions/src/destinations/saleswings/fields.ts index 6e556340ea..861cea5ab8 100644 --- a/packages/destination-actions/src/destinations/saleswings/fields.ts +++ b/packages/destination-actions/src/destinations/saleswings/fields.ts @@ -1,5 +1,5 @@ import { InputField } from '@segment/actions-core' -import { Directive } from '@segment/actions-core/src/destination-kit/types' +import { Directive } from '@segment/actions-core/destination-kit/types' export const userID: InputField = { label: 'Segment User ID', diff --git a/packages/destination-actions/src/destinations/segment-profiles/segment-properties.ts b/packages/destination-actions/src/destinations/segment-profiles/segment-properties.ts index d64eb3dbe0..eef1f1587c 100644 --- a/packages/destination-actions/src/destinations/segment-profiles/segment-properties.ts +++ b/packages/destination-actions/src/destinations/segment-profiles/segment-properties.ts @@ -1,4 +1,4 @@ -import { InputField } from '@segment/actions-core/src/destination-kit/types' +import { InputField } from '@segment/actions-core/destination-kit/types' export const user_id: InputField = { label: 'User ID', diff --git a/packages/destination-actions/src/destinations/segment/__tests__/snapshot.test.ts b/packages/destination-actions/src/destinations/segment/__tests__/snapshot.test.ts index 00b482b65e..127465151f 100644 --- a/packages/destination-actions/src/destinations/segment/__tests__/snapshot.test.ts +++ b/packages/destination-actions/src/destinations/segment/__tests__/snapshot.test.ts @@ -2,7 +2,7 @@ import { createTestEvent, createTestIntegration } from '@segment/actions-core' import { generateTestData } from '../../../lib/test-data' import destination from '../index' import nock from 'nock' -import { TransactionContext } from '@segment/actions-core/src/destination-kit' +import { TransactionContext } from '@segment/actions-core/destination-kit' import { DEFAULT_SEGMENT_ENDPOINT } from '../properties' const testDestination = createTestIntegration(destination) diff --git a/packages/destination-actions/src/destinations/segment/segment-properties.ts b/packages/destination-actions/src/destinations/segment/segment-properties.ts index 053f7fc50f..d58ec67436 100644 --- a/packages/destination-actions/src/destinations/segment/segment-properties.ts +++ b/packages/destination-actions/src/destinations/segment/segment-properties.ts @@ -1,4 +1,4 @@ -import { InputField } from '@segment/actions-core/src/destination-kit/types' +import { InputField } from '@segment/actions-core/destination-kit/types' export const user_id: InputField = { label: 'User ID', diff --git a/packages/destination-actions/src/destinations/snap-conversions-api/snap-capi-properties.ts b/packages/destination-actions/src/destinations/snap-conversions-api/snap-capi-properties.ts index fae49c882b..e3b6476b12 100644 --- a/packages/destination-actions/src/destinations/snap-conversions-api/snap-capi-properties.ts +++ b/packages/destination-actions/src/destinations/snap-conversions-api/snap-capi-properties.ts @@ -1,5 +1,5 @@ import { IntegrationError } from '@segment/actions-core' -import { InputField } from '@segment/actions-core/src/destination-kit/types' +import { InputField } from '@segment/actions-core/destination-kit/types' import { createHash } from 'crypto' import { Settings } from '../snap-conversions-api/generated-types' import { Payload } from './reportConversionEvent/generated-types' diff --git a/packages/destination-actions/src/destinations/talon-one/t1-properties.ts b/packages/destination-actions/src/destinations/talon-one/t1-properties.ts index 4ed6a30cca..7723d876af 100644 --- a/packages/destination-actions/src/destinations/talon-one/t1-properties.ts +++ b/packages/destination-actions/src/destinations/talon-one/t1-properties.ts @@ -1,4 +1,4 @@ -import { InputField } from '@segment/actions-core/src/destination-kit/types' +import { InputField } from '@segment/actions-core/destination-kit/types' export const customerProfileId: InputField = { label: 'Customer Profile ID', diff --git a/packages/destination-actions/src/destinations/the-trade-desk-crm/properties.ts b/packages/destination-actions/src/destinations/the-trade-desk-crm/properties.ts index 42c1d00423..d588082767 100644 --- a/packages/destination-actions/src/destinations/the-trade-desk-crm/properties.ts +++ b/packages/destination-actions/src/destinations/the-trade-desk-crm/properties.ts @@ -1,4 +1,4 @@ -import { InputField } from '@segment/actions-core/src/destination-kit/types' +import { InputField } from '@segment/actions-core/destination-kit/types' export const name: InputField = { label: 'Segment Name', diff --git a/packages/destination-actions/src/destinations/tiktok-audiences/properties.ts b/packages/destination-actions/src/destinations/tiktok-audiences/properties.ts index 210c4c8c17..eb2da751b5 100644 --- a/packages/destination-actions/src/destinations/tiktok-audiences/properties.ts +++ b/packages/destination-actions/src/destinations/tiktok-audiences/properties.ts @@ -1,4 +1,4 @@ -import { InputField } from '@segment/actions-core/src/destination-kit/types' +import { InputField } from '@segment/actions-core/destination-kit/types' export const selected_advertiser_id: InputField = { label: 'Advertiser ID', diff --git a/packages/destination-actions/src/destinations/twilio-studio/utils.ts b/packages/destination-actions/src/destinations/twilio-studio/utils.ts index 8942b00f8b..64d824972b 100644 --- a/packages/destination-actions/src/destinations/twilio-studio/utils.ts +++ b/packages/destination-actions/src/destinations/twilio-studio/utils.ts @@ -1,5 +1,5 @@ import { RequestOptions, IntegrationError, HTTPError } from '@segment/actions-core' -import { StateContext } from '@segment/actions-core/src/destination-kit' +import { StateContext } from '@segment/actions-core/destination-kit' import type { Settings } from './generated-types' import type { Payload } from './triggerStudioFlow/generated-types' interface ExternalId { diff --git a/packages/destination-actions/tsconfig.json b/packages/destination-actions/tsconfig.json index 6ee75d955c..853a3b7867 100644 --- a/packages/destination-actions/tsconfig.json +++ b/packages/destination-actions/tsconfig.json @@ -4,6 +4,7 @@ "baseUrl": ".", "paths": { "@segment/ajv-human-errors": ["../ajv-human-errors/src"], + "@segment/actions-core/*": ["../core/src/*"], "@segment/actions-core": ["../core/src"], "@segment/destination-subscriptions": ["../destination-subscriptions/src"], "@segment/actions-shared": ["../actions-shared/src"] diff --git a/packages/destination-subscriptions/package.json b/packages/destination-subscriptions/package.json index aa2760b471..6fee354a48 100644 --- a/packages/destination-subscriptions/package.json +++ b/packages/destination-subscriptions/package.json @@ -22,16 +22,6 @@ "main": "dist/cjs/index.js", "module": "dist/esm/index.js", "types": "dist/cjs/index.d.ts", - "exports": { - ".": { - "require": "./dist/cjs/index.js", - "default": "./dist/esm/index.js" - }, - "./": { - "require": "./dist/cjs/", - "default": "./dist/esm/" - } - }, "sideEffects": false, "files": [ "dist", diff --git a/packages/destinations-manifest/package.json b/packages/destinations-manifest/package.json new file mode 100644 index 0000000000..1076ddf932 --- /dev/null +++ b/packages/destinations-manifest/package.json @@ -0,0 +1,38 @@ +{ + "name": "@segment/destinations-manifest", + "version": "0.0.0", + "scripts": { + "dev": "tsc -w", + "build": "tsc" + }, + "main": "./dist/index.js", + "typings": "./dist/index.d.ts", + "dependencies": { + "@segment/analytics-browser-actions-adobe-target": "0.0.0", + "@segment/analytics-browser-actions-amplitude-plugins": "0.0.0", + "@segment/analytics-browser-actions-braze-cloud-plugins": "0.0.0", + "@segment/analytics-browser-actions-braze": "0.0.0", + "@segment/analytics-browser-actions-commandbar": "0.0.0", + "@segment/analytics-browser-actions-friendbuy": "0.0.0", + "@segment/analytics-browser-actions-fullstory": "0.0.0", + "@segment/analytics-browser-actions-google-analytics-4": "0.0.0", + "@segment/analytics-browser-actions-heap": "0.0.0", + "@segment/analytics-browser-actions-hubspot": "0.0.0", + "@segment/analytics-browser-actions-intercom": "0.0.0", + "@segment/analytics-browser-actions-iterate": "0.0.0", + "@segment/analytics-browser-actions-koala": "0.0.0", + "@segment/analytics-browser-actions-logrocket": "0.0.0", + "@segment/analytics-browser-actions-playerzero": "0.0.0", + "@segment/analytics-browser-actions-ripe": "0.0.0", + "@segment/analytics-browser-actions-sabil": "0.0.0", + "@segment/analytics-browser-actions-screeb": "0.0.0", + "@segment/analytics-browser-actions-utils": "0.0.0", + "@segment/analytics-browser-actions-sprig": "0.0.0", + "@segment/analytics-browser-actions-stackadapt": "0.0.0", + "@segment/analytics-browser-actions-upollo": "0.0.0", + "@segment/analytics-browser-actions-userpilot": "0.0.0", + "@segment/analytics-browser-actions-vwo": "0.0.0", + "@segment/analytics-browser-actions-wiseops": "0.0.0", + "@segment/browser-destination-runtime": "0.0.0" + } +} diff --git a/packages/destinations-manifest/src/index.ts b/packages/destinations-manifest/src/index.ts new file mode 100644 index 0000000000..58797679f1 --- /dev/null +++ b/packages/destinations-manifest/src/index.ts @@ -0,0 +1,56 @@ +import path from 'path' + +import type { BrowserDestinationDefinition } from '@segment/browser-destination-runtime/types' + +export { BrowserDestinationDefinition } from '@segment/browser-destination-runtime/types' + +type MetadataId = string + +export interface ManifestEntry { + // eslint-disable-next-line @typescript-eslint/no-explicit-any + definition: BrowserDestinationDefinition + directory: string + path: string +} + +export const manifest: Record = {} + +function register(id: MetadataId, destinationName: string) { + // eslint-disable-next-line @typescript-eslint/no-var-requires + const definition = require(destinationName).destination + const entryFilePath = require.resolve(destinationName) + const directory = path.basename(path.resolve(entryFilePath, '../../..')) + + manifest[id] = { + definition, + directory, + path: entryFilePath + } +} + +// TODO figure out if it's possible to colocate the Amplitude web action with the rest of its destination definition (in `./packages/destination-actions`) +register('61fc2ffcc76fb3e73d85c89d', '@segment/analytics-browser-actions-adobe-target') +register('5f7dd6d21ad74f3842b1fc47', '@segment/analytics-browser-actions-amplitude-plugins') +register('60fb01aec459242d3b6f20c1', '@segment/analytics-browser-actions-braze') +register('60f9d0d048950c356be2e4da', '@segment/analytics-browser-actions-braze-cloud-plugins') +register('6170a348128093cd0245e0ea', '@segment/analytics-browser-actions-friendbuy') +register('6141153ee7500f15d3838703', '@segment/analytics-browser-actions-fullstory') +register('6230c835c0d6535357ee950d', '@segment/analytics-browser-actions-koala') +register('61d8859be4f795335d5c677c', '@segment/analytics-browser-actions-stackadapt') +register('61d8c74d174a9acd0e138b31', '@segment/analytics-browser-actions-sprig') +register('62b256147cbb49302d1486d0', '@segment/analytics-browser-actions-heap') +register('62d9daff84a6bf190da9f592', '@segment/analytics-browser-actions-intercom') +register('62fec615a42fa3dbfd208ce7', '@segment/analytics-browser-actions-iterate') +register('631a1c2bfdce36a23f0a14ec', '@segment/analytics-browser-actions-hubspot') +register('6340a951fbda093061f5f1d7', '@segment/analytics-browser-actions-utils') +register('634ef204885be3def430af66', '@segment/analytics-browser-actions-playerzero') +register('635ada35ce269dbe305203ff', '@segment/analytics-browser-actions-logrocket') +register('6372e18fb2b3d5d741c34bb6', '@segment/analytics-browser-actions-sabil') +register('6372e1e36d9c2181f3900834', '@segment/analytics-browser-actions-wiseops') +register('637c192eba61b944e08ee158', '@segment/analytics-browser-actions-vwo') +register('638f843c4520d424f63c9e51', '@segment/analytics-browser-actions-commandbar') +register('63913b2bf906ea939f153851', '@segment/analytics-browser-actions-ripe') +register('63ed446fe60a1b56c5e6f130', '@segment/analytics-browser-actions-google-analytics-4') +register('640267d74c13708d74062dcd', '@segment/analytics-browser-actions-upollo') +register('6480b4eeab29eca5415089d4', '@segment/analytics-browser-actions-userpilot') +register('64820d8030d09e775fbac372', '@segment/analytics-browser-actions-screeb') diff --git a/packages/destinations-manifest/tsconfig.json b/packages/destinations-manifest/tsconfig.json new file mode 100644 index 0000000000..fd80f7e2ab --- /dev/null +++ b/packages/destinations-manifest/tsconfig.json @@ -0,0 +1,10 @@ +{ + "extends": "../../tsconfig.json", + "compilerOptions": { + "module": "CommonJS", + "removeComments": false, + "baseUrl": ".", + "outDir": "dist" + }, + "exclude": ["dist"] +} \ No newline at end of file diff --git a/yarn.lock b/yarn.lock index 1c4495abc7..0a0dfdb674 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1013,13 +1013,13 @@ "@braze/web-sdk-v3@npm:@braze/web-sdk@^3.5.1": version "3.5.1" - resolved "https://registry.npmjs.org/@braze/web-sdk/-/web-sdk-3.5.1.tgz#04cd8e7021e13a690cd9c2ad7e7a3b5028d06178" + resolved "https://registry.yarnpkg.com/@braze/web-sdk/-/web-sdk-3.5.1.tgz#04cd8e7021e13a690cd9c2ad7e7a3b5028d06178" integrity sha512-Quvqs2RqTZK7+VUCwsGMT9EHYwiXUYwWJk441ly2F0yj64WK2GPvXy3XdIpXLCgWVhGg42WNJ4X6WBgfaF+3EQ== "@braze/web-sdk@npm:@braze/web-sdk@^4.1.0": - version "4.1.0" - resolved "https://registry.npmjs.org/@braze/web-sdk/-/web-sdk-4.1.0.tgz#e7045d6dc336bce74e313c0430163916e9984a18" - integrity sha512-tqrwrdVNiZDt1ZnYcD6vSnyOcr8eEq5Sc7O2UHpskGMKT7DRy/rtQu/agolrNLq7XLLgUbj/S9TdjopCkPq2Xw== + version "4.7.0" + resolved "https://registry.yarnpkg.com/@braze/web-sdk/-/web-sdk-4.7.0.tgz#5adb930690d78dd3bc77a93dececde360a08d0f7" + integrity sha512-fYdCyjlZqBswlebO8XmbPj04soLycHxnSvCQ/bWpi4OB00fz/ne34vv1LzIP3d0V5++jwjsutxdEi5mRiiMK1Q== "@colors/colors@1.5.0": version "1.5.0" @@ -1047,9 +1047,16 @@ strip-json-comments "^3.1.1" "@fullstory/browser@^1.4.9": - version "1.4.9" - resolved "https://registry.yarnpkg.com/@fullstory/browser/-/browser-1.4.9.tgz#e350d779caa1ba56bed22615d9b157efbefa7b47" - integrity sha512-h8ihrXT8pGemh5n7CKrukkEbbRIuCi0I/GJKI8DJpGyloI4WNTX5SC8Aihec7ScfK6Fi6ZpiLkGP3hogZqoNWw== + version "1.7.1" + resolved "https://registry.yarnpkg.com/@fullstory/browser/-/browser-1.7.1.tgz#eb94fcb5e21b13a1b30de58951480ac344e61cdd" + integrity sha512-IBPisG+xRyTHHX8XkZJkQRbP2hVYNMZUYW8R3YiB582dl/VZImkFN+LopIAfPqB97FAZgUTofi7flkrHT4Qmtg== + dependencies: + "@fullstory/snippet" "1.3.1" + +"@fullstory/snippet@1.3.1": + version "1.3.1" + resolved "https://registry.yarnpkg.com/@fullstory/snippet/-/snippet-1.3.1.tgz#6817ea94601e071e630b25262e703ca356a5f537" + integrity sha512-NgrBWGHH5i8zejlRFSyJNhovkNqHAXsWKrcXIWaABrgESwbkdGETjOU7BD7d1ZeT0X+QXL/2yr/1y4xnWfVkwQ== "@gar/promisify@^1.1.3": version "1.1.3" @@ -1348,11 +1355,61 @@ "@types/yargs" "^17.0.8" chalk "^4.0.0" +"@jridgewell/gen-mapping@^0.3.0": + version "0.3.3" + resolved "https://registry.yarnpkg.com/@jridgewell/gen-mapping/-/gen-mapping-0.3.3.tgz#7e02e6eb5df901aaedb08514203b096614024098" + integrity sha512-HLhSWOLRi875zjjMG/r+Nv0oCW8umGb0BgEhyX3dDX3egwZtB8PqLnjz3yedt8R5StBrzcg4aBpnh8UA9D1BoQ== + dependencies: + "@jridgewell/set-array" "^1.0.1" + "@jridgewell/sourcemap-codec" "^1.4.10" + "@jridgewell/trace-mapping" "^0.3.9" + +"@jridgewell/resolve-uri@3.1.0": + version "3.1.0" + resolved "https://registry.yarnpkg.com/@jridgewell/resolve-uri/-/resolve-uri-3.1.0.tgz#2203b118c157721addfe69d47b70465463066d78" + integrity sha512-F2msla3tad+Mfht5cJq7LSXcdudKTWCVYUgw6pLFOOHSTtZlj6SWNYAp+AhuqLmWdBO2X5hPrLcu8cVP8fy28w== + +"@jridgewell/set-array@^1.0.1": + version "1.1.2" + resolved "https://registry.yarnpkg.com/@jridgewell/set-array/-/set-array-1.1.2.tgz#7c6cf998d6d20b914c0a55a91ae928ff25965e72" + integrity sha512-xnkseuNADM0gt2bs+BvhO0p78Mk762YnZdsuzFV018NoG1Sj1SCQvpSqa7XUaTam5vAGasABV9qXASMKnFMwMw== + +"@jridgewell/source-map@^0.3.2": + version "0.3.3" + resolved "https://registry.yarnpkg.com/@jridgewell/source-map/-/source-map-0.3.3.tgz#8108265659d4c33e72ffe14e33d6cc5eb59f2fda" + integrity sha512-b+fsZXeLYi9fEULmfBrhxn4IrPlINf8fiNarzTof004v3lFdntdwa9PF7vFJqm3mg7s+ScJMxXaE3Acp1irZcg== + dependencies: + "@jridgewell/gen-mapping" "^0.3.0" + "@jridgewell/trace-mapping" "^0.3.9" + +"@jridgewell/sourcemap-codec@1.4.14": + version "1.4.14" + resolved "https://registry.yarnpkg.com/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.14.tgz#add4c98d341472a289190b424efbdb096991bb24" + integrity sha512-XPSJHWmi394fuUuzDnGz1wiKqWfo1yXecHQMRf2l6hztTO+nPru658AyDngaBe7isIxEkRsPR3FZh+s7iVa4Uw== + +"@jridgewell/sourcemap-codec@^1.4.10": + version "1.4.15" + resolved "https://registry.yarnpkg.com/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.15.tgz#d7c6e6755c78567a951e04ab52ef0fd26de59f32" + integrity sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg== + +"@jridgewell/trace-mapping@^0.3.17", "@jridgewell/trace-mapping@^0.3.9": + version "0.3.18" + resolved "https://registry.yarnpkg.com/@jridgewell/trace-mapping/-/trace-mapping-0.3.18.tgz#25783b2086daf6ff1dcb53c9249ae480e4dd4cd6" + integrity sha512-w+niJYzMHdd7USdiH2U6869nqhD2nbfZXND5Yp93qIbEmnDNk7PD48o+YchRVpzMU7M6jVCbenTR7PA1FLQ9pA== + dependencies: + "@jridgewell/resolve-uri" "3.1.0" + "@jridgewell/sourcemap-codec" "1.4.14" + "@jsdevtools/ono@^7.1.3": version "7.1.3" resolved "https://registry.yarnpkg.com/@jsdevtools/ono/-/ono-7.1.3.tgz#9df03bbd7c696a5c58885c34aa06da41c8543796" integrity sha512-4JQNk+3mVzK3xh2rqd6RB4J46qUR19azEHBneZyTZM+c456qOrbbM/5xcR8huNCCcbVt7+UmizG6GuUvPvKUYg== +"@leichtgewicht/ip-codec@^2.0.1": + version "2.0.4" + resolved "https://registry.yarnpkg.com/@leichtgewicht/ip-codec/-/ip-codec-2.0.4.tgz#b2ac626d6cb9c8718ab459166d4bb405b8ffa78b" + integrity sha512-Hcv+nVC0kZnQ3tD9GVu5xSMR4VVYOteQIr/hwFPVEvPdlXqgGEuRjiheChHgdM+JyqdgNcmzZOX/tnl0JOiI7A== + "@lerna/add@6.0.3": version "6.0.3" resolved "https://registry.yarnpkg.com/@lerna/add/-/add-6.0.3.tgz#341927d00b79ad2a2c0e9aec239b203e5a04fa12" @@ -2587,25 +2644,25 @@ resolved "https://registry.yarnpkg.com/@segment/a1-notation/-/a1-notation-2.1.4.tgz#35a48a0688019c3ffff23b1ba890e864c891a11f" integrity sha512-SId7GOdDFmm/B9ajIQpXELHW4OTbVvmJbOsoJkQOcUEtoZIiX2UWfk1v4BpKql8wJW9oAhzhIIru2Pv2Yxcg+w== -"@segment/analytics-core@1.2.3": - version "1.2.3" - resolved "https://registry.yarnpkg.com/@segment/analytics-core/-/analytics-core-1.2.3.tgz#729c5b72d6d940341ea8cba9d3ff3eef39baef7a" - integrity sha512-/B4f4Hxmwd9WpEba/ChYkUwhILz5cPhG4Sto03IlLc8vbV7gAOCGH021EKvU3Wv70WlRK6EgJkuDLPnRl2a2aA== +"@segment/analytics-core@1.3.0": + version "1.3.0" + resolved "https://registry.yarnpkg.com/@segment/analytics-core/-/analytics-core-1.3.0.tgz#677d1087af44d31266ddf60f72f93b5d5693c933" + integrity sha512-ujScWZH49NK1hYlp2/EMw45nOPEh+pmTydAnR6gSkRNucZD4fuinvpPL03rmFCw8ibaMuKLAdgPJfQ0gkLKZ5A== dependencies: "@lukeed/uuid" "^2.0.0" dset "^3.1.2" tslib "^2.4.1" -"@segment/analytics-next@^1.51.3": - version "1.51.3" - resolved "https://registry.yarnpkg.com/@segment/analytics-next/-/analytics-next-1.51.3.tgz#4720691d2bac43bb8390d4a7a15881e52dc9529f" - integrity sha512-c22GDz6rrhliIsgtLQjEcRiZdqb70+0hEyfTI6YpRXZzEXBwdJybO5ZCD7NRlVFHf/qXp1qcjHuQ5xyOGr2lJg== +"@segment/analytics-next@*": + version "1.53.0" + resolved "https://registry.yarnpkg.com/@segment/analytics-next/-/analytics-next-1.53.0.tgz#05dce27ce20a9abb3f9ea2d6e6d67667c82f2a9d" + integrity sha512-7bzUjxGuccQpDx7CrteAx4yM2eDosjheQLySLBi6cz25EwPbBPb2X+ZzBUZIfLA0V0Co0zWaE6xXzVw8X5zSpQ== dependencies: "@lukeed/uuid" "^2.0.0" - "@segment/analytics-core" "1.2.3" + "@segment/analytics-core" "1.3.0" "@segment/analytics.js-video-plugins" "^0.2.1" "@segment/facade" "^3.4.9" - "@segment/tsub" "1.0.1" + "@segment/tsub" "^2.0.0" dset "^3.1.2" js-cookie "3.0.1" node-fetch "^2.6.7" @@ -2632,9 +2689,9 @@ querystring "^0.2.0" "@segment/facade@^3.4.9": - version "3.4.9" - resolved "https://registry.yarnpkg.com/@segment/facade/-/facade-3.4.9.tgz#07e614073fa873910035c085e69bccd27df088a6" - integrity sha512-0RTLB0g4HiJASc6pTD2/Tru+Qz+VPGL1W+/EvkBGhY6WYk00cZhTjLsMJ8X5BO6iPqLb3vsxtfjVM/RREG5oQQ== + version "3.4.10" + resolved "https://registry.yarnpkg.com/@segment/facade/-/facade-3.4.10.tgz#118fab29cf2250d3128f9b2a16d6ec76f86e3710" + integrity sha512-xVQBbB/lNvk/u8+ey0kC/+g8pT3l0gCT8O2y9Z+StMMn3KAFAQ9w8xfgef67tJybktOKKU7pQGRPolRM1i1pdA== dependencies: "@segment/isodate-traverse" "^1.1.1" inherits "^2.0.4" @@ -2671,10 +2728,10 @@ nanoid "^2.1.7" query-string "^6.10.1" -"@segment/tsub@1.0.1": - version "1.0.1" - resolved "https://registry.yarnpkg.com/@segment/tsub/-/tsub-1.0.1.tgz#4d7fad9eb84b354eec559020da7408fac3046b33" - integrity sha512-rUpvlj/rRfOolk5rjwyrsbl0qzGLsaYgFNEiOSrwrWDryDPq1ZGdo+3Eb+E8+EC0yZOAO4F1DjJfLtaSifpx7w== +"@segment/tsub@^2.0.0": + version "2.0.0" + resolved "https://registry.yarnpkg.com/@segment/tsub/-/tsub-2.0.0.tgz#321e781a38fcd3720853f2da7574b523b447a296" + integrity sha512-NzkBK8GwPsyQ74AceLjENbUoaFrObnzEKOX4ko2wZDuIyK+DnDm3B//8xZYI2LCKt+wUD55l6ygfjCoVs8RMWw== dependencies: "@stdlib/math-base-special-ldexp" "^0.0.5" dlv "^1.1.3" @@ -3212,7 +3269,7 @@ "@stdlib/utils-noop" "^0.0.x" minimist "^1.2.0" -"@stdlib/complex-float32@^0.0.x": +"@stdlib/complex-float32@^0.0.7", "@stdlib/complex-float32@^0.0.x": version "0.0.7" resolved "https://registry.yarnpkg.com/@stdlib/complex-float32/-/complex-float32-0.0.7.tgz#fb9a0c34254eaf3ed91c39983e19ef131fc18bc1" integrity sha512-POCtQcBZnPm4IrFmTujSaprR1fcOFr/MRw2Mt7INF4oed6b1nzeG647K+2tk1m4mMrMPiuXCdvwJod4kJ0SXxQ== @@ -3223,7 +3280,7 @@ "@stdlib/utils-define-property" "^0.0.x" "@stdlib/utils-library-manifest" "^0.0.x" -"@stdlib/complex-float64@^0.0.x": +"@stdlib/complex-float64@^0.0.8", "@stdlib/complex-float64@^0.0.x": version "0.0.8" resolved "https://registry.yarnpkg.com/@stdlib/complex-float64/-/complex-float64-0.0.8.tgz#00ee3a0629d218a01b830a20406aea7d7aff6fb3" integrity sha512-lUJwsXtGEziOWAqCcnKnZT4fcVoRsl6t6ECaCJX45Z7lAc70yJLiwUieLWS5UXmyoADHuZyUXkxtI4oClfpnaw== @@ -3234,7 +3291,7 @@ "@stdlib/utils-define-property" "^0.0.x" "@stdlib/utils-library-manifest" "^0.0.x" -"@stdlib/complex-reim@^0.0.x": +"@stdlib/complex-reim@^0.0.6", "@stdlib/complex-reim@^0.0.x": version "0.0.6" resolved "https://registry.yarnpkg.com/@stdlib/complex-reim/-/complex-reim-0.0.6.tgz#9657971e36f2a1f1930a21249c1934c8c5087efd" integrity sha512-28WXfPSIFMtHb0YgdatkGS4yxX5sPYea5MiNgqPv3E78+tFcg8JJG52NQ/MviWP2wsN9aBQAoCPeu8kXxSPdzA== @@ -3244,7 +3301,7 @@ "@stdlib/types" "^0.0.x" "@stdlib/utils-library-manifest" "^0.0.x" -"@stdlib/complex-reimf@^0.0.x": +"@stdlib/complex-reimf@^0.0.1", "@stdlib/complex-reimf@^0.0.x": version "0.0.1" resolved "https://registry.yarnpkg.com/@stdlib/complex-reimf/-/complex-reimf-0.0.1.tgz#6797bc1bfb668a30511611f2544d0cff4d297775" integrity sha512-P9zu05ZW2i68Oppp3oHelP7Tk0D7tGBL0hGl1skJppr2vY9LltuNbeYI3C96tQe/7Enw/5GyAWgxoQI4cWccQA== @@ -3401,15 +3458,15 @@ "@stdlib/utils-library-manifest" "^0.0.x" "@stdlib/math-base-napi-unary@^0.0.x": - version "0.0.8" - resolved "https://registry.yarnpkg.com/@stdlib/math-base-napi-unary/-/math-base-napi-unary-0.0.8.tgz#4a6719886caa96bcfb67648c368a84b47072be6f" - integrity sha512-xKbGBxbgrEe7dxCDXJrooXPhXSDUl/QPqsN74Qa0+8Svsc4sbYVdU3yHSN5vDgrcWt3ZkH51j0vCSBIjvLL15g== + version "0.0.9" + resolved "https://registry.yarnpkg.com/@stdlib/math-base-napi-unary/-/math-base-napi-unary-0.0.9.tgz#3a70fa64128aca7011c5a477110d2682d06c8ea8" + integrity sha512-2WNKhjCygkGMp0RgjaD7wAHJTqPZmuVW7yPOc62Tnz2U+Ad8q/tcOcN+uvq2dtKsAGr1HDMIQxZ/XrrThMePyA== dependencies: - "@stdlib/complex-float32" "^0.0.x" - "@stdlib/complex-float64" "^0.0.x" - "@stdlib/complex-reim" "^0.0.x" - "@stdlib/complex-reimf" "^0.0.x" - "@stdlib/utils-library-manifest" "^0.0.x" + "@stdlib/complex-float32" "^0.0.7" + "@stdlib/complex-float64" "^0.0.8" + "@stdlib/complex-reim" "^0.0.6" + "@stdlib/complex-reimf" "^0.0.1" + "@stdlib/utils-library-manifest" "^0.0.8" "@stdlib/math-base-special-abs@^0.0.x": version "0.0.6" @@ -3715,7 +3772,7 @@ dependencies: "@stdlib/assert-is-boolean" "^0.0.x" -"@stdlib/utils-library-manifest@^0.0.x": +"@stdlib/utils-library-manifest@^0.0.8", "@stdlib/utils-library-manifest@^0.0.x": version "0.0.8" resolved "https://registry.yarnpkg.com/@stdlib/utils-library-manifest/-/utils-library-manifest-0.0.8.tgz#61d3ed283e82c8f14b7f952d82cfb8e47d036825" integrity sha512-IOQSp8skSRQn9wOyMRUX9Hi0j/P5v5TvD8DJWTqtE8Lhr8kVVluMBjHfvheoeKHxfWAbNHSVpkpFY/Bdh/SHgQ== @@ -3740,9 +3797,9 @@ integrity sha512-l+hPl7+CgLPxk/gcWOXRxX/lNyfqcFCqhzzV/ZMvFCYLY/wI9lcWO4xTQNMALY2rp+kiV+qiAiO9zcO+hewwUg== "@stdlib/utils-noop@^0.0.x": - version "0.0.13" - resolved "https://registry.yarnpkg.com/@stdlib/utils-noop/-/utils-noop-0.0.13.tgz#d8b113c605d327d786106448571c44b0f070751d" - integrity sha512-JRWHGWYWP5QK7SQ2cOYiL8NETw8P33LriZh1p9S2xC4e0rBoaY849h1A2IL2y1+x3s29KNjSaBWMrMUIV5HCSw== + version "0.0.14" + resolved "https://registry.yarnpkg.com/@stdlib/utils-noop/-/utils-noop-0.0.14.tgz#8a2077fae0877c4c9e4c5f72f3c9284ca109d4c3" + integrity sha512-A5faFEUfszMgd93RCyB+aWb62hQxgP+dZ/l9rIOwNWbIrCYNwSuL4z50lNJuatnwwU4BQ4EjQr+AmBsnvuLcyQ== "@stdlib/utils-regexp-from-string@^0.0.x": version "0.0.9" @@ -3790,11 +3847,6 @@ resolved "https://registry.yarnpkg.com/@trysound/sax/-/sax-0.1.1.tgz#3348564048e7a2d7398c935d466c0414ebb6a669" integrity sha512-Z6DoceYb/1xSg5+e+ZlPZ9v0N16ZvZ+wYMraFue4HYrE4ttONKtsvruIRf6t9TBR0YvSOfi1hUU0fJfBLCDYow== -"@types/amplitude-js@^7.0.1": - version "7.0.1" - resolved "https://registry.yarnpkg.com/@types/amplitude-js/-/amplitude-js-7.0.1.tgz#c0b1bc6e508faa513a30ece580c300f0738a9449" - integrity sha512-xrmhX39GoSBIuOOPWYL5uvVLn6a5Cvea0wb6SkJNW9+2w5GCK6hT0vvMaH1GaaeSqvb1QFjHNsEgXuyQqML0sw== - "@types/archy@^0.0.32": version "0.0.32" resolved "https://registry.yarnpkg.com/@types/archy/-/archy-0.0.32.tgz#8b572741dad9172dfbf289397af1bb41296d3e40" @@ -3858,6 +3910,13 @@ "@types/connect" "*" "@types/node" "*" +"@types/bonjour@^3.5.9": + version "3.5.10" + resolved "https://registry.yarnpkg.com/@types/bonjour/-/bonjour-3.5.10.tgz#0f6aadfe00ea414edc86f5d106357cda9701e275" + integrity sha512-p7ienRMiS41Nu2/igbJxxLDWrSZ0WxM8UQgCeO9KhoVF7cOVFkrKsiDr1EsJIla8vV3oEEjGcz11jc5yimhzZw== + dependencies: + "@types/node" "*" + "@types/btoa-lite@^1.0.0": version "1.0.0" resolved "https://registry.yarnpkg.com/@types/btoa-lite/-/btoa-lite-1.0.0.tgz#e190a5a548e0b348adb0df9ac7fa5f1151c7cca4" @@ -3883,6 +3942,14 @@ resolved "https://registry.yarnpkg.com/@types/chance/-/chance-1.1.3.tgz#d19fe9391288d60fdccd87632bfc9ab2b4523fea" integrity sha512-X6c6ghhe4/sQh4XzcZWSFaTAUOda38GQHmq9BUanYkOE/EO7ZrkazwKmtsj3xzTjkLWmwULE++23g3d3CCWaWw== +"@types/connect-history-api-fallback@^1.3.5": + version "1.5.0" + resolved "https://registry.yarnpkg.com/@types/connect-history-api-fallback/-/connect-history-api-fallback-1.5.0.tgz#9fd20b3974bdc2bcd4ac6567e2e0f6885cb2cf41" + integrity sha512-4x5FkPpLipqwthjPsF7ZRbOv3uoLUFkTA9G9v583qi4pACvq0uTELrB8OLUzPWUI4IJIyvM85vzkV1nyiI2Lig== + dependencies: + "@types/express-serve-static-core" "*" + "@types/node" "*" + "@types/connect@*": version "3.4.35" resolved "https://registry.yarnpkg.com/@types/connect/-/connect-3.4.35.tgz#5fcf6ae445e4021d1fc2219a4873cc73a3bb2ad1" @@ -3925,6 +3992,14 @@ "@types/eslint" "*" "@types/estree" "*" +"@types/eslint-scope@^3.7.3": + version "3.7.4" + resolved "https://registry.yarnpkg.com/@types/eslint-scope/-/eslint-scope-3.7.4.tgz#37fc1223f0786c39627068a12e94d6e6fc61de16" + integrity sha512-9K4zoImiZc3HlIp6AVUDE4CWYx22a+lhSZMYNpbjW04+YF0KWj4pJXnEMjdnFTiQibFFmElcsasJXDbdI/EPhA== + dependencies: + "@types/eslint" "*" + "@types/estree" "*" + "@types/eslint@*": version "7.28.1" resolved "https://registry.yarnpkg.com/@types/eslint/-/eslint-7.28.1.tgz#50b07747f1f84c2ba8cd394cf0fe0ba07afce320" @@ -3938,6 +4013,21 @@ resolved "https://registry.yarnpkg.com/@types/estree/-/estree-0.0.50.tgz#1e0caa9364d3fccd2931c3ed96fdbeaa5d4cca83" integrity sha512-C6N5s2ZFtuZRj54k2/zyRhNDjJwwcViAM3Nbm8zjBpbqAdZ00mr0CFxvSKeO8Y/e03WVFLpQMdHYVfUd6SB+Hw== +"@types/estree@^1.0.0": + version "1.0.1" + resolved "https://registry.yarnpkg.com/@types/estree/-/estree-1.0.1.tgz#aa22750962f3bf0e79d753d3cc067f010c95f194" + integrity sha512-LG4opVs2ANWZ1TJoKc937iMmNstM/d0ae1vNbnBvBhqCSezgVUOzcLCqbI5elV8Vy6WKwKjaqR+zO9VKirBBCA== + +"@types/express-serve-static-core@*", "@types/express-serve-static-core@^4.17.33": + version "4.17.34" + resolved "https://registry.yarnpkg.com/@types/express-serve-static-core/-/express-serve-static-core-4.17.34.tgz#c119e85b75215178bc127de588e93100698ab4cc" + integrity sha512-fvr49XlCGoUj2Pp730AItckfjat4WNb0lb3kfrLWffd+RLeoGAMsq7UOy04PAPtoL01uKwcp6u8nhzpgpDYr3w== + dependencies: + "@types/node" "*" + "@types/qs" "*" + "@types/range-parser" "*" + "@types/send" "*" + "@types/express-serve-static-core@^4.17.31": version "4.17.33" resolved "https://registry.yarnpkg.com/@types/express-serve-static-core/-/express-serve-static-core-4.17.33.tgz#de35d30a9d637dc1450ad18dd583d75d5733d543" @@ -3947,6 +4037,16 @@ "@types/qs" "*" "@types/range-parser" "*" +"@types/express@*", "@types/express@^4.17.13": + version "4.17.17" + resolved "https://registry.yarnpkg.com/@types/express/-/express-4.17.17.tgz#01d5437f6ef9cfa8668e616e13c2f2ac9a491ae4" + integrity sha512-Q4FmmuLGBG58btUnfS1c1r/NQdlp3DMfGDGig8WhfpA2YRUtEkxAjkZb0yvplJGYdF1fsQ81iMDcH24sSCNC/Q== + dependencies: + "@types/body-parser" "*" + "@types/express-serve-static-core" "^4.17.33" + "@types/qs" "*" + "@types/serve-static" "*" + "@types/express@^4.17.16": version "4.17.16" resolved "https://registry.yarnpkg.com/@types/express/-/express-4.17.16.tgz#986caf0b4b850611254505355daa24e1b8323de8" @@ -3996,10 +4096,10 @@ resolved "https://registry.yarnpkg.com/@types/http-cache-semantics/-/http-cache-semantics-4.0.1.tgz#0ea7b61496902b95890dc4c3a116b60cb8dae812" integrity sha512-SZs7ekbP8CN0txVG2xVRH6EgKmEm31BOxA07vkFaETzZz1xh+cbt8BcI0slpymvwhx5dlFnQG2rTlPVQn+iRPQ== -"@types/http-proxy@^1.17.5": - version "1.17.7" - resolved "https://registry.yarnpkg.com/@types/http-proxy/-/http-proxy-1.17.7.tgz#30ea85cc2c868368352a37f0d0d3581e24834c6f" - integrity sha512-9hdj6iXH64tHSLTY+Vt2eYOGzSogC+JQ2H7bdPWkuh7KXP5qLllWx++t+K9Wk556c3dkDdPws/SpMRi0sdCT1w== +"@types/http-proxy@^1.17.8": + version "1.17.11" + resolved "https://registry.yarnpkg.com/@types/http-proxy/-/http-proxy-1.17.11.tgz#0ca21949a5588d55ac2b659b69035c84bd5da293" + integrity sha512-HC8G7c1WmaF2ekqpnFq626xd3Zz0uvaqFmBJNRZCGEZCXkvSdJoNFn/8Ygbd9fKNQj8UzLdCETaI0UWPAjK7IA== dependencies: "@types/node" "*" @@ -4037,11 +4137,6 @@ jest-diff "^27.0.0" pretty-format "^27.0.0" -"@types/js-cookie@^3.0.0": - version "3.0.2" - resolved "https://registry.yarnpkg.com/@types/js-cookie/-/js-cookie-3.0.2.tgz#451eaeece64c6bdac8b2dde0caab23b085899e0d" - integrity sha512-6+0ekgfusHftJNYpihfkMu8BWdeHs9EOJuGcSofErjstGPfPGEu9yTu4t460lTzzAMl2cM5zngQJqPMHbbnvYA== - "@types/jscodeshift@^0.11.0": version "0.11.2" resolved "https://registry.yarnpkg.com/@types/jscodeshift/-/jscodeshift-0.11.2.tgz#cbad968d5bf6055529531364e57be119563e9685" @@ -4105,6 +4200,11 @@ dependencies: "@types/node" "*" +"@types/mime@*": + version "3.0.1" + resolved "https://registry.yarnpkg.com/@types/mime/-/mime-3.0.1.tgz#5f8f2bca0a5863cb69bc0b0acd88c96cb1d4ae10" + integrity sha512-Y4XFY5VJAuw0FgAqPNd6NNoV44jbq9Bz2L7Rh/J6jLTiHBSBJa9fxqQIvkIld4GsoDOcCbvzOUAbLPsSKKg+uA== + "@types/mime@^1": version "1.3.2" resolved "https://registry.yarnpkg.com/@types/mime/-/mime-1.3.2.tgz#93e25bf9ee75fe0fd80b594bc4feb0e862111b5a" @@ -4224,6 +4324,21 @@ resolved "https://registry.yarnpkg.com/@types/semver/-/semver-7.3.9.tgz#152c6c20a7688c30b967ec1841d31ace569863fc" integrity sha512-L/TMpyURfBkf+o/526Zb6kd/tchUP3iBDEPjqjb+U2MAJhVRxxrmr2fwpe08E7QsV7YLcpq0tUaQ9O9x97ZIxQ== +"@types/send@*": + version "0.17.1" + resolved "https://registry.yarnpkg.com/@types/send/-/send-0.17.1.tgz#ed4932b8a2a805f1fe362a70f4e62d0ac994e301" + integrity sha512-Cwo8LE/0rnvX7kIIa3QHCkcuF21c05Ayb0ZfxPiv0W8VRiZiNW/WuRupHKpqqGVGf7SUA44QSOUKaEd9lIrd/Q== + dependencies: + "@types/mime" "^1" + "@types/node" "*" + +"@types/serve-index@^1.9.1": + version "1.9.1" + resolved "https://registry.yarnpkg.com/@types/serve-index/-/serve-index-1.9.1.tgz#1b5e85370a192c01ec6cec4735cf2917337a6278" + integrity sha512-d/Hs3nWDxNL2xAczmOVZNj92YZCS6RGxfBPjKzuu/XirCgXdpKEb88dYNbrYGint6IVWLNP+yonwVAuRC0T2Dg== + dependencies: + "@types/express" "*" + "@types/serve-static@*": version "1.13.10" resolved "https://registry.yarnpkg.com/@types/serve-static/-/serve-static-1.13.10.tgz#f5e0ce8797d2d7cc5ebeda48a52c96c4fa47a8d9" @@ -4232,6 +4347,14 @@ "@types/mime" "^1" "@types/node" "*" +"@types/serve-static@^1.13.10": + version "1.15.1" + resolved "https://registry.yarnpkg.com/@types/serve-static/-/serve-static-1.15.1.tgz#86b1753f0be4f9a1bee68d459fcda5be4ea52b5d" + integrity sha512-NUo5XNiAdULrJENtJXZZ3fHtfMolzZwczzBbnAeBbqBwG+LaG6YaJtuwzwGSQZ2wsCrxjEhNNjAkKigy3n8teQ== + dependencies: + "@types/mime" "*" + "@types/node" "*" + "@types/sinon@*": version "10.0.2" resolved "https://registry.yarnpkg.com/@types/sinon/-/sinon-10.0.2.tgz#f360d2f189c0fd433d14aeb97b9d705d7e4cc0e4" @@ -4239,6 +4362,13 @@ dependencies: "@sinonjs/fake-timers" "^7.1.0" +"@types/sockjs@^0.3.33": + version "0.3.33" + resolved "https://registry.yarnpkg.com/@types/sockjs/-/sockjs-0.3.33.tgz#570d3a0b99ac995360e3136fd6045113b1bd236f" + integrity sha512-f0KEEe05NvUnat+boPTZ0dgaLZ4SfSouXUgv5noUiefG2ajgKjmETo9ZJyuqsl7dfl2aHlLJUiki6B4ZYldiiw== + dependencies: + "@types/node" "*" + "@types/ssh2-sftp-client@^9.0.0": version "9.0.0" resolved "https://registry.yarnpkg.com/@types/ssh2-sftp-client/-/ssh2-sftp-client-9.0.0.tgz#2031e01ae7b4d68ab59c7c1ea7a781c551e30698" @@ -4626,21 +4756,44 @@ "@webassemblyjs/helper-numbers" "1.11.1" "@webassemblyjs/helper-wasm-bytecode" "1.11.1" +"@webassemblyjs/ast@1.11.6", "@webassemblyjs/ast@^1.11.5": + version "1.11.6" + resolved "https://registry.yarnpkg.com/@webassemblyjs/ast/-/ast-1.11.6.tgz#db046555d3c413f8966ca50a95176a0e2c642e24" + integrity sha512-IN1xI7PwOvLPgjcf180gC1bqn3q/QaOCwYUahIOhbYUu8KA/3tw2RT/T0Gidi1l7Hhj5D/INhJxiICObqpMu4Q== + dependencies: + "@webassemblyjs/helper-numbers" "1.11.6" + "@webassemblyjs/helper-wasm-bytecode" "1.11.6" + "@webassemblyjs/floating-point-hex-parser@1.11.1": version "1.11.1" resolved "https://registry.yarnpkg.com/@webassemblyjs/floating-point-hex-parser/-/floating-point-hex-parser-1.11.1.tgz#f6c61a705f0fd7a6aecaa4e8198f23d9dc179e4f" integrity sha512-iGRfyc5Bq+NnNuX8b5hwBrRjzf0ocrJPI6GWFodBFzmFnyvrQ83SHKhmilCU/8Jv67i4GJZBMhEzltxzcNagtQ== +"@webassemblyjs/floating-point-hex-parser@1.11.6": + version "1.11.6" + resolved "https://registry.yarnpkg.com/@webassemblyjs/floating-point-hex-parser/-/floating-point-hex-parser-1.11.6.tgz#dacbcb95aff135c8260f77fa3b4c5fea600a6431" + integrity sha512-ejAj9hfRJ2XMsNHk/v6Fu2dGS+i4UaXBXGemOfQ/JfQ6mdQg/WXtwleQRLLS4OvfDhv8rYnVwH27YJLMyYsxhw== + "@webassemblyjs/helper-api-error@1.11.1": version "1.11.1" resolved "https://registry.yarnpkg.com/@webassemblyjs/helper-api-error/-/helper-api-error-1.11.1.tgz#1a63192d8788e5c012800ba6a7a46c705288fd16" integrity sha512-RlhS8CBCXfRUR/cwo2ho9bkheSXG0+NwooXcc3PAILALf2QLdFyj7KGsKRbVc95hZnhnERon4kW/D3SZpp6Tcg== +"@webassemblyjs/helper-api-error@1.11.6": + version "1.11.6" + resolved "https://registry.yarnpkg.com/@webassemblyjs/helper-api-error/-/helper-api-error-1.11.6.tgz#6132f68c4acd59dcd141c44b18cbebbd9f2fa768" + integrity sha512-o0YkoP4pVu4rN8aTJgAyj9hC2Sv5UlkzCHhxqWj8butaLvnpdc2jOwh4ewE6CX0txSfLn/UYaV/pheS2Txg//Q== + "@webassemblyjs/helper-buffer@1.11.1": version "1.11.1" resolved "https://registry.yarnpkg.com/@webassemblyjs/helper-buffer/-/helper-buffer-1.11.1.tgz#832a900eb444884cde9a7cad467f81500f5e5ab5" integrity sha512-gwikF65aDNeeXa8JxXa2BAk+REjSyhrNC9ZwdT0f8jc4dQQeDQ7G4m0f2QCLPJiMTTO6wfDmRmj/pW0PsUvIcA== +"@webassemblyjs/helper-buffer@1.11.6": + version "1.11.6" + resolved "https://registry.yarnpkg.com/@webassemblyjs/helper-buffer/-/helper-buffer-1.11.6.tgz#b66d73c43e296fd5e88006f18524feb0f2c7c093" + integrity sha512-z3nFzdcp1mb8nEOFFk8DrYLpHvhKC3grJD2ardfKOzmbmJvEf/tPIqCY+sNcwZIY8ZD7IkB2l7/pqhUhqm7hLA== + "@webassemblyjs/helper-numbers@1.11.1": version "1.11.1" resolved "https://registry.yarnpkg.com/@webassemblyjs/helper-numbers/-/helper-numbers-1.11.1.tgz#64d81da219fbbba1e3bd1bfc74f6e8c4e10a62ae" @@ -4650,11 +4803,25 @@ "@webassemblyjs/helper-api-error" "1.11.1" "@xtuc/long" "4.2.2" +"@webassemblyjs/helper-numbers@1.11.6": + version "1.11.6" + resolved "https://registry.yarnpkg.com/@webassemblyjs/helper-numbers/-/helper-numbers-1.11.6.tgz#cbce5e7e0c1bd32cf4905ae444ef64cea919f1b5" + integrity sha512-vUIhZ8LZoIWHBohiEObxVm6hwP034jwmc9kuq5GdHZH0wiLVLIPcMCdpJzG4C11cHoQ25TFIQj9kaVADVX7N3g== + dependencies: + "@webassemblyjs/floating-point-hex-parser" "1.11.6" + "@webassemblyjs/helper-api-error" "1.11.6" + "@xtuc/long" "4.2.2" + "@webassemblyjs/helper-wasm-bytecode@1.11.1": version "1.11.1" resolved "https://registry.yarnpkg.com/@webassemblyjs/helper-wasm-bytecode/-/helper-wasm-bytecode-1.11.1.tgz#f328241e41e7b199d0b20c18e88429c4433295e1" integrity sha512-PvpoOGiJwXeTrSf/qfudJhwlvDQxFgelbMqtq52WWiXC6Xgg1IREdngmPN3bs4RoO83PnL/nFrxucXj1+BX62Q== +"@webassemblyjs/helper-wasm-bytecode@1.11.6": + version "1.11.6" + resolved "https://registry.yarnpkg.com/@webassemblyjs/helper-wasm-bytecode/-/helper-wasm-bytecode-1.11.6.tgz#bb2ebdb3b83aa26d9baad4c46d4315283acd51e9" + integrity sha512-sFFHKwcmBprO9e7Icf0+gddyWYDViL8bpPjJJl0WHxCdETktXdmtWLGVzoHbqUcY4Be1LkNfwTmXOJUFZYSJdA== + "@webassemblyjs/helper-wasm-section@1.11.1": version "1.11.1" resolved "https://registry.yarnpkg.com/@webassemblyjs/helper-wasm-section/-/helper-wasm-section-1.11.1.tgz#21ee065a7b635f319e738f0dd73bfbda281c097a" @@ -4665,6 +4832,16 @@ "@webassemblyjs/helper-wasm-bytecode" "1.11.1" "@webassemblyjs/wasm-gen" "1.11.1" +"@webassemblyjs/helper-wasm-section@1.11.6": + version "1.11.6" + resolved "https://registry.yarnpkg.com/@webassemblyjs/helper-wasm-section/-/helper-wasm-section-1.11.6.tgz#ff97f3863c55ee7f580fd5c41a381e9def4aa577" + integrity sha512-LPpZbSOwTpEC2cgn4hTydySy1Ke+XEu+ETXuoyvuyezHO3Kjdu90KK95Sh9xTbmjrCsUwvWwCOQQNta37VrS9g== + dependencies: + "@webassemblyjs/ast" "1.11.6" + "@webassemblyjs/helper-buffer" "1.11.6" + "@webassemblyjs/helper-wasm-bytecode" "1.11.6" + "@webassemblyjs/wasm-gen" "1.11.6" + "@webassemblyjs/ieee754@1.11.1": version "1.11.1" resolved "https://registry.yarnpkg.com/@webassemblyjs/ieee754/-/ieee754-1.11.1.tgz#963929e9bbd05709e7e12243a099180812992614" @@ -4672,6 +4849,13 @@ dependencies: "@xtuc/ieee754" "^1.2.0" +"@webassemblyjs/ieee754@1.11.6": + version "1.11.6" + resolved "https://registry.yarnpkg.com/@webassemblyjs/ieee754/-/ieee754-1.11.6.tgz#bb665c91d0b14fffceb0e38298c329af043c6e3a" + integrity sha512-LM4p2csPNvbij6U1f19v6WR56QZ8JcHg3QIJTlSwzFcmx6WSORicYj6I63f9yU1kEUtrpG+kjkiIAkevHpDXrg== + dependencies: + "@xtuc/ieee754" "^1.2.0" + "@webassemblyjs/leb128@1.11.1": version "1.11.1" resolved "https://registry.yarnpkg.com/@webassemblyjs/leb128/-/leb128-1.11.1.tgz#ce814b45574e93d76bae1fb2644ab9cdd9527aa5" @@ -4679,11 +4863,23 @@ dependencies: "@xtuc/long" "4.2.2" +"@webassemblyjs/leb128@1.11.6": + version "1.11.6" + resolved "https://registry.yarnpkg.com/@webassemblyjs/leb128/-/leb128-1.11.6.tgz#70e60e5e82f9ac81118bc25381a0b283893240d7" + integrity sha512-m7a0FhE67DQXgouf1tbN5XQcdWoNgaAuoULHIfGFIEVKA6tu/edls6XnIlkmS6FrXAquJRPni3ZZKjw6FSPjPQ== + dependencies: + "@xtuc/long" "4.2.2" + "@webassemblyjs/utf8@1.11.1": version "1.11.1" resolved "https://registry.yarnpkg.com/@webassemblyjs/utf8/-/utf8-1.11.1.tgz#d1f8b764369e7c6e6bae350e854dec9a59f0a3ff" integrity sha512-9kqcxAEdMhiwQkHpkNiorZzqpGrodQQ2IGrHHxCy+Ozng0ofyMA0lTqiLkVs1uzTRejX+/O0EOT7KxqVPuXosQ== +"@webassemblyjs/utf8@1.11.6": + version "1.11.6" + resolved "https://registry.yarnpkg.com/@webassemblyjs/utf8/-/utf8-1.11.6.tgz#90f8bc34c561595fe156603be7253cdbcd0fab5a" + integrity sha512-vtXf2wTQ3+up9Zsg8sa2yWiQpzSsMyXj0qViVP6xKGCUT8p8YJ6HqI7l5eCnWx1T/FYdsv07HQs2wTFbbof/RA== + "@webassemblyjs/wasm-edit@1.11.1": version "1.11.1" resolved "https://registry.yarnpkg.com/@webassemblyjs/wasm-edit/-/wasm-edit-1.11.1.tgz#ad206ebf4bf95a058ce9880a8c092c5dec8193d6" @@ -4698,6 +4894,20 @@ "@webassemblyjs/wasm-parser" "1.11.1" "@webassemblyjs/wast-printer" "1.11.1" +"@webassemblyjs/wasm-edit@^1.11.5": + version "1.11.6" + resolved "https://registry.yarnpkg.com/@webassemblyjs/wasm-edit/-/wasm-edit-1.11.6.tgz#c72fa8220524c9b416249f3d94c2958dfe70ceab" + integrity sha512-Ybn2I6fnfIGuCR+Faaz7YcvtBKxvoLV3Lebn1tM4o/IAJzmi9AWYIPWpyBfU8cC+JxAO57bk4+zdsTjJR+VTOw== + dependencies: + "@webassemblyjs/ast" "1.11.6" + "@webassemblyjs/helper-buffer" "1.11.6" + "@webassemblyjs/helper-wasm-bytecode" "1.11.6" + "@webassemblyjs/helper-wasm-section" "1.11.6" + "@webassemblyjs/wasm-gen" "1.11.6" + "@webassemblyjs/wasm-opt" "1.11.6" + "@webassemblyjs/wasm-parser" "1.11.6" + "@webassemblyjs/wast-printer" "1.11.6" + "@webassemblyjs/wasm-gen@1.11.1": version "1.11.1" resolved "https://registry.yarnpkg.com/@webassemblyjs/wasm-gen/-/wasm-gen-1.11.1.tgz#86c5ea304849759b7d88c47a32f4f039ae3c8f76" @@ -4709,6 +4919,17 @@ "@webassemblyjs/leb128" "1.11.1" "@webassemblyjs/utf8" "1.11.1" +"@webassemblyjs/wasm-gen@1.11.6": + version "1.11.6" + resolved "https://registry.yarnpkg.com/@webassemblyjs/wasm-gen/-/wasm-gen-1.11.6.tgz#fb5283e0e8b4551cc4e9c3c0d7184a65faf7c268" + integrity sha512-3XOqkZP/y6B4F0PBAXvI1/bky7GryoogUtfwExeP/v7Nzwo1QLcq5oQmpKlftZLbT+ERUOAZVQjuNVak6UXjPA== + dependencies: + "@webassemblyjs/ast" "1.11.6" + "@webassemblyjs/helper-wasm-bytecode" "1.11.6" + "@webassemblyjs/ieee754" "1.11.6" + "@webassemblyjs/leb128" "1.11.6" + "@webassemblyjs/utf8" "1.11.6" + "@webassemblyjs/wasm-opt@1.11.1": version "1.11.1" resolved "https://registry.yarnpkg.com/@webassemblyjs/wasm-opt/-/wasm-opt-1.11.1.tgz#657b4c2202f4cf3b345f8a4c6461c8c2418985f2" @@ -4719,6 +4940,16 @@ "@webassemblyjs/wasm-gen" "1.11.1" "@webassemblyjs/wasm-parser" "1.11.1" +"@webassemblyjs/wasm-opt@1.11.6": + version "1.11.6" + resolved "https://registry.yarnpkg.com/@webassemblyjs/wasm-opt/-/wasm-opt-1.11.6.tgz#d9a22d651248422ca498b09aa3232a81041487c2" + integrity sha512-cOrKuLRE7PCe6AsOVl7WasYf3wbSo4CeOk6PkrjS7g57MFfVUF9u6ysQBBODX0LdgSvQqRiGz3CXvIDKcPNy4g== + dependencies: + "@webassemblyjs/ast" "1.11.6" + "@webassemblyjs/helper-buffer" "1.11.6" + "@webassemblyjs/wasm-gen" "1.11.6" + "@webassemblyjs/wasm-parser" "1.11.6" + "@webassemblyjs/wasm-parser@1.11.1": version "1.11.1" resolved "https://registry.yarnpkg.com/@webassemblyjs/wasm-parser/-/wasm-parser-1.11.1.tgz#86ca734534f417e9bd3c67c7a1c75d8be41fb199" @@ -4731,6 +4962,18 @@ "@webassemblyjs/leb128" "1.11.1" "@webassemblyjs/utf8" "1.11.1" +"@webassemblyjs/wasm-parser@1.11.6", "@webassemblyjs/wasm-parser@^1.11.5": + version "1.11.6" + resolved "https://registry.yarnpkg.com/@webassemblyjs/wasm-parser/-/wasm-parser-1.11.6.tgz#bb85378c527df824004812bbdb784eea539174a1" + integrity sha512-6ZwPeGzMJM3Dqp3hCsLgESxBGtT/OeCvCZ4TA1JUPYgmhAx38tTPR9JaKy0S5H3evQpO/h2uWs2j6Yc/fjkpTQ== + dependencies: + "@webassemblyjs/ast" "1.11.6" + "@webassemblyjs/helper-api-error" "1.11.6" + "@webassemblyjs/helper-wasm-bytecode" "1.11.6" + "@webassemblyjs/ieee754" "1.11.6" + "@webassemblyjs/leb128" "1.11.6" + "@webassemblyjs/utf8" "1.11.6" + "@webassemblyjs/wast-printer@1.11.1": version "1.11.1" resolved "https://registry.yarnpkg.com/@webassemblyjs/wast-printer/-/wast-printer-1.11.1.tgz#d0c73beda8eec5426f10ae8ef55cee5e7084c2f0" @@ -4739,22 +4982,28 @@ "@webassemblyjs/ast" "1.11.1" "@xtuc/long" "4.2.2" -"@webpack-cli/configtest@^1.1.0": - version "1.1.0" - resolved "https://registry.yarnpkg.com/@webpack-cli/configtest/-/configtest-1.1.0.tgz#8342bef0badfb7dfd3b576f2574ab80c725be043" - integrity sha512-ttOkEkoalEHa7RaFYpM0ErK1xc4twg3Am9hfHhL7MVqlHebnkYd2wuI/ZqTDj0cVzZho6PdinY0phFZV3O0Mzg== - -"@webpack-cli/info@^1.4.0": - version "1.4.0" - resolved "https://registry.yarnpkg.com/@webpack-cli/info/-/info-1.4.0.tgz#b9179c3227ab09cbbb149aa733475fcf99430223" - integrity sha512-F6b+Man0rwE4n0409FyAJHStYA5OIZERxmnUfLVwv0mc0V1wLad3V7jqRlMkgKBeAq07jUvglacNaa6g9lOpuw== +"@webassemblyjs/wast-printer@1.11.6": + version "1.11.6" + resolved "https://registry.yarnpkg.com/@webassemblyjs/wast-printer/-/wast-printer-1.11.6.tgz#a7bf8dd7e362aeb1668ff43f35cb849f188eff20" + integrity sha512-JM7AhRcE+yW2GWYaKeHL5vt4xqee5N2WcezptmgyhNS+ScggqcT1OtXykhAb13Sn5Yas0j2uv9tHgrjwvzAP4A== dependencies: - envinfo "^7.7.3" + "@webassemblyjs/ast" "1.11.6" + "@xtuc/long" "4.2.2" -"@webpack-cli/serve@^1.6.0": - version "1.6.0" - resolved "https://registry.yarnpkg.com/@webpack-cli/serve/-/serve-1.6.0.tgz#2c275aa05c895eccebbfc34cfb223c6e8bd591a2" - integrity sha512-ZkVeqEmRpBV2GHvjjUZqEai2PpUbuq8Bqd//vEYsp63J8WyexI8ppCqVS3Zs0QADf6aWuPdU+0XsPI647PVlQA== +"@webpack-cli/configtest@^2.1.0": + version "2.1.0" + resolved "https://registry.yarnpkg.com/@webpack-cli/configtest/-/configtest-2.1.0.tgz#b59b33377b1b896a9a7357cfc643b39c1524b1e6" + integrity sha512-K/vuv72vpfSEZoo5KIU0a2FsEoYdW0DUMtMpB5X3LlUwshetMZRZRxB7sCsVji/lFaSxtQQ3aM9O4eMolXkU9w== + +"@webpack-cli/info@^2.0.1": + version "2.0.1" + resolved "https://registry.yarnpkg.com/@webpack-cli/info/-/info-2.0.1.tgz#eed745799c910d20081e06e5177c2b2569f166c0" + integrity sha512-fE1UEWTwsAxRhrJNikE7v4EotYflkEhBL7EbajfkPlf6E37/2QshOy/D48Mw8G5XMFlQtS6YV42vtbG9zBpIQA== + +"@webpack-cli/serve@^2.0.4": + version "2.0.4" + resolved "https://registry.yarnpkg.com/@webpack-cli/serve/-/serve-2.0.4.tgz#3982ee6f8b42845437fc4d391e93ac5d9da52f0f" + integrity sha512-0xRgjgDLdz6G7+vvDLlaRpFatJaJ69uTalZLRSMX5B3VUrDmXcrVA3+6fXXQgmYz7bY9AAgs348XQdmtLsK41A== "@xtuc/ieee754@^1.2.0": version "1.2.0" @@ -4870,6 +5119,11 @@ acorn@^8.0.4, acorn@^8.2.4, acorn@^8.4.1, acorn@^8.5.0: resolved "https://registry.yarnpkg.com/acorn/-/acorn-8.5.0.tgz#4512ccb99b3698c752591e9bb4472e38ad43cee2" integrity sha512-yXbYeFy+jUuYd3/CDcg2NkIYE991XYX/bje7LmjJigUciaeO1JR4XxXgCIV1/Zc/dRuFEyw1L0pbA+qynJkW5Q== +acorn@^8.7.1: + version "8.8.2" + resolved "https://registry.yarnpkg.com/acorn/-/acorn-8.8.2.tgz#1b2f25db02af965399b9776b0c2c391276d37c4a" + integrity sha512-xjIYgE8HBrkpd/sJqOGNspf8uHG+NOHGOw6a/Urj8taM2EXfdNAH2oFcPeIFfsv3+kz/mJrS5VuMqbNLjCa2vw== + add-stream@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/add-stream/-/add-stream-1.0.0.tgz#6a7990437ca736d5e1288db92bd3266d5f5cb2aa" @@ -4911,6 +5165,13 @@ ajv-keywords@^3.5.2: resolved "https://registry.yarnpkg.com/ajv-keywords/-/ajv-keywords-3.5.2.tgz#31f29da5ab6e00d1c2d329acf7b5929614d5014d" integrity sha512-5p6WTN0DdTGVQk6VjcEju19IgaHudalcfabD7yhDGeA6bcQnmL+CpveLJq/3hvfwd1aof6L386Ougkx6RfyMIQ== +ajv-keywords@^5.1.0: + version "5.1.0" + resolved "https://registry.yarnpkg.com/ajv-keywords/-/ajv-keywords-5.1.0.tgz#69d4d385a4733cdbeab44964a1170a88f87f0e16" + integrity sha512-YCS/JNFAUyr5vAuhk1DWm1CBxRHW9LbJ2ozWeemrIqpbsqKjHVxYPyi5GC0rjZIT5JxJ3virVTS8wk4i/Z+krw== + dependencies: + fast-deep-equal "^3.1.3" + ajv@6.12.6, ajv@^6.10.0, ajv@^6.12.4, ajv@^6.12.5: version "6.12.6" resolved "https://registry.yarnpkg.com/ajv/-/ajv-6.12.6.tgz#baf5a62e802b07d977034586f8c3baf5adf26df4" @@ -4931,6 +5192,16 @@ ajv@^8.0.0, ajv@^8.0.1, ajv@^8.6.3: require-from-string "^2.0.2" uri-js "^4.2.2" +ajv@^8.9.0: + version "8.12.0" + resolved "https://registry.yarnpkg.com/ajv/-/ajv-8.12.0.tgz#d1a0527323e22f53562c567c00991577dfbe19d1" + integrity sha512-sRu1kpcO9yLtYxBKvqfTeh9KzZEwO3STyX1HT+4CaDzC6HpTGYhIhPIzj9XuKU7KYDwnaeh5hcOwjy1QuJzBPA== + dependencies: + fast-deep-equal "^3.1.1" + json-schema-traverse "^1.0.0" + require-from-string "^2.0.2" + uri-js "^4.2.2" + alphanum-sort@^1.0.2: version "1.0.2" resolved "https://registry.yarnpkg.com/alphanum-sort/-/alphanum-sort-1.0.2.tgz#97a1119649b211ad33691d9f9f486a8ec9fbe0a3" @@ -4965,9 +5236,9 @@ ansi-html-community@^0.0.8: resolved "https://registry.yarnpkg.com/ansi-html-community/-/ansi-html-community-0.0.8.tgz#69fbc4d6ccbe383f9736934ae34c3f8290f1bf41" integrity sha512-1APHAyr3+PCamwNw3bXCPp4HFLONZt/yIH0sZp0/469KWNTEy+qN5jQ3GVX6DMZ1UXAi34yVwtTeaG/HpBuuzw== -ansi-regex@5.0.1, ansi-regex@^2.0.0, ansi-regex@^2.1.1, ansi-regex@^3.0.0, ansi-regex@^5.0.0, ansi-regex@^5.0.1, ansi-regex@^6.0.1: +ansi-regex@5.0.1, ansi-regex@^2.0.0, ansi-regex@^2.1.1, ansi-regex@^3.0.0, ansi-regex@^5.0.0, ansi-regex@^5.0.1: version "5.0.1" - resolved "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz#082cb2c89c9fe8659a311a53bd6a4dc5301db304" + resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-5.0.1.tgz#082cb2c89c9fe8659a311a53bd6a4dc5301db304" integrity sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ== ansi-styles@^2.2.1: @@ -5125,7 +5396,7 @@ array-flatten@1.1.1: resolved "https://registry.yarnpkg.com/array-flatten/-/array-flatten-1.1.1.tgz#9a5f699051b1e7073328f2a008968b64ea2955d2" integrity sha1-ml9pkFGx5wczKPKgCJaLZOopVdI= -array-flatten@^2.1.0: +array-flatten@^2.1.2: version "2.1.2" resolved "https://registry.yarnpkg.com/array-flatten/-/array-flatten-2.1.2.tgz#24ef80a28c1a893617e2149b0c6d0d788293b099" integrity sha512-hNfzcOV8W4NdualtqBFPyVO+54DSJuZGY9qT4pRroB6S9e3iiido2ISIC5h9R2sPJ8H3FHCIiEnsv1lPXO3KtQ== @@ -5201,13 +5472,6 @@ async-exit-hook@^2.0.1: resolved "https://registry.yarnpkg.com/async-exit-hook/-/async-exit-hook-2.0.1.tgz#8bd8b024b0ec9b1c01cccb9af9db29bd717dfaf3" integrity sha512-NW2cX8m1Q7KPA7a5M2ULQeZ2wR5qI5PAbw5L0UOMxdioVk9PMZ0h1TmyZEkPYrCvYjDlFICusOu1dlEKAAeXBw== -async@^2.6.2: - version "2.6.4" - resolved "https://registry.yarnpkg.com/async/-/async-2.6.4.tgz#706b7ff6084664cd7eae713f6f965433b5504221" - integrity sha512-mzo5dfJYwAn29PeiJ0zvwTo04zj8HDJj0Mn8TD7sno7q12prdbnasKJHhkm2c1LgrhlJ0teaea8860oxi51mGA== - dependencies: - lodash "^4.17.14" - async@^3.2.3: version "3.2.4" resolved "https://registry.yarnpkg.com/async/-/async-3.2.4.tgz#2d22e00f8cddeb5fde5dd33522b56d1cf569a81c" @@ -5484,17 +5748,15 @@ body-parser@1.20.1, body-parser@^1.19.0: type-is "~1.6.18" unpipe "1.0.0" -bonjour@^3.5.0: - version "3.5.0" - resolved "https://registry.yarnpkg.com/bonjour/-/bonjour-3.5.0.tgz#8e890a183d8ee9a2393b3844c691a42bcf7bc9f5" - integrity sha1-jokKGD2O6aI5OzhExpGkK897yfU= +bonjour-service@^1.0.11: + version "1.1.1" + resolved "https://registry.yarnpkg.com/bonjour-service/-/bonjour-service-1.1.1.tgz#960948fa0e0153f5d26743ab15baf8e33752c135" + integrity sha512-Z/5lQRMOG9k7W+FkeGTNjh7htqn/2LMnfOvBZ8pynNZCM9MwkQkI3zeI4oz09uWdcgmgHugVvBqxGg4VQJ5PCg== dependencies: - array-flatten "^2.1.0" - deep-equal "^1.0.1" + array-flatten "^2.1.2" dns-equal "^1.0.0" - dns-txt "^2.0.2" - multicast-dns "^6.0.1" - multicast-dns-service-types "^1.1.0" + fast-deep-equal "^3.1.3" + multicast-dns "^7.2.5" boolbase@^1.0.0: version "1.0.0" @@ -5620,11 +5882,6 @@ buffer-from@^1.0.0: resolved "https://registry.yarnpkg.com/buffer-from/-/buffer-from-1.1.2.tgz#2b146a6fd72e80b4f55d255f35ed59a3a9a41bd5" integrity sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ== -buffer-indexof@^1.0.0: - version "1.1.1" - resolved "https://registry.yarnpkg.com/buffer-indexof/-/buffer-indexof-1.1.1.tgz#52fabcc6a606d1a00302802648ef68f639da268c" - integrity sha512-4/rOEg86jivtPTeOUUT61jJO1Ya1TrR/OkqCSZDyq84WJh3LuuiphBYJN+fm5xufIk4XAFcEwte/8WzC8If/1g== - buffer@^5.2.1, buffer@^5.5.0: version "5.7.1" resolved "https://registry.yarnpkg.com/buffer/-/buffer-5.7.1.tgz#ba62e7c13133053582197160851a8f648e99eed0" @@ -6003,7 +6260,7 @@ cheerio@^1.0.0-rc.10: parse5-htmlparser2-tree-adapter "^6.0.1" tslib "^2.2.0" -chokidar@3.5.3, chokidar@^3.0.0: +chokidar@3.5.3, chokidar@^3.0.0, chokidar@^3.5.3: version "3.5.3" resolved "https://registry.yarnpkg.com/chokidar/-/chokidar-3.5.3.tgz#1cf37c8707b932bd1af1ae22c0432e2acd1903bd" integrity sha512-Dr3sfKRP6oTcjf2JmUmFJfeVMvXBdegxB0iVQ5eb2V10uFJUCAS8OByZdVAyVb8xXNz3GjjTgj9kLWsZTqE6kw== @@ -6336,6 +6593,11 @@ combined-stream@^1.0.8: dependencies: delayed-stream "~1.0.0" +commander@^10.0.1: + version "10.0.1" + resolved "https://registry.yarnpkg.com/commander/-/commander-10.0.1.tgz#881ee46b4f77d1c1dccc5823433aa39b022cbe06" + integrity sha512-y4Mg2tXshplEbSGzx7amzPwKKOCGuoSRP/CjEdwwk0FOGlUbq6lKuoyDZTNZkmxHdJtp54hdfY/JUrdL7Xfdug== + commander@^2.20.0, commander@^2.8.1: version "2.20.3" resolved "https://registry.yarnpkg.com/commander/-/commander-2.20.3.tgz#fd485e84c03eb4881c20722ba48035e8531aeb33" @@ -6346,7 +6608,7 @@ commander@^6.1.0, commander@^6.2.0: resolved "https://registry.yarnpkg.com/commander/-/commander-6.2.1.tgz#0792eb682dfbc325999bb2b84fddddba110ac73c" integrity sha512-U7VdrJFnJgo4xjrHpTzu0yrHPGImdsmD95ZlgYSEajAn2JKzDhDTPG9kBTefmObL2w/ngeZnilk+OV9CG3d7UA== -commander@^7.0.0, commander@^7.1.0, commander@^7.2.0: +commander@^7.1.0, commander@^7.2.0: version "7.2.0" resolved "https://registry.yarnpkg.com/commander/-/commander-7.2.0.tgz#a36cb57d0b501ce108e4d20559a150a391d97ab7" integrity sha512-QrWXB+ZQSVPmIWIhtEO9H+gwHaMGYiF5ChvoJ+K9ZGHG/sVsa6yiesAD1GC/x46sET00Xlwo1u49RVVVzvcSkw== @@ -6462,10 +6724,10 @@ config-chain@^1.1.12: ini "^1.3.4" proto-list "~1.2.1" -connect-history-api-fallback@^1.6.0: - version "1.6.0" - resolved "https://registry.yarnpkg.com/connect-history-api-fallback/-/connect-history-api-fallback-1.6.0.tgz#8b32089359308d111115d81cad3fceab888f97bc" - integrity sha512-e54B99q/OUoH64zYYRf3HBP5z24G38h5D3qXu23JGRoigpX5Ss4r9ZnDk3g0Z8uQC2x2lPaJ+UlWBc1ZWBWdLg== +connect-history-api-fallback@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/connect-history-api-fallback/-/connect-history-api-fallback-2.0.0.tgz#647264845251a0daf25b97ce87834cace0f5f1c8" + integrity sha512-U73+6lQFmfiNPrYbXqr6kZ1i1wiRqXnp2nhMsINseWXO8lDau0LGEffJ8kQi4EjLZympVgRdvqjAgiZ1tgzDDA== connect@^3.7.0: version "3.7.0" @@ -7006,13 +7268,6 @@ debug@4.3.4, debug@^4.3.3, debug@^4.3.4, debug@~4.3.1, debug@~4.3.2: dependencies: ms "2.1.2" -debug@^3.1.1: - version "3.2.7" - resolved "https://registry.yarnpkg.com/debug/-/debug-3.2.7.tgz#72580b7e9145fb39b6676f9c5e5fb100b934179a" - integrity sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ== - dependencies: - ms "^2.1.1" - debuglog@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/debuglog/-/debuglog-1.0.1.tgz#aa24ffb9ac3df9a2351837cfb2d279360cd78492" @@ -7132,18 +7387,6 @@ deep-eql@^3.0.1: dependencies: type-detect "^4.0.0" -deep-equal@^1.0.1: - version "1.1.1" - resolved "https://registry.yarnpkg.com/deep-equal/-/deep-equal-1.1.1.tgz#b5c98c942ceffaf7cb051e24e1434a25a2e6076a" - integrity sha512-yd9c5AdiqVcR+JjcwUQb9DkhJc8ngNr0MahEBGvDiJw8puWab2yZlh+nkasOnZP+EGTAP6rRp2JzJhJZzvNF8g== - dependencies: - is-arguments "^1.0.4" - is-date-object "^1.0.1" - is-regex "^1.0.4" - object-is "^1.0.1" - object-keys "^1.1.1" - regexp.prototype.flags "^1.2.0" - deep-equal@^2.0.5: version "2.2.0" resolved "https://registry.yarnpkg.com/deep-equal/-/deep-equal-2.2.0.tgz#5caeace9c781028b9ff459f33b779346637c43e6" @@ -7187,7 +7430,7 @@ deepmerge@^4.2.2: resolved "https://registry.yarnpkg.com/deepmerge/-/deepmerge-4.2.2.tgz#44d2ea3679b8f4d4ffba33f03d865fc1e7bf4955" integrity sha512-FJ3UgI4gIl+PHZm53knsuSFpE+nESMr7M4v9QcgB7S63Kj/6WqMiFQJpBBYz1Pt+66bZpP3Q7Lye0Oo9MPKEdg== -default-gateway@^6.0.0: +default-gateway@^6.0.3: version "6.0.3" resolved "https://registry.yarnpkg.com/default-gateway/-/default-gateway-6.0.3.tgz#819494c888053bdb743edbf343d6cdf7f2943a71" integrity sha512-fwSOJsbbNzZ/CUFpqFBqYfYNLj1NbMPm8MMCIzHjC83iSJRBEGmDUxU+WP661BaBQImeC2yHwXtz+P/O9o+XEg== @@ -7253,20 +7496,6 @@ define-property@^2.0.2: is-descriptor "^1.0.2" isobject "^3.0.1" -del@^6.0.0: - version "6.0.0" - resolved "https://registry.yarnpkg.com/del/-/del-6.0.0.tgz#0b40d0332cea743f1614f818be4feb717714c952" - integrity sha512-1shh9DQ23L16oXSZKB2JxpL7iMy2E0S9d517ptA1P8iw0alkPtQcrKH7ru31rYtKwF499HkTu+DRzq3TCKDFRQ== - dependencies: - globby "^11.0.1" - graceful-fs "^4.2.4" - is-glob "^4.0.1" - is-path-cwd "^2.2.0" - is-path-inside "^3.0.2" - p-map "^4.0.0" - rimraf "^3.0.2" - slash "^3.0.0" - delayed-stream@~1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/delayed-stream/-/delayed-stream-1.0.0.tgz#df3ae199acadfb7d440aaae0b29e2272b24ec619" @@ -7418,20 +7647,12 @@ dns-equal@^1.0.0: resolved "https://registry.yarnpkg.com/dns-equal/-/dns-equal-1.0.0.tgz#b39e7f1da6eb0a75ba9c17324b34753c47e0654d" integrity sha1-s55/HabrCnW6nBcySzR1PEfgZU0= -dns-packet@^1.3.1: - version "1.3.4" - resolved "https://registry.yarnpkg.com/dns-packet/-/dns-packet-1.3.4.tgz#e3455065824a2507ba886c55a89963bb107dec6f" - integrity sha512-BQ6F4vycLXBvdrJZ6S3gZewt6rcrks9KBgM9vrhW+knGRqc8uEdT7fuCwloc7nny5xNoMJ17HGH0R/6fpo8ECA== - dependencies: - ip "^1.1.0" - safe-buffer "^5.0.1" - -dns-txt@^2.0.2: - version "2.0.2" - resolved "https://registry.yarnpkg.com/dns-txt/-/dns-txt-2.0.2.tgz#b91d806f5d27188e4ab3e7d107d881a1cc4642b6" - integrity sha1-uR2Ab10nGI5Ks+fRB9iBocxGQrY= +dns-packet@^5.2.2: + version "5.6.0" + resolved "https://registry.yarnpkg.com/dns-packet/-/dns-packet-5.6.0.tgz#2202c947845c7a63c23ece58f2f70ff6ab4c2f7d" + integrity sha512-rza3UH1LwdHh9qyPXp8lkwpjSNk/AMD3dPytUoRoqnypDUhY0xvbdmVhWOfxO68frEfV9BU8V12Ez7ZsHGZpCQ== dependencies: - buffer-indexof "^1.0.0" + "@leichtgewicht/ip-codec" "^2.0.1" doctrine@^3.0.0: version "3.0.0" @@ -7520,7 +7741,7 @@ dot-case@^3.0.4: dot-prop@^4.2.1: version "4.2.1" - resolved "https://registry.npmjs.org/dot-prop/-/dot-prop-4.2.1.tgz#45884194a71fc2cda71cbb4bceb3a4dd2f433ba4" + resolved "https://registry.yarnpkg.com/dot-prop/-/dot-prop-4.2.1.tgz#45884194a71fc2cda71cbb4bceb3a4dd2f433ba4" integrity sha512-l0p4+mIuJIua0mhxGoh4a+iNL9bmeK5DvnSVQa6T0OhrVmaEa1XScX5Etc673FePCJOArq/4Pa2cLGODUWTPOQ== dependencies: is-obj "^1.0.0" @@ -7692,6 +7913,14 @@ enhanced-resolve@^5.0.0, enhanced-resolve@^5.8.3: graceful-fs "^4.2.4" tapable "^2.2.0" +enhanced-resolve@^5.13.0: + version "5.14.0" + resolved "https://registry.yarnpkg.com/enhanced-resolve/-/enhanced-resolve-5.14.0.tgz#0b6c676c8a3266c99fa281e4433a706f5c0c61c4" + integrity sha512-+DCows0XNwLDcUhbFJPdlQEVnT2zXlCv7hPxemTz86/O+B/hCQ+mb7ydkPKiflpVraqLPCAfu7lDy+hBXueojw== + dependencies: + graceful-fs "^4.2.4" + tapable "^2.2.0" + enquirer@^2.3.5, enquirer@^2.3.6, enquirer@~2.3.6: version "2.3.6" resolved "https://registry.yarnpkg.com/enquirer/-/enquirer-2.3.6.tgz#2a7fe5dd634a1e4125a975ec994ff5456dc3734d" @@ -7751,6 +7980,11 @@ es-module-lexer@^0.9.0: resolved "https://registry.yarnpkg.com/es-module-lexer/-/es-module-lexer-0.9.3.tgz#6f13db00cc38417137daf74366f535c8eb438f19" integrity sha512-1HQ2M2sPtxwnvOvT1ZClHyQDiggdNjURWpY2we6aMKCQiUVxTmVs2UYPLIrD84sS+kMdUwfBSylbJPwNnBrnHQ== +es-module-lexer@^1.2.1: + version "1.2.1" + resolved "https://registry.yarnpkg.com/es-module-lexer/-/es-module-lexer-1.2.1.tgz#ba303831f63e6a394983fde2f97ad77b22324527" + integrity sha512-9978wrXM50Y4rTMmW5kXIC09ZdXQZqkE4mxhwkd8VbzsGkXGPgV4zWuqQJgCEzYngdo2dYDa0l8xhX4fkSwJSg== + es5-ext@0.8.x: version "0.8.2" resolved "https://registry.yarnpkg.com/es5-ext/-/es5-ext-0.8.2.tgz#aba8d9e1943a895ac96837a62a39b3f55ecd94ab" @@ -8148,7 +8382,7 @@ expect@^29.4.1: jest-message-util "^29.4.1" jest-util "^29.4.1" -express@^4.15.3, express@^4.17.1: +express@^4.15.3: version "4.17.1" resolved "https://registry.yarnpkg.com/express/-/express-4.17.1.tgz#4491fc38605cf51f8629d39c2b5d026f98a4c134" integrity sha512-mHJ9O79RqluphRrcw2X/GTh3k9tVv8YcoyY4Kkh4WDMUYKRZUq0h1o0w2rrrxBqM7VoeUVqgb27xlEMXTnYt4g== @@ -8184,7 +8418,7 @@ express@^4.15.3, express@^4.17.1: utils-merge "1.0.1" vary "~1.1.2" -express@^4.18.2: +express@^4.17.3, express@^4.18.2: version "4.18.2" resolved "https://registry.yarnpkg.com/express/-/express-4.18.2.tgz#3fabe08296e930c796c19e3c516979386ba9fd59" integrity sha512-5/PsL6iGPdfQ/lKM1UuielYgv3BUoJfz1aUwU9vHZ+J7gyvwdQXFEBIEIaxeGf0GIcreATNyBExtalisDbuMqQ== @@ -8716,7 +8950,7 @@ fs-minipass@^2.0.0, fs-minipass@^2.1.0: dependencies: minipass "^3.0.0" -fs-monkey@1.0.3: +fs-monkey@^1.0.3: version "1.0.3" resolved "https://registry.yarnpkg.com/fs-monkey/-/fs-monkey-1.0.3.tgz#ae3ac92d53bb328efe0e9a1d9541f6ad8d48e2d3" integrity sha512-cybjIfiiE+pTWicSCLFHSrXZ6EilF30oh91FDP9S2B051prEa7QWfrVTQm10/dDpswBDXZugPa1Ogu8Yh+HV0Q== @@ -8937,7 +9171,7 @@ glob-parent@^5.1.1, glob-parent@^5.1.2, glob-parent@~5.1.2: glob-parent@^6.0.1: version "6.0.2" - resolved "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz#6d237d99083950c79290f24c7642a3de9a28f9e3" + resolved "https://registry.yarnpkg.com/glob-parent/-/glob-parent-6.0.2.tgz#6d237d99083950c79290f24c7642a3de9a28f9e3" integrity sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A== dependencies: is-glob "^4.0.3" @@ -9491,12 +9725,12 @@ http-proxy-agent@^5.0.0: agent-base "6" debug "4" -http-proxy-middleware@^2.0.0: - version "2.0.1" - resolved "https://registry.yarnpkg.com/http-proxy-middleware/-/http-proxy-middleware-2.0.1.tgz#7ef3417a479fb7666a571e09966c66a39bd2c15f" - integrity sha512-cfaXRVoZxSed/BmkA7SwBVNI9Kj7HFltaE5rqYOub5kWzWZ+gofV2koVN1j2rMW7pEfSSlCHGJ31xmuyFyfLOg== +http-proxy-middleware@^2.0.3: + version "2.0.6" + resolved "https://registry.yarnpkg.com/http-proxy-middleware/-/http-proxy-middleware-2.0.6.tgz#e1a4dd6979572c7ab5a4e4b55095d1f32a74963f" + integrity sha512-ya/UeJ6HVBYxrgYotAZo1KvPWlgB48kUJLDePFeneHsVujFaW5WNj2NgWCAE//B1Dl02BIfYlpNgBy8Kf8Rjmw== dependencies: - "@types/http-proxy" "^1.17.5" + "@types/http-proxy" "^1.17.8" http-proxy "^1.18.1" is-glob "^4.0.1" is-plain-obj "^3.0.0" @@ -9727,16 +9961,6 @@ inquirer@^8.2.4: through "^2.3.6" wrap-ansi "^7.0.0" -internal-ip@^6.2.0: - version "6.2.0" - resolved "https://registry.yarnpkg.com/internal-ip/-/internal-ip-6.2.0.tgz#d5541e79716e406b74ac6b07b856ef18dc1621c1" - integrity sha512-D8WGsR6yDt8uq7vDMu7mjcR+yRMm3dW8yufyChmszWRjcSHuxLBkR3GdS2HZAjodsaGuCvXeEJpueisXJULghg== - dependencies: - default-gateway "^6.0.0" - ipaddr.js "^1.9.1" - is-ip "^3.1.0" - p-event "^4.2.0" - internal-slot@^1.0.4: version "1.0.4" resolved "https://registry.yarnpkg.com/internal-slot/-/internal-slot-1.0.4.tgz#8551e7baf74a7a6ba5f749cfb16aa60722f0d6f3" @@ -9746,10 +9970,10 @@ internal-slot@^1.0.4: has "^1.0.3" side-channel "^1.0.4" -interpret@^2.2.0: - version "2.2.0" - resolved "https://registry.yarnpkg.com/interpret/-/interpret-2.2.0.tgz#1a78a0b5965c40a5416d007ad6f50ad27c417df9" - integrity sha512-Ju0Bz/cEia55xDwUWEa8+olFpCiQoypjnQySseKtmjNrnps3P+xfpUmGr90T7yjlVJmOtybRvPXhKMbHr+fWnw== +interpret@^3.1.1: + version "3.1.1" + resolved "https://registry.yarnpkg.com/interpret/-/interpret-3.1.1.tgz#5be0ceed67ca79c6c4bc5cf0d7ee843dcea110c4" + integrity sha512-6xwYfHbajpoF0xLW+iwLkhwgvLoZDfjYfoFNu8ftMoXINzwuymNLd9u/KmwtdT2GbR+/Cz66otEGEVVUHX9QLQ== into-stream@^3.1.0: version "3.1.0" @@ -9759,22 +9983,12 @@ into-stream@^3.1.0: from2 "^2.1.1" p-is-promise "^1.1.0" -ip-regex@^4.0.0: - version "4.3.0" - resolved "https://registry.yarnpkg.com/ip-regex/-/ip-regex-4.3.0.tgz#687275ab0f57fa76978ff8f4dddc8a23d5990db5" - integrity sha512-B9ZWJxHHOHUhUjCPrMpLD4xEq35bUTClHM1S6CBU5ixQnkZmwipwgc96vAd7AAGM9TGHvJR+Uss+/Ak6UphK+Q== - -ip@^1.1.0: - version "1.1.5" - resolved "https://registry.yarnpkg.com/ip/-/ip-1.1.5.tgz#bdded70114290828c0a039e72ef25f5aaec4354a" - integrity sha1-vd7XARQpCCjAoDnnLvJfWq7ENUo= - ip@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/ip/-/ip-2.0.0.tgz#4cf4ab182fee2314c75ede1276f8c80b479936da" integrity sha512-WKa+XuLG1A1R0UWhl2+1XQSi+fZWMsYKffMZTTYsiZaUD8k2yDAj5atimTUD2TZkyCkNEeYE5NhFZmupOGtjYQ== -ipaddr.js@1.9.1, ipaddr.js@^1.9.1: +ipaddr.js@1.9.1: version "1.9.1" resolved "https://registry.yarnpkg.com/ipaddr.js/-/ipaddr.js-1.9.1.tgz#bff38543eeb8984825079ff3a2a8e6cbd46781b3" integrity sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g== @@ -9803,7 +10017,7 @@ is-accessor-descriptor@^1.0.0: dependencies: kind-of "^6.0.0" -is-arguments@^1.0.4, is-arguments@^1.1.1: +is-arguments@^1.1.1: version "1.1.1" resolved "https://registry.yarnpkg.com/is-arguments/-/is-arguments-1.1.1.tgz#15b3f88fda01f2a97fec84ca761a560f123efa9b" integrity sha512-8Q7EARjzEnKpt/PCD7e1cgUS0a6X8u5tdSiMqXhojOdoV9TsMsiO+9VLC5vAmO8N7/GmXn7yjR8qnA6bVAEzfA== @@ -9871,6 +10085,13 @@ is-ci@^3.0.1: dependencies: ci-info "^3.2.0" +is-core-module@^2.11.0: + version "2.12.1" + resolved "https://registry.yarnpkg.com/is-core-module/-/is-core-module-2.12.1.tgz#0c0b6885b6f80011c71541ce15c8d66cf5a4f9fd" + integrity sha512-Q4ZuBAe2FUsKtyQJoQHlvP8OvBERxO3jEmy1I7hcRXcJBGGHFh/aJBswbXuS9sgrDH2QUO8ilkwNPHvHMd8clg== + dependencies: + has "^1.0.3" + is-core-module@^2.2.0: version "2.8.0" resolved "https://registry.yarnpkg.com/is-core-module/-/is-core-module-2.8.0.tgz#0321336c3d0925e497fd97f5d95cb114a5ccd548" @@ -9878,7 +10099,7 @@ is-core-module@^2.2.0: dependencies: has "^1.0.3" -is-core-module@^2.8.1, is-core-module@^2.9.0: +is-core-module@^2.8.1: version "2.11.0" resolved "https://registry.yarnpkg.com/is-core-module/-/is-core-module-2.11.0.tgz#ad4cb3e3863e814523c96f3f58d26cc570ff0144" integrity sha512-RRjxlvLDkD1YJwDbroBHMb+cukurkDWNyHx7D3oNB5x9rb5ogcksMC5wHCadcXoo67gVr/+3GFySh3134zi6rw== @@ -9899,7 +10120,7 @@ is-data-descriptor@^1.0.0: dependencies: kind-of "^6.0.0" -is-date-object@^1.0.1, is-date-object@^1.0.5: +is-date-object@^1.0.5: version "1.0.5" resolved "https://registry.yarnpkg.com/is-date-object/-/is-date-object-1.0.5.tgz#0841d5536e724c25597bf6ea62e1bd38298df31f" integrity sha512-9YQaSxsAiSwcvS33MBk3wTCVnWK+HhF8VZR2jRxehM16QcVOdHqPn4VPHmRK4lSr38n9JriurInLcP90xsYNfQ== @@ -9973,13 +10194,6 @@ is-interactive@^1.0.0: resolved "https://registry.yarnpkg.com/is-interactive/-/is-interactive-1.0.0.tgz#cea6e6ae5c870a7b0a0004070b7b587e0252912e" integrity sha512-2HvIEKRoqS62guEC+qBjpvRubdX910WCMuJTZ+I9yvqKU2/12eSL549HMwtabb4oupdj2sMP50k+XJfB/8JE6w== -is-ip@^3.1.0: - version "3.1.0" - resolved "https://registry.yarnpkg.com/is-ip/-/is-ip-3.1.0.tgz#2ae5ddfafaf05cb8008a62093cf29734f657c5d8" - integrity sha512-35vd5necO7IitFPjd/YBeqwWnyDWbuLH9ZXQdMfDA8TEo7pv5X8yfrvVO3xbJbLUlERCMvf6X0hTUamQxCYJ9Q== - dependencies: - ip-regex "^4.0.0" - is-lambda@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/is-lambda/-/is-lambda-1.0.1.tgz#3d9877899e6a53efc0160504cde15f82e6f061d5" @@ -10017,7 +10231,7 @@ is-number@^7.0.0: is-obj@^1.0.0, is-obj@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/is-obj/-/is-obj-1.0.1.tgz#3e4729ac1f5fde025cd7d83a896dab9f4f67db0f" - integrity sha1-PkcprB9f3gJc19g6iW2rn09n2w8= + integrity sha512-l4RyHgRqGN4Y3+9JHVrNqO+tN0rV5My76uW5/nuO4K1b6vw5G8d/cmFjP9tRfEsdhZNt0IFdZuK/c2Vr4Nb+Qg== is-obj@^2.0.0: version "2.0.0" @@ -10029,16 +10243,6 @@ is-object@^1.0.1: resolved "https://registry.yarnpkg.com/is-object/-/is-object-1.0.2.tgz#a56552e1c665c9e950b4a025461da87e72f86fcf" integrity sha512-2rRIahhZr2UWb45fIOuvZGpFtz0TyOZLf32KxBbSoUCeZR495zCKlWUKKUByk3geS2eAs7ZAABt0Y/Rx0GiQGA== -is-path-cwd@^2.2.0: - version "2.2.0" - resolved "https://registry.yarnpkg.com/is-path-cwd/-/is-path-cwd-2.2.0.tgz#67d43b82664a7b5191fd9119127eb300048a9fdb" - integrity sha512-w942bTcih8fdJPJmQHFzkS76NEP8Kzzvmw92cXsazb8intwLqPibPPdXf4ANdKV3rYMuuQYGIWtvz9JilB3NFQ== - -is-path-inside@^3.0.2: - version "3.0.3" - resolved "https://registry.yarnpkg.com/is-path-inside/-/is-path-inside-3.0.3.tgz#d231362e53a07ff2b0e0ea7fed049161ffd16283" - integrity sha512-Fd4gABb+ycGAmKou8eMftCupSir5lRxqf4aD/vd0cD2qc4HL07OjCeuHMr8Ro4CoMaeCKDB0/ECBOVWjTwUvPQ== - is-plain-obj@^1.0.0, is-plain-obj@^1.1.0: version "1.1.0" resolved "https://registry.yarnpkg.com/is-plain-obj/-/is-plain-obj-1.1.0.tgz#71a50c8429dfca773c92a390a4a03b39fcd51d3e" @@ -10076,7 +10280,7 @@ is-promise@^2.2.2: resolved "https://registry.yarnpkg.com/is-promise/-/is-promise-2.2.2.tgz#39ab959ccbf9a774cf079f7b40c7a26f763135f1" integrity sha512-+lP4/6lKUBfQjZ2pdxThZvLUAafmZb8OAxFb8XXtiQmS35INgr85hdOGoEs124ez1FCnZJt6jau/T+alh58QFQ== -is-regex@^1.0.4, is-regex@^1.1.4: +is-regex@^1.1.4: version "1.1.4" resolved "https://registry.yarnpkg.com/is-regex/-/is-regex-1.1.4.tgz#eef5663cd59fa4c0ae339505323df6854bb15958" integrity sha512-kvRdxDsxZjhzUX07ZnLydzS1TU/TJlTUHHY4YLL87e37oUA49DfkLqgy+VjFocowy29cKvcSiu+kIv728jTTVg== @@ -10827,6 +11031,15 @@ jest-worker@^27.0.2, jest-worker@^27.0.6, jest-worker@^27.3.1: merge-stream "^2.0.0" supports-color "^8.0.0" +jest-worker@^27.4.5: + version "27.5.1" + resolved "https://registry.yarnpkg.com/jest-worker/-/jest-worker-27.5.1.tgz#8d146f0900e8973b106b6f73cc1e9a8cb86f8db0" + integrity sha512-7vuh85V5cdDofPyxn58nrPjBktZo0u9x1g8WtjQol+jZDaE+fhN+cIvTj11GndBnMnyfrUOG1sZQxCdjKh+DKg== + dependencies: + "@types/node" "*" + merge-stream "^2.0.0" + supports-color "^8.0.0" + jest@^27.3.1: version "27.3.1" resolved "https://registry.yarnpkg.com/jest/-/jest-27.3.1.tgz#b5bab64e8f56b6f7e275ba1836898b0d9f1e5c8a" @@ -10852,7 +11065,7 @@ jora@^1.0.0-beta.5: resolved "https://registry.yarnpkg.com/jora/-/jora-1.0.0-beta.5.tgz#55b2c4d86078af1bc74da401e88b67be42b0bddd" integrity sha512-hPJKQyF0eiCqQOwfgIuQa+8wIn+WcEcjjyeOchuiXEUnt6zbV0tHKsUqRRwJY47ZtBiGcJQNr/BGuYW1Sfwbvg== -js-cookie@3.0.1, js-cookie@^3.0.1: +js-cookie@3.0.1: version "3.0.1" resolved "https://registry.yarnpkg.com/js-cookie/-/js-cookie-3.0.1.tgz#9e39b4c6c2f56563708d7d31f6f5f21873a92414" integrity sha512-+0rgsUXZu4ncpPxRL+lNEptWMOWl9etvPHc/koSRp6MPwpRYAhmk0dUG00J4bxVV3r9uUzfo24wW0knS07SKSw== @@ -11253,6 +11466,14 @@ ky@0.30.0: resolved "https://registry.yarnpkg.com/ky/-/ky-0.30.0.tgz#a3d293e4f6c4604a9a4694eceb6ce30e73d27d64" integrity sha512-X/u76z4JtDVq10u1JA5UQfatPxgPaVDMYTrgHyiTpGN2z4TMEJkIHsoSBBSg9SWZEIXTKsi9kHgiQ9o3Y/4yog== +launch-editor@^2.6.0: + version "2.6.0" + resolved "https://registry.yarnpkg.com/launch-editor/-/launch-editor-2.6.0.tgz#4c0c1a6ac126c572bd9ff9a30da1d2cae66defd7" + integrity sha512-JpDCcQnyAAzZZaZ7vEiSqL690w7dAEyLao+KC96zBplnYbJS7TYNjvM3M7y3dGz+v7aIsJk3hllWuc0kWAjyRQ== + dependencies: + picocolors "^1.0.0" + shell-quote "^1.7.3" + lazystream@^1.0.0: version "1.0.1" resolved "https://registry.yarnpkg.com/lazystream/-/lazystream-1.0.1.tgz#494c831062f1f9408251ec44db1cba29242a2638" @@ -11564,7 +11785,7 @@ lodash.zip@^4.2.0: resolved "https://registry.yarnpkg.com/lodash.zip/-/lodash.zip-4.2.0.tgz#ec6662e4896408ed4ab6c542a3990b72cc080020" integrity sha512-C7IOaBBK/0gMORRBd8OETNx3kmOkgIWIPvyDpZSCTwUrpYmgZwJkjZeOD8ww4xbOUOs4/attY+pciKvadNfFbg== -lodash@^4.17.11, lodash@^4.17.13, lodash@^4.17.14, lodash@^4.17.15, lodash@^4.17.20, lodash@^4.17.21, lodash@^4.17.4, lodash@^4.7.0: +lodash@^4.17.11, lodash@^4.17.13, lodash@^4.17.15, lodash@^4.17.20, lodash@^4.17.21, lodash@^4.17.4, lodash@^4.7.0: version "4.17.21" resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.21.tgz#679591c564c3bffaae8454cf0b3df370c3d6911c" integrity sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg== @@ -11764,12 +11985,12 @@ media-typer@0.3.0: resolved "https://registry.yarnpkg.com/media-typer/-/media-typer-0.3.0.tgz#8710d7af0aa626f8fffa1ce00168545263255748" integrity sha1-hxDXrwqmJvj/+hzgAWhUUmMlV0g= -memfs@^3.2.2: - version "3.3.0" - resolved "https://registry.yarnpkg.com/memfs/-/memfs-3.3.0.tgz#4da2d1fc40a04b170a56622c7164c6be2c4cbef2" - integrity sha512-BEE62uMfKOavX3iG7GYX43QJ+hAeeWnwIAuJ/R6q96jaMtiLzhsxHJC8B1L7fK7Pt/vXDRwb3SG/yBpNGDPqzg== +memfs@^3.4.3: + version "3.5.1" + resolved "https://registry.yarnpkg.com/memfs/-/memfs-3.5.1.tgz#f0cd1e2bfaef58f6fe09bfb9c2288f07fea099ec" + integrity sha512-UWbFJKvj5k+nETdteFndTpYxdeTMox/ULeqX5k/dpaQJCCFmj5EeKv3dBcyO2xmkRAx2vppRu5dVG7SOtsGOzA== dependencies: - fs-monkey "1.0.3" + fs-monkey "^1.0.3" memoizee@^0.4.14: version "0.4.15" @@ -12167,22 +12388,17 @@ ms@2.1.2: resolved "https://registry.yarnpkg.com/ms/-/ms-2.1.2.tgz#d09d1f357b443f493382a8eb3ccd183872ae6009" integrity sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w== -ms@2.1.3, ms@^2.0.0, ms@^2.1.1: +ms@2.1.3, ms@^2.0.0: version "2.1.3" resolved "https://registry.yarnpkg.com/ms/-/ms-2.1.3.tgz#574c8138ce1d2b5861f0b44579dbadd60c6615b2" integrity sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA== -multicast-dns-service-types@^1.1.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/multicast-dns-service-types/-/multicast-dns-service-types-1.1.0.tgz#899f11d9686e5e05cb91b35d5f0e63b773cfc901" - integrity sha1-iZ8R2WhuXgXLkbNdXw5jt3PPyQE= - -multicast-dns@^6.0.1: - version "6.2.3" - resolved "https://registry.yarnpkg.com/multicast-dns/-/multicast-dns-6.2.3.tgz#a0ec7bd9055c4282f790c3c82f4e28db3b31b229" - integrity sha512-ji6J5enbMyGRHIAkAOu3WdV8nggqviKCEKtXcOqfphZZtQrmHKycfynJ2V7eVPUA4NhJ6V7Wf4TmGbTwKE9B6g== +multicast-dns@^7.2.5: + version "7.2.5" + resolved "https://registry.yarnpkg.com/multicast-dns/-/multicast-dns-7.2.5.tgz#77eb46057f4d7adbd16d9290fa7299f6fa64cced" + integrity sha512-2eznPJP8z2BFLX50tf0LuODrpINqP1RVIm/CObbTcBRITQgmC/TjcREF1NeTBzIcR5XO/ukWo+YHOjBbFwIupg== dependencies: - dns-packet "^1.3.1" + dns-packet "^5.2.2" thunky "^1.0.2" multimatch@^5.0.0: @@ -12348,10 +12564,10 @@ node-fetch@2.6.7, node-fetch@^2.6.7: dependencies: whatwg-url "^5.0.0" -node-forge@^0.10.0: - version "0.10.0" - resolved "https://registry.yarnpkg.com/node-forge/-/node-forge-0.10.0.tgz#32dea2afb3e9926f02ee5ce8794902691a676bf3" - integrity sha512-PPmu8eEeG9saEUvI97fm4OYxXVB6bFvyNTyiUOBichBpFG8A1Ljw3bY62+5oOjDEMHRnd0Y7HQ+x7uzxOzC6JA== +node-forge@^1: + version "1.3.1" + resolved "https://registry.yarnpkg.com/node-forge/-/node-forge-1.3.1.tgz#be8da2af243b2417d5f646a770663a92b7e9ded3" + integrity sha512-dPEtOeMvF9VMcYV/1Wb8CPoVAXtp6MKMlcbAt4ddqmGqUJ6fQZFXkNZNkNlfevtNkGtaSoXf/vNNNSvgrdXwtA== node-gyp-build@^4.3.0: version "4.5.0" @@ -12641,7 +12857,7 @@ object-inspect@^1.10.3, object-inspect@^1.9.0: resolved "https://registry.yarnpkg.com/object-inspect/-/object-inspect-1.12.3.tgz#ba62dffd67ee256c8c086dfae69e016cd1f198b9" integrity sha512-geUvdk7c+eizMNUDkRpW1wJwgfOiOeHbxBR/hLXK1aT6zmVSO0jsQcs7fj6MGw89jC/cjGfLcNOrtMYtGqm81g== -object-is@^1.0.1, object-is@^1.1.5: +object-is@^1.1.5: version "1.1.5" resolved "https://registry.yarnpkg.com/object-is/-/object-is-1.1.5.tgz#b9deeaa5fc7f1846a0faecdceec138e5778f53ac" integrity sha512-3cyDsyHgtmi7I7DfSSI2LDp6SK2lwvtbg0p0R1e0RvTqF5ceGx+K2dfSjm1bKDMVCFEDAQvy+o8c6a7VujOddw== @@ -12825,13 +13041,6 @@ p-event@^2.1.0: dependencies: p-timeout "^2.0.1" -p-event@^4.2.0: - version "4.2.0" - resolved "https://registry.yarnpkg.com/p-event/-/p-event-4.2.0.tgz#af4b049c8acd91ae81083ebd1e6f5cae2044c1b5" - integrity sha512-KXatOjCRXXkSePPb1Nbi0p0m+gQAwdlbhi4wQKJPI1HsMQS9g+Sqp2o+QHziPr7eYJyOZet836KoHEVM1mwOrQ== - dependencies: - p-timeout "^3.1.0" - p-finally@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/p-finally/-/p-finally-1.0.0.tgz#3fbcfb15b899a44123b34b6dcc18b724336a2cae" @@ -12941,7 +13150,7 @@ p-timeout@^2.0.1: dependencies: p-finally "^1.0.0" -p-timeout@^3.1.0, p-timeout@^3.2.0: +p-timeout@^3.2.0: version "3.2.0" resolved "https://registry.yarnpkg.com/p-timeout/-/p-timeout-3.2.0.tgz#c7e17abc971d2a7962ef83626b35d635acf23dfe" integrity sha512-rhIwUycgwwKcP9yTOOFK/AKsAopjjCakVqLHePO3CC6Mir1Z99xT+R63jZxAT5lFZLa2inS5h+ZS2GvR99/FBg== @@ -13308,15 +13517,6 @@ please-upgrade-node@^3.2.0: dependencies: semver-compare "^1.0.0" -portfinder@^1.0.28: - version "1.0.28" - resolved "https://registry.yarnpkg.com/portfinder/-/portfinder-1.0.28.tgz#67c4622852bd5374dd1dd900f779f53462fac778" - integrity sha512-Se+2isanIcEqf2XMHjyUKskczxbPH7dQnlMjXX6+dybayyHvAf/TCgyMRlzf/B6QDhAEFOGes0pzRo3by4AbMA== - dependencies: - async "^2.6.2" - debug "^3.1.1" - mkdirp "^0.5.5" - posix-character-classes@^0.1.0: version "0.1.1" resolved "https://registry.yarnpkg.com/posix-character-classes/-/posix-character-classes-0.1.1.tgz#01eac0fe3b5af71a2a6c02feabb8c1fef7e00eab" @@ -13740,11 +13940,6 @@ pump@^3.0.0: end-of-stream "^1.1.0" once "^1.3.1" -punycode@1.3.2: - version "1.3.2" - resolved "https://registry.yarnpkg.com/punycode/-/punycode-1.3.2.tgz#9653a036fb7c1ee42342f2325cceefea3926c48d" - integrity sha1-llOgNvt8HuQjQvIyXM7v6jkmxI0= - punycode@^1.3.2: version "1.4.1" resolved "https://registry.yarnpkg.com/punycode/-/punycode-1.4.1.tgz#c0d5a63b2718800ad8e1eb0fa5269c84dd41845e" @@ -13850,11 +14045,6 @@ query-string@^6.10.1: split-on-first "^1.0.0" strict-uri-encode "^2.0.0" -querystring@0.2.0: - version "0.2.0" - resolved "https://registry.yarnpkg.com/querystring/-/querystring-0.2.0.tgz#b209849203bb25df820da756e747005878521620" - integrity sha1-sgmEkgO7Jd+CDadW50cAWHhSFiA= - querystring@^0.2.0: version "0.2.1" resolved "https://registry.yarnpkg.com/querystring/-/querystring-0.2.1.tgz#40d77615bb09d16902a85c3e38aa8b5ed761c2dd" @@ -14071,12 +14261,12 @@ recast@^0.20.3, recast@^0.20.4: source-map "~0.6.1" tslib "^2.0.1" -rechoir@^0.7.0: - version "0.7.1" - resolved "https://registry.yarnpkg.com/rechoir/-/rechoir-0.7.1.tgz#9478a96a1ca135b5e88fc027f03ee92d6c645686" - integrity sha512-/njmZ8s1wVeR6pjTZ+0nCnv8SpZNRMT2D1RLOJQESlYFDBvwpTA4KWJpZ+sBJ4+vhjILRcK7JIFdGCdxEAAitg== +rechoir@^0.8.0: + version "0.8.0" + resolved "https://registry.yarnpkg.com/rechoir/-/rechoir-0.8.0.tgz#49f866e0d32146142da3ad8f0eff352b3215ff22" + integrity sha512-/vxpCXddiX8NGfGO/mTafwjq4aFa/71pvamip0++IQk3zG8cbCj0fifNPrjjF1XMXUne91jL9OoxmdykoEtifQ== dependencies: - resolve "^1.9.0" + resolve "^1.20.0" recursive-readdir@^2.2.2: version "2.2.3" @@ -14132,14 +14322,6 @@ regex-not@^1.0.0, regex-not@^1.0.2: extend-shallow "^3.0.2" safe-regex "^1.1.0" -regexp.prototype.flags@^1.2.0: - version "1.3.1" - resolved "https://registry.yarnpkg.com/regexp.prototype.flags/-/regexp.prototype.flags-1.3.1.tgz#7ef352ae8d159e758c0eadca6f8fcb4eef07be26" - integrity sha512-JiBdRBq91WlY7uRJ0ds7R+dU02i6LKi8r3BuQhNXn+kmeLN+EfHhfjqMRis1zJxnlu88hq/4dx0P2OP3APRTOA== - dependencies: - call-bind "^1.0.2" - define-properties "^1.1.3" - regexp.prototype.flags@^1.4.3: version "1.4.3" resolved "https://registry.yarnpkg.com/regexp.prototype.flags/-/regexp.prototype.flags-1.4.3.tgz#87cab30f80f66660181a3bb7bf5981a872b367ac" @@ -14256,15 +14438,15 @@ resolve.exports@^1.1.0: integrity sha512-J1l+Zxxp4XK3LUDZ9m60LRJF/mAe4z6a4xyabPHk7pvK5t35dACV32iIjJDFeWZFfZlO29w6SZ67knR0tHzJtQ== resolve@^1.1.7: - version "1.22.1" - resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.22.1.tgz#27cb2ebb53f91abb49470a928bba7558066ac177" - integrity sha512-nBpuuYuY5jFsli/JIs1oldw6fOQCBioohqWZg/2hiaOybXOft4lonv85uDOKXdf8rhyK159cxU5cDcK/NKk8zw== + version "1.22.2" + resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.22.2.tgz#0ed0943d4e301867955766c9f3e1ae6d01c6845f" + integrity sha512-Sb+mjNHOULsBv818T40qSPeRiuWLyaGMa5ewydRLFimneixmVy2zdivRl+AF6jaYPC8ERxGDmFSiqui6SfPd+g== dependencies: - is-core-module "^2.9.0" + is-core-module "^2.11.0" path-parse "^1.0.7" supports-preserve-symlinks-flag "^1.0.0" -resolve@^1.10.0, resolve@^1.14.2, resolve@^1.20.0, resolve@^1.9.0: +resolve@^1.10.0, resolve@^1.14.2, resolve@^1.20.0: version "1.20.0" resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.20.0.tgz#629a013fb3f70755d6f0b7935cc1c2c5378b1975" integrity sha512-wENBPt4ySzg4ybFQW2TT1zMQucPK95HSh/nq2CFTZVOGut2+pQvSsgtda4d26YrYcr067wjbmzOG8byDPBX63A== @@ -14429,6 +14611,25 @@ schema-utils@^3.0.0, schema-utils@^3.1.0, schema-utils@^3.1.1: ajv "^6.12.5" ajv-keywords "^3.5.2" +schema-utils@^3.1.2: + version "3.1.2" + resolved "https://registry.yarnpkg.com/schema-utils/-/schema-utils-3.1.2.tgz#36c10abca6f7577aeae136c804b0c741edeadc99" + integrity sha512-pvjEHOgWc9OWA/f/DE3ohBWTD6EleVLf7iFUkoSwAxttdBhB9QUebQgxER2kWueOvRJXPHNnyrvvh9eZINB8Eg== + dependencies: + "@types/json-schema" "^7.0.8" + ajv "^6.12.5" + ajv-keywords "^3.5.2" + +schema-utils@^4.0.0: + version "4.0.1" + resolved "https://registry.yarnpkg.com/schema-utils/-/schema-utils-4.0.1.tgz#eb2d042df8b01f4b5c276a2dfd41ba0faab72e8d" + integrity sha512-lELhBAAly9NowEsX0yZBlw9ahZG+sK/1RJ21EpzdYHKEs13Vku3LJ+MIPhh4sMs0oCCeufZQEQbMekiA4vuVIQ== + dependencies: + "@types/json-schema" "^7.0.9" + ajv "^8.9.0" + ajv-formats "^2.1.1" + ajv-keywords "^5.1.0" + seek-bzip@^1.0.5: version "1.0.6" resolved "https://registry.yarnpkg.com/seek-bzip/-/seek-bzip-1.0.6.tgz#35c4171f55a680916b52a07859ecf3b5857f21c4" @@ -14441,12 +14642,12 @@ select-hose@^2.0.0: resolved "https://registry.yarnpkg.com/select-hose/-/select-hose-2.0.0.tgz#625d8658f865af43ec962bfc376a37359a4994ca" integrity sha1-Yl2GWPhlr0Psliv8N2o3NZpJlMo= -selfsigned@^1.10.11: - version "1.10.11" - resolved "https://registry.yarnpkg.com/selfsigned/-/selfsigned-1.10.11.tgz#24929cd906fe0f44b6d01fb23999a739537acbe9" - integrity sha512-aVmbPOfViZqOZPgRBT0+3u4yZFHpmnIghLMlAcb5/xhp5ZtB/RVnKhz5vl2M32CLXAqR4kha9zfhNg0Lf/sxKA== +selfsigned@^2.1.1: + version "2.1.1" + resolved "https://registry.yarnpkg.com/selfsigned/-/selfsigned-2.1.1.tgz#18a7613d714c0cd3385c48af0075abf3f266af61" + integrity sha512-GSL3aowiF7wa/WtSFwnUrludWFoNhftq8bUkH9pkzjpN2XSPOAYEgg6e0sS9s0rZwgJzJiQRPU18A6clnoW5wQ== dependencies: - node-forge "^0.10.0" + node-forge "^1" semver-compare@^1.0.0: version "1.0.0" @@ -14571,6 +14772,13 @@ serialize-javascript@^5.0.1: dependencies: randombytes "^2.1.0" +serialize-javascript@^6.0.1: + version "6.0.1" + resolved "https://registry.yarnpkg.com/serialize-javascript/-/serialize-javascript-6.0.1.tgz#b206efb27c3da0b0ab6b52f48d170b7996458e5c" + integrity sha512-owoXEFjWRllis8/M1Q+Cw5k8ZH40e3zhp/ovX+Xr/vi1qj6QesbyXXViFbpNvWvPNAD62SutwEXavefrLJWj7w== + dependencies: + randombytes "^2.1.0" + serve-handler@6.1.3: version "6.1.3" resolved "https://registry.yarnpkg.com/serve-handler/-/serve-handler-6.1.3.tgz#1bf8c5ae138712af55c758477533b9117f6435e8" @@ -14699,6 +14907,11 @@ shebang-regex@^3.0.0: resolved "https://registry.yarnpkg.com/shebang-regex/-/shebang-regex-3.0.0.tgz#ae16f1644d873ecad843b0307b143362d4c42172" integrity sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A== +shell-quote@^1.7.3: + version "1.8.1" + resolved "https://registry.yarnpkg.com/shell-quote/-/shell-quote-1.8.1.tgz#6dbf4db75515ad5bac63b4f1894c3a154c766680" + integrity sha512-6j1W9l1iAs/4xYBI1SYOVZyFcCis9b4KCLQ8fgAGG07QvzaRLVVRQvAy85yNmmZSjYjg4MWh4gNvlPujU/5LpA== + side-channel@^1.0.4: version "1.0.4" resolved "https://registry.yarnpkg.com/side-channel/-/side-channel-1.0.4.tgz#efce5c8fdc104ee751b25c58d4290011fa5ea2cf" @@ -14841,13 +15054,13 @@ socket.io@^4.4.1: socket.io-adapter "~2.4.0" socket.io-parser "~4.2.1" -sockjs@^0.3.21: - version "0.3.21" - resolved "https://registry.yarnpkg.com/sockjs/-/sockjs-0.3.21.tgz#b34ffb98e796930b60a0cfa11904d6a339a7d417" - integrity sha512-DhbPFGpxjc6Z3I+uX07Id5ZO2XwYsWOrYjaSeieES78cq+JaJvVe5q/m1uvjIQhXinhIeCFRH6JgXe+mvVMyXw== +sockjs@^0.3.24: + version "0.3.24" + resolved "https://registry.yarnpkg.com/sockjs/-/sockjs-0.3.24.tgz#c9bc8995f33a111bea0395ec30aa3206bdb5ccce" + integrity sha512-GJgLTZ7vYb/JtPSSZ10hsOYIvEYsjbNU+zPdIHcUaWVNUEPivzxku31865sSSud0Da0W4lEeOPlmw93zLQchuQ== dependencies: faye-websocket "^0.11.3" - uuid "^3.4.0" + uuid "^8.3.2" websocket-driver "^0.7.4" socks-proxy-agent@^7.0.0: @@ -14945,9 +15158,9 @@ source-map@^0.7.3, source-map@~0.7.2: integrity sha512-CkCj6giN3S+n9qrYiBTX5gystlENnRW5jZeNLHpe6aue+SrHcG5VYwujhW9s4dY31mEGsxBDrHR6oI69fTXsaQ== spark-md5@^3.0.1: - version "3.0.1" - resolved "https://registry.yarnpkg.com/spark-md5/-/spark-md5-3.0.1.tgz#83a0e255734f2ab4e5c466e5a2cfc9ba2aa2124d" - integrity sha512-0tF3AGSD1ppQeuffsLDIOWlKUd3lS92tFxcsrh5Pe3ZphhnoK+oXIBTzOAThZCiuINZLvpiLH/1VS1/ANEJVig== + version "3.0.2" + resolved "https://registry.yarnpkg.com/spark-md5/-/spark-md5-3.0.2.tgz#7952c4a30784347abcee73268e473b9c0167e3fc" + integrity sha512-wcFzz9cDfbuqe0FZzfi2or1sgyIrsDwmPwfZC4hiNidPdPINjeUwNfv5kldczoEAcjl9Y1L3SM7Uz2PUEQzxQw== spawn-command@^0.0.2-1: version "0.0.2-1" @@ -15225,13 +15438,6 @@ strip-ansi@^6.0.1: dependencies: ansi-regex "^5.0.1" -strip-ansi@^7.0.0: - version "7.0.1" - resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-7.0.1.tgz#61740a08ce36b61e50e65653f07060d000975fb2" - integrity sha512-cXNxvT8dFNRVfhVME3JAe98mkXDYN2O1l7jmcwMnOslDeESg1rF/OZMtK0nRAhiari1unG5cD4jG3rapUAkLbw== - dependencies: - ansi-regex "^6.0.1" - strip-bom@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/strip-bom/-/strip-bom-2.0.0.tgz#6219a85616520491f35788bdbf1447a99c7e6b0e" @@ -15488,6 +15694,27 @@ terser-webpack-plugin@^5.1.1, terser-webpack-plugin@^5.1.3: source-map "^0.6.1" terser "^5.7.2" +terser-webpack-plugin@^5.3.7: + version "5.3.8" + resolved "https://registry.yarnpkg.com/terser-webpack-plugin/-/terser-webpack-plugin-5.3.8.tgz#415e03d2508f7de63d59eca85c5d102838f06610" + integrity sha512-WiHL3ElchZMsK27P8uIUh4604IgJyAW47LVXGbEoB21DbQcZ+OuMpGjVYnEUaqcWM6dO8uS2qUbA7LSCWqvsbg== + dependencies: + "@jridgewell/trace-mapping" "^0.3.17" + jest-worker "^27.4.5" + schema-utils "^3.1.1" + serialize-javascript "^6.0.1" + terser "^5.16.8" + +terser@^5.16.8: + version "5.17.3" + resolved "https://registry.yarnpkg.com/terser/-/terser-5.17.3.tgz#7f908f16b3cdf3f6c0f8338e6c1c674837f90d25" + integrity sha512-AudpAZKmZHkG9jueayypz4duuCFJMMNGRMwaPvQKWfxKedh8Z2x3OCoDqIIi1xx5+iwx1u6Au8XQcc9Lke65Yg== + dependencies: + "@jridgewell/source-map" "^0.3.2" + acorn "^8.5.0" + commander "^2.20.0" + source-map-support "~0.5.20" + terser@^5.7.2: version "5.9.0" resolved "https://registry.yarnpkg.com/terser/-/terser-5.9.0.tgz#47d6e629a522963240f2b55fcaa3c99083d2c351" @@ -15835,11 +16062,16 @@ tslib@^2.0.0, tslib@^2.0.1, tslib@^2.0.3, tslib@^2.2.0, tslib@^2.3.0, tslib@^2.3 resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.3.1.tgz#e8a335add5ceae51aa261d32a490158ef042ef01" integrity sha512-77EbyPPpMz+FRFRuAFlWMtmgUWGe9UOG2Z25NqCwiIjRhOf5iKGuzSe5P2w1laq+FkRy4p+PCuVkJSGkzTEKVw== -tslib@^2.1.0, tslib@^2.4.0, tslib@^2.4.1: +tslib@^2.1.0, tslib@^2.4.0: version "2.4.1" resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.4.1.tgz#0d0bfbaac2880b91e22df0768e55be9753a5b17e" integrity sha512-tGyy4dAjRIEwI7BzsB0lynWgOpfqjUdq91XXAlIWD2OwKBH7oCl/GZG/HT4BOHrTlPMOASlMQ7veyTqpmRcrNA== +tslib@^2.4.1: + version "2.5.3" + resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.5.3.tgz#24944ba2d990940e6e982c4bea147aba80209913" + integrity sha512-mSxlJJwl3BMEQCUNnxXBU9jP4JBktcEGhURcPR6VQVlnP0FdDEsIaz0C35dXNGLyRfrATNofF0F5p2KPxQgB+w== + tslib@^2.5.0: version "2.5.1" resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.5.1.tgz#f2ad78c367857d54e49a0ef9def68737e1a67b21" @@ -15958,16 +16190,16 @@ typedarray@^0.0.6: resolved "https://registry.yarnpkg.com/typedarray/-/typedarray-0.0.6.tgz#867ac74e3864187b1d3d47d996a78ec5c8830777" integrity sha1-hnrHTjhkGHsdPUfZlqeOxciDB3c= +typescript@4.3.5: + version "4.3.5" + resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.3.5.tgz#4d1c37cc16e893973c45a06886b7113234f119f4" + integrity sha512-DqQgihaQ9cUrskJo9kIyW/+g0Vxsk8cDtZ52a3NGh0YNTfpUSArXSohyUGnvbPazEPLu398C0UxmKSOrPumUzA== + "typescript@^3 || ^4": version "4.8.4" resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.8.4.tgz#c464abca159669597be5f96b8943500b238e60e6" integrity sha512-QCh+85mCy+h0IGff8r5XWzOVSbBO+KfeYrMQh7NJ58QujwcE22u+NUSmUxqF+un70P9GXKxa2HCNiTTMJknyjQ== -typescript@^4.1.3: - version "4.3.5" - resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.3.5.tgz#4d1c37cc16e893973c45a06886b7113234f119f4" - integrity sha512-DqQgihaQ9cUrskJo9kIyW/+g0Vxsk8cDtZ52a3NGh0YNTfpUSArXSohyUGnvbPazEPLu398C0UxmKSOrPumUzA== - ua-parser-js@^0.7.30: version "0.7.32" resolved "https://registry.yarnpkg.com/ua-parser-js/-/ua-parser-js-0.7.32.tgz#cd8c639cdca949e30fa68c44b7813ef13e36d211" @@ -16132,14 +16364,6 @@ url-to-options@^1.0.1: resolved "https://registry.yarnpkg.com/url-to-options/-/url-to-options-1.0.1.tgz#1505a03a289a48cbd7a434efbaeec5055f5633a9" integrity sha512-0kQLIzG4fdk/G5NONku64rSH/x32NOA39LVQqlK8Le6lvTF6GGRJpqaQFGgU+CLwySIqBSMdwYM0sYcW9f6P4A== -url@^0.11.0: - version "0.11.0" - resolved "https://registry.yarnpkg.com/url/-/url-0.11.0.tgz#3838e97cfc60521eb73c525a8e55bfdd9e2e28f1" - integrity sha1-ODjpfPxgUh63PFJajlW/3Z4uKPE= - dependencies: - punycode "1.3.2" - querystring "0.2.0" - use@^3.1.0: version "3.1.1" resolved "https://registry.yarnpkg.com/use/-/use-3.1.1.tgz#d50c8cac79a19fbc20f2911f56eb973f4e10070f" @@ -16155,11 +16379,6 @@ utils-merge@1.0.1: resolved "https://registry.yarnpkg.com/utils-merge/-/utils-merge-1.0.1.tgz#9f95710f50a267947b2ccc124741c1028427e713" integrity sha1-n5VxD1CiZ5R7LMwSR0HBAoQn5xM= -uuid@^3.4.0: - version "3.4.0" - resolved "https://registry.yarnpkg.com/uuid/-/uuid-3.4.0.tgz#b23e4358afa8a202fe7a100af1f5f883f02007ee" - integrity sha512-HjSDRw6gZE5JMggctHBcjVak08+KEVhSIiDzFnT9S9aegmp85S/bReBVTb4QTFaRNptJ9kuYaNhnbNEOkbKb/A== - uuid@^8.3.2: version "8.3.2" resolved "https://registry.yarnpkg.com/uuid/-/uuid-8.3.2.tgz#80d5b5ced271bb9af6c445f21a1a04c606cefbe2" @@ -16267,6 +16486,14 @@ watchpack@^2.2.0: glob-to-regexp "^0.4.1" graceful-fs "^4.1.2" +watchpack@^2.4.0: + version "2.4.0" + resolved "https://registry.yarnpkg.com/watchpack/-/watchpack-2.4.0.tgz#fa33032374962c78113f93c7f2fb4c54c9862a5d" + integrity sha512-Lcvm7MGST/4fup+ifyKi2hjyIAwcdI4HRgtvTpIUxBRhB+RFtUh8XtDOxUfctVCnhVi+QQj49i91OyvzkJl6cg== + dependencies: + glob-to-regexp "^0.4.1" + graceful-fs "^4.1.2" + wbuf@^1.1.0, wbuf@^1.7.3: version "1.7.3" resolved "https://registry.yarnpkg.com/wbuf/-/wbuf-1.7.3.tgz#c1d8d149316d3ea852848895cb6a0bfe887b87df" @@ -16375,65 +16602,71 @@ webpack-bundle-analyzer@^4.4.1: sirv "^1.0.7" ws "^7.3.1" -webpack-cli@^4.4.0: - version "4.9.1" - resolved "https://registry.yarnpkg.com/webpack-cli/-/webpack-cli-4.9.1.tgz#b64be825e2d1b130f285c314caa3b1ba9a4632b3" - integrity sha512-JYRFVuyFpzDxMDB+v/nanUdQYcZtqFPGzmlW4s+UkPMFhSpfRNmf1z4AwYcHJVdvEFAM7FFCQdNTpsBYhDLusQ== +webpack-cli@^5.1.1: + version "5.1.1" + resolved "https://registry.yarnpkg.com/webpack-cli/-/webpack-cli-5.1.1.tgz#c211ac6d911e77c512978f7132f0d735d4a97ace" + integrity sha512-OLJwVMoXnXYH2ncNGU8gxVpUtm3ybvdioiTvHgUyBuyMLKiVvWy+QObzBsMtp5pH7qQoEuWgeEUQ/sU3ZJFzAw== dependencies: "@discoveryjs/json-ext" "^0.5.0" - "@webpack-cli/configtest" "^1.1.0" - "@webpack-cli/info" "^1.4.0" - "@webpack-cli/serve" "^1.6.0" + "@webpack-cli/configtest" "^2.1.0" + "@webpack-cli/info" "^2.0.1" + "@webpack-cli/serve" "^2.0.4" colorette "^2.0.14" - commander "^7.0.0" - execa "^5.0.0" + commander "^10.0.1" + cross-spawn "^7.0.3" + envinfo "^7.7.3" fastest-levenshtein "^1.0.12" import-local "^3.0.2" - interpret "^2.2.0" - rechoir "^0.7.0" + interpret "^3.1.1" + rechoir "^0.8.0" webpack-merge "^5.7.3" -webpack-dev-middleware@^5.2.1: - version "5.2.1" - resolved "https://registry.yarnpkg.com/webpack-dev-middleware/-/webpack-dev-middleware-5.2.1.tgz#97c948144349177856a3d2d9c612cc3fee180cf1" - integrity sha512-Kx1X+36Rn9JaZcQMrJ7qN3PMAuKmEDD9ZISjUj3Cgq4A6PtwYsC4mpaKotSRYH3iOF6HsUa8viHKS59FlyVifQ== +webpack-dev-middleware@^5.3.1: + version "5.3.3" + resolved "https://registry.yarnpkg.com/webpack-dev-middleware/-/webpack-dev-middleware-5.3.3.tgz#efae67c2793908e7311f1d9b06f2a08dcc97e51f" + integrity sha512-hj5CYrY0bZLB+eTO+x/j67Pkrquiy7kWepMHmUMoPsmcUaeEnQJqFzHJOyxgWlq746/wUuA64p9ta34Kyb01pA== dependencies: colorette "^2.0.10" - memfs "^3.2.2" + memfs "^3.4.3" mime-types "^2.1.31" range-parser "^1.2.1" - schema-utils "^3.1.0" - -webpack-dev-server@^4.2.0: - version "4.3.1" - resolved "https://registry.yarnpkg.com/webpack-dev-server/-/webpack-dev-server-4.3.1.tgz#759d3337f0fbea297fbd1e433ab04ccfc000076b" - integrity sha512-qNXQCVYo1kYhH9pgLtm8LRNkXX3XzTfHSj/zqzaqYzGPca+Qjr+81wj1jgPMCHhIhso9WEQ+kX9z23iG9PzQ7w== - dependencies: + schema-utils "^4.0.0" + +webpack-dev-server@^4.15.0: + version "4.15.0" + resolved "https://registry.yarnpkg.com/webpack-dev-server/-/webpack-dev-server-4.15.0.tgz#87ba9006eca53c551607ea0d663f4ae88be7af21" + integrity sha512-HmNB5QeSl1KpulTBQ8UT4FPrByYyaLxpJoQ0+s7EvUrMc16m0ZS1sgb1XGqzmgCPk0c9y+aaXxn11tbLzuM7NQ== + dependencies: + "@types/bonjour" "^3.5.9" + "@types/connect-history-api-fallback" "^1.3.5" + "@types/express" "^4.17.13" + "@types/serve-index" "^1.9.1" + "@types/serve-static" "^1.13.10" + "@types/sockjs" "^0.3.33" + "@types/ws" "^8.5.1" ansi-html-community "^0.0.8" - bonjour "^3.5.0" - chokidar "^3.5.1" + bonjour-service "^1.0.11" + chokidar "^3.5.3" colorette "^2.0.10" compression "^1.7.4" - connect-history-api-fallback "^1.6.0" - del "^6.0.0" - express "^4.17.1" + connect-history-api-fallback "^2.0.0" + default-gateway "^6.0.3" + express "^4.17.3" graceful-fs "^4.2.6" html-entities "^2.3.2" - http-proxy-middleware "^2.0.0" - internal-ip "^6.2.0" + http-proxy-middleware "^2.0.3" ipaddr.js "^2.0.1" + launch-editor "^2.6.0" open "^8.0.9" p-retry "^4.5.0" - portfinder "^1.0.28" - schema-utils "^3.1.0" - selfsigned "^1.10.11" + rimraf "^3.0.2" + schema-utils "^4.0.0" + selfsigned "^2.1.1" serve-index "^1.9.1" - sockjs "^0.3.21" + sockjs "^0.3.24" spdy "^4.0.2" - strip-ansi "^7.0.0" - url "^0.11.0" - webpack-dev-middleware "^5.2.1" - ws "^8.1.0" + webpack-dev-middleware "^5.3.1" + ws "^8.13.0" webpack-manifest-plugin@^5.0.0: version "5.0.0" @@ -16471,7 +16704,12 @@ webpack-sources@^3.2.0: resolved "https://registry.yarnpkg.com/webpack-sources/-/webpack-sources-3.2.1.tgz#251a7d9720d75ada1469ca07dbb62f3641a05b6d" integrity sha512-t6BMVLQ0AkjBOoRTZgqrWm7xbXMBzD+XDq2EZ96+vMfn3qKgsvdXZhbPZ4ElUOpdv4u+iiGe+w3+J75iy/bYGA== -webpack@^5, webpack@^5.36.1, webpack@^5.56.0: +webpack-sources@^3.2.3: + version "3.2.3" + resolved "https://registry.yarnpkg.com/webpack-sources/-/webpack-sources-3.2.3.tgz#2d4daab8451fd4b240cc27055ff6a0c2ccea0cde" + integrity sha512-/DyMEOrDgLKKIG0fmvtz+4dUX/3Ghozwgm6iPp8KRhvn+eQf9+Q7GWxVNMk3+uCPWfdXYC4ExGBckIXdFEfH1w== + +webpack@^5, webpack@^5.56.0: version "5.59.0" resolved "https://registry.yarnpkg.com/webpack/-/webpack-5.59.0.tgz#a5038fc0d4d9350ee528e7e1e0282080c63efcf5" integrity sha512-2HiFHKnWIb/cBfOfgssQn8XIRvntISXiz//F1q1+hKMs+uzC1zlVCJZEP7XqI1wzrDyc/ZdB4G+MYtz5biJxCA== @@ -16501,6 +16739,36 @@ webpack@^5, webpack@^5.36.1, webpack@^5.56.0: watchpack "^2.2.0" webpack-sources "^3.2.0" +webpack@^5.82.0: + version "5.82.0" + resolved "https://registry.yarnpkg.com/webpack/-/webpack-5.82.0.tgz#3c0d074dec79401db026b4ba0fb23d6333f88e7d" + integrity sha512-iGNA2fHhnDcV1bONdUu554eZx+XeldsaeQ8T67H6KKHl2nUSwX8Zm7cmzOA46ox/X1ARxf7Bjv8wQ/HsB5fxBg== + dependencies: + "@types/eslint-scope" "^3.7.3" + "@types/estree" "^1.0.0" + "@webassemblyjs/ast" "^1.11.5" + "@webassemblyjs/wasm-edit" "^1.11.5" + "@webassemblyjs/wasm-parser" "^1.11.5" + acorn "^8.7.1" + acorn-import-assertions "^1.7.6" + browserslist "^4.14.5" + chrome-trace-event "^1.0.2" + enhanced-resolve "^5.13.0" + es-module-lexer "^1.2.1" + eslint-scope "5.1.1" + events "^3.2.0" + glob-to-regexp "^0.4.1" + graceful-fs "^4.2.9" + json-parse-even-better-errors "^2.3.1" + loader-runner "^4.2.0" + mime-types "^2.1.27" + neo-async "^2.6.2" + schema-utils "^3.1.2" + tapable "^2.1.1" + terser-webpack-plugin "^5.3.7" + watchpack "^2.4.0" + webpack-sources "^3.2.3" + websocket-driver@>=0.5.1, websocket-driver@^0.7.4: version "0.7.4" resolved "https://registry.yarnpkg.com/websocket-driver/-/websocket-driver-0.7.4.tgz#89ad5295bbf64b480abcba31e4953aca706f5760" @@ -16754,7 +17022,12 @@ ws@^7.3.1, ws@^7.4.6: resolved "https://registry.yarnpkg.com/ws/-/ws-7.5.5.tgz#8b4bc4af518cfabd0473ae4f99144287b33eb881" integrity sha512-BAkMFcAzl8as1G/hArkxOxq3G7pjUqQ3gzYbLL0/5zNkph70e+lCoxBGnm6AW1+/aiNeV4fnKqZ8m4GZewmH2w== -ws@^8.1.0, ws@^8.2.3, ws@~8.2.3: +ws@^8.13.0: + version "8.13.0" + resolved "https://registry.yarnpkg.com/ws/-/ws-8.13.0.tgz#9a9fb92f93cf41512a0735c8f4dd09b8a1211cd0" + integrity sha512-x9vcZYTrFPC7aSIbj7sRCYo7L/Xb8Iy+pW0ng0wt2vCJv7M9HOMy0UoN3rr+IFC7hb7vXoqS+P9ktyLLLhO+LA== + +ws@^8.2.3, ws@~8.2.3: version "8.2.3" resolved "https://registry.yarnpkg.com/ws/-/ws-8.2.3.tgz#63a56456db1b04367d0b721a0b80cae6d8becbba" integrity sha512-wBuoj1BDpC6ZQ1B7DWQBYVLphPWkm8i9Y0/3YdHjHKHiohOJ1ws+3OccDWtH+PoC9DZD5WOTrJvNbWvjS6JWaA==