Skip to content

Commit

Permalink
chore: add error import from lib for missing integrations
Browse files Browse the repository at this point in the history
  • Loading branch information
Gauravudia committed Nov 10, 2023
1 parent 8eb1e1d commit bbb38ec
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/legacy/router.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ const Router = require('@koa/router');
const lodash = require('lodash');
const fs = require('fs');
const path = require('path');
const { PlatformError } = require('@rudderstack/integrations-lib');
const logger = require('../logger');
const stats = require('../util/stats');
const { SUPPORTED_VERSIONS, API_VERSION } = require('../routes/utils/constants');
Expand Down Expand Up @@ -35,7 +36,6 @@ const {
sendViolationMetrics,
constructValidationErrors,
} = require('../util/utils');
const { PlatformError } = require('../v0/util/errorTypes');
const { processCdkV1 } = require('../cdk/v1/handler');
const { extractLibraries } = require('../util/customTransformer');
const { getCompatibleStatusCode } = require('../adapters/utils/networkUtils');
Expand Down
3 changes: 1 addition & 2 deletions src/v0/destinations/facebook_conversions/transform.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/* eslint-disable no-param-reassign */
const get = require('get-value');
const moment = require('moment');
const { InstrumentationError, ConfigurationError } = require('@rudderstack/integrations-lib');
const {
CONFIG_CATEGORIES,
MAPPING_CONFIG,
Expand Down Expand Up @@ -34,8 +35,6 @@ const {
formingFinalResponse,
} = require('../../util/facebookUtils');

const { InstrumentationError, ConfigurationError } = require('../../util/errorTypes');

const responseBuilderSimple = (message, category, destination) => {
const { Config, ID } = destination;
let { categoryToContent } = Config;
Expand Down
2 changes: 1 addition & 1 deletion src/v0/destinations/facebook_conversions/utils.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
const { InstrumentationError } = require('@rudderstack/integrations-lib');
const {
CONFIG_CATEGORIES,
OTHER_STANDARD_EVENTS,
Expand All @@ -8,7 +9,6 @@ const {
} = require('./config');
const { constructPayload, isObject, isAppleFamily } = require('../../util');
const { getContentType, getContentCategory } = require('../../util/facebookUtils');
const { InstrumentationError } = require('../../util/errorTypes');

const getActionSource = (payload, fallbackActionSource) => {
let actionSource = fallbackActionSource;
Expand Down
2 changes: 1 addition & 1 deletion src/v0/sources/appcenter/transform.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
const path = require('path');
const fs = require('fs');
const { TransformationError } = require('@rudderstack/integrations-lib');
const { generateUUID } = require('../../util');
const Message = require('../message');

const mappingJson = JSON.parse(fs.readFileSync(path.resolve(__dirname, './mapping.json'), 'utf-8'));

const { removeUndefinedAndNullValues } = require('../../util');

const { TransformationError } = require('../../util/errorTypes');
const { JSON_MIME_TYPE } = require('../../util/constant');

const processNormalEvent = (event) => {
Expand Down

0 comments on commit bbb38ec

Please sign in to comment.