@8ms/helpers 3.0.21 → 3.0.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/adverity/adverity.d.cts +0 -1
- package/dist/adverity/adverity.d.mts +0 -1
- package/dist/adverity/server/getJobs.d.cts +2 -0
- package/dist/adverity/server/getJobs.d.mts +2 -0
- package/dist/api/ApiResponseClass.cjs +2 -1
- package/dist/api/ApiResponseClass.d.cts +1 -6
- package/dist/api/ApiResponseClass.d.mts +1 -6
- package/dist/api/ApiResponseClass.mjs +2 -1
- package/dist/api/api.d.cts +0 -1
- package/dist/api/api.d.mts +0 -1
- package/dist/api/deleteRequest.d.cts +0 -1
- package/dist/api/deleteRequest.d.mts +0 -1
- package/dist/api/functions.d.cts +0 -1
- package/dist/api/functions.d.mts +0 -1
- package/dist/api/get.d.cts +0 -1
- package/dist/api/get.d.mts +0 -1
- package/dist/api/post.d.cts +0 -1
- package/dist/api/post.d.mts +0 -1
- package/dist/atInternet/atInternet.d.cts +0 -1
- package/dist/atInternet/atInternet.d.mts +0 -1
- package/dist/aws/cloudWatchLog/server/AwsCloudWatchLog.d.cts +0 -1
- package/dist/aws/cloudWatchLog/server/AwsCloudWatchLog.d.mts +0 -1
- package/dist/aws/cloudWatchLog/server/logEvent.d.cts +1 -0
- package/dist/aws/cloudWatchLog/server/logEvent.d.mts +1 -0
- package/dist/aws/cloudWatchMetric/server/AwsCloudWatchMetric.d.cts +0 -1
- package/dist/aws/cloudWatchMetric/server/AwsCloudWatchMetric.d.mts +0 -1
- package/dist/aws/cloudWatchMetric/server/logMetric.d.cts +1 -1
- package/dist/aws/cloudWatchMetric/server/logMetric.d.mts +1 -1
- package/dist/aws/ec2/server/AwsEc2.d.cts +0 -1
- package/dist/aws/ec2/server/AwsEc2.d.mts +0 -1
- package/dist/aws/ecs/server/AwsEcs.d.cts +0 -1
- package/dist/aws/ecs/server/AwsEcs.d.mts +0 -1
- package/dist/aws/glue/server/AwsGlue.d.cts +0 -1
- package/dist/aws/glue/server/AwsGlue.d.mts +0 -1
- package/dist/aws/lambda/server/AwsLambda.d.cts +0 -1
- package/dist/aws/lambda/server/AwsLambda.d.mts +0 -1
- package/dist/aws/s3/server/AwsS3.d.cts +1 -1
- package/dist/aws/s3/server/AwsS3.d.mts +1 -1
- package/dist/aws/s3/server/payload.d.cts +0 -1
- package/dist/aws/s3/server/payload.d.mts +0 -1
- package/dist/aws/server/getAwsConfig.cjs +3 -1
- package/dist/aws/server/getAwsConfig.mjs +3 -1
- package/dist/aws/ses/server/AwsSes.cjs +4 -11
- package/dist/aws/ses/server/AwsSes.d.cts +3 -4
- package/dist/aws/ses/server/AwsSes.d.mts +3 -4
- package/dist/aws/ses/server/AwsSes.mjs +4 -11
- package/dist/aws/ses/server/SimpleEmail.cjs +10 -11
- package/dist/aws/ses/server/SimpleEmail.d.cts +3 -12
- package/dist/aws/ses/server/SimpleEmail.d.mts +3 -12
- package/dist/aws/ses/server/SimpleEmail.mjs +10 -11
- package/dist/aws/sqs/server/AwsSqs.d.cts +0 -1
- package/dist/aws/sqs/server/AwsSqs.d.mts +0 -1
- package/dist/aws/ssm/server/AwsSsm.d.cts +0 -1
- package/dist/aws/ssm/server/AwsSsm.d.mts +0 -1
- package/dist/brightData/serpApi/server/getAsyncRequestId.d.cts +1 -0
- package/dist/brightData/serpApi/server/getAsyncRequestId.d.mts +1 -0
- package/dist/brightData/serpApi/server/getAsyncResults.d.cts +1 -1
- package/dist/brightData/serpApi/server/getAsyncResults.d.mts +1 -1
- package/dist/brightData/serpApi/server/getRealtime.d.cts +0 -1
- package/dist/brightData/serpApi/server/getRealtime.d.mts +0 -1
- package/dist/brightData/webScraperIde/server/getBatch.d.cts +0 -1
- package/dist/brightData/webScraperIde/server/getBatch.d.mts +0 -1
- package/dist/brightData/webScraperIde/server/getRealtime.d.cts +0 -1
- package/dist/brightData/webScraperIde/server/getRealtime.d.mts +0 -1
- package/dist/date/calculation.d.cts +0 -1
- package/dist/date/calculation.d.mts +0 -1
- package/dist/date/date.d.cts +0 -1
- package/dist/date/date.d.mts +0 -1
- package/dist/date/financialYear.d.cts +0 -1
- package/dist/date/financialYear.d.mts +0 -1
- package/dist/date/format.cjs +8 -4
- package/dist/date/format.d.cts +0 -1
- package/dist/date/format.d.mts +0 -1
- package/dist/date/format.mjs +8 -4
- package/dist/drizzle/server/Drizzle.d.cts +0 -1
- package/dist/drizzle/server/Drizzle.d.mts +0 -1
- package/dist/emsApi/awsTs/get.d.cts +1 -0
- package/dist/emsApi/awsTs/get.d.mts +1 -0
- package/dist/emsApi/awsTs/post.d.cts +1 -0
- package/dist/emsApi/awsTs/post.d.mts +1 -0
- package/dist/emsApi/vercel/get.d.cts +1 -0
- package/dist/emsApi/vercel/get.d.mts +1 -0
- package/dist/emsApi/vercel/post.d.cts +1 -0
- package/dist/emsApi/vercel/post.d.mts +1 -0
- package/dist/environment/environment.cjs +3 -7
- package/dist/environment/environment.d.cts +1 -0
- package/dist/environment/environment.d.mts +1 -0
- package/dist/environment/environment.mjs +3 -7
- package/dist/eskimi/eskimi.d.cts +0 -1
- package/dist/eskimi/eskimi.d.mts +0 -1
- package/dist/googleAds/keywordPlanner/server/googleAdsKeywordPlanner.d.cts +0 -1
- package/dist/googleAds/keywordPlanner/server/googleAdsKeywordPlanner.d.mts +0 -1
- package/dist/googleAds/server/GoogleAds.d.cts +0 -1
- package/dist/googleAds/server/GoogleAds.d.mts +0 -1
- package/dist/googleCloud/bigquery/server/GoogleCloudBigquery.d.cts +0 -1
- package/dist/googleCloud/bigquery/server/GoogleCloudBigquery.d.mts +0 -1
- package/dist/googleCloud/bigquery/server/loadData.d.cts +1 -7
- package/dist/googleCloud/bigquery/server/loadData.d.mts +1 -7
- package/dist/googleCloud/sheets/server/GoogleCloudSheets.d.cts +0 -1
- package/dist/googleCloud/sheets/server/GoogleCloudSheets.d.mts +0 -1
- package/dist/googleCloud/storage/server/GoogleCloudStorage.d.cts +0 -1
- package/dist/googleCloud/storage/server/GoogleCloudStorage.d.mts +0 -1
- package/dist/googlePageSpeed/server/GooglePageSpeed.d.cts +0 -1
- package/dist/googlePageSpeed/server/GooglePageSpeed.d.mts +0 -1
- package/dist/googleSearchIncidents/server/googleSearchIncidents.d.cts +0 -1
- package/dist/googleSearchIncidents/server/googleSearchIncidents.d.mts +0 -1
- package/dist/greenDomain/server/greenDomain.d.cts +0 -1
- package/dist/greenDomain/server/greenDomain.d.mts +0 -1
- package/dist/littleWarden/server/LittleWarden.d.cts +0 -1
- package/dist/littleWarden/server/LittleWarden.d.mts +0 -1
- package/dist/littleWarden/server/littleWardenAttrs.d.cts +3 -10
- package/dist/littleWarden/server/littleWardenAttrs.d.mts +3 -10
- package/dist/lumar/api/server/buildRequest.d.cts +1 -0
- package/dist/lumar/api/server/buildRequest.d.mts +1 -0
- package/dist/lumar/api/server/getData.d.cts +1 -0
- package/dist/lumar/api/server/getData.d.mts +1 -0
- package/dist/lumar/graphql/server/getData.d.cts +1 -0
- package/dist/lumar/graphql/server/getData.d.mts +1 -0
- package/dist/lumar/graphql/server/queries/getCrawls.d.cts +1 -4
- package/dist/lumar/graphql/server/queries/getCrawls.d.mts +1 -4
- package/dist/lumar/graphql/server/queries/getReportDifferences.d.cts +1 -5
- package/dist/lumar/graphql/server/queries/getReportDifferences.d.mts +1 -5
- package/dist/lumar/graphql/server/queries/getRows.d.cts +1 -11
- package/dist/lumar/graphql/server/queries/getRows.d.mts +1 -11
- package/dist/lumar/graphql/server/queries/getTotals.d.cts +1 -7
- package/dist/lumar/graphql/server/queries/getTotals.d.mts +1 -7
- package/dist/myTarget/server/myTarget.d.cts +0 -1
- package/dist/myTarget/server/myTarget.d.mts +0 -1
- package/dist/nextAuth/nextAuth.d.cts +0 -1
- package/dist/nextAuth/nextAuth.d.mts +0 -1
- package/dist/nextJs/client/LazyLoad.d.cts +0 -1
- package/dist/nextJs/client/LazyLoad.d.mts +0 -1
- package/dist/onePassword/server/OnePassword.d.cts +0 -1
- package/dist/onePassword/server/OnePassword.d.mts +0 -1
- package/dist/openAi/server/OpenAi.d.cts +0 -1
- package/dist/openAi/server/OpenAi.d.mts +0 -1
- package/dist/prisma/server/Prisma.d.cts +0 -1
- package/dist/prisma/server/Prisma.d.mts +0 -1
- package/dist/snapchat/server/Snapchat.d.cts +0 -1
- package/dist/snapchat/server/Snapchat.d.mts +0 -1
- package/dist/stream/server/sort.d.cts +0 -1
- package/dist/stream/server/sort.d.mts +0 -1
- package/dist/swr/client/swr.d.cts +1 -0
- package/dist/swr/client/swr.d.mts +1 -0
- package/dist/upTimeRobot/server/UpTimeRobot.d.cts +0 -1
- package/dist/upTimeRobot/server/UpTimeRobot.d.mts +0 -1
- package/dist/util/isUndefined.cjs +2 -1
- package/dist/util/isUndefined.mjs +2 -1
- package/dist/util/server/getBrotliCompressed.d.cts +0 -1
- package/dist/util/server/getBrotliCompressed.d.mts +0 -1
- package/dist/util/server/getBrotliDecompressed.d.cts +0 -1
- package/dist/util/server/getBrotliDecompressed.d.mts +0 -1
- package/dist/util/server/getGzipCompressed.d.cts +0 -1
- package/dist/util/server/getGzipCompressed.d.mts +0 -1
- package/dist/util/server/getGzipDecompressed.d.cts +0 -1
- package/dist/util/server/getGzipDecompressed.d.mts +0 -1
- package/package.json +31 -31
|
@@ -82,7 +82,7 @@ var SimpleEmail = class extends BaseClass {
|
|
|
82
82
|
CcAddresses: this._filterRecipients("cc"),
|
|
83
83
|
ToAddresses: this._filterRecipients("to")
|
|
84
84
|
},
|
|
85
|
-
|
|
85
|
+
Content: { Simple: {
|
|
86
86
|
Body: {
|
|
87
87
|
Html: {
|
|
88
88
|
Charset: "UTF-8",
|
|
@@ -97,17 +97,12 @@ var SimpleEmail = class extends BaseClass {
|
|
|
97
97
|
Charset: "UTF-8",
|
|
98
98
|
Data: this.subject ?? ""
|
|
99
99
|
}
|
|
100
|
-
},
|
|
101
|
-
|
|
100
|
+
} },
|
|
101
|
+
FromEmailAddress: this.from ?? ""
|
|
102
102
|
};
|
|
103
103
|
};
|
|
104
104
|
_getRawEmailParams = async () => {
|
|
105
105
|
const boundary = `----=_NextPart_${Date.now()}_${Math.random().toString(36).substr(2, 9)}`;
|
|
106
|
-
const allRecipients = [
|
|
107
|
-
...this._filterRecipients("to"),
|
|
108
|
-
...this._filterRecipients("cc"),
|
|
109
|
-
...this._filterRecipients("bcc")
|
|
110
|
-
];
|
|
111
106
|
let rawMessage = "";
|
|
112
107
|
rawMessage += `From: ${this.from}\r\n`;
|
|
113
108
|
if (this._filterRecipients("to").length > 0) rawMessage += `To: ${this._filterRecipients("to").join(", ")}\r\n`;
|
|
@@ -136,9 +131,13 @@ var SimpleEmail = class extends BaseClass {
|
|
|
136
131
|
}
|
|
137
132
|
rawMessage += `--${boundary}--\r\n`;
|
|
138
133
|
return {
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
134
|
+
Destination: {
|
|
135
|
+
ToAddresses: this._filterRecipients("to"),
|
|
136
|
+
CcAddresses: this._filterRecipients("cc"),
|
|
137
|
+
BccAddresses: this._filterRecipients("bcc")
|
|
138
|
+
},
|
|
139
|
+
Content: { Raw: { Data: Buffer.from(rawMessage) } },
|
|
140
|
+
FromEmailAddress: this.from ?? ""
|
|
142
141
|
};
|
|
143
142
|
};
|
|
144
143
|
_isTextFile = (contentType) => {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { BrightDataSerpApiType } from "./brightDataSerpApi.cjs";
|
|
2
2
|
import { Auth } from "../../server/brightData.cjs";
|
|
3
|
+
import "./index.cjs";
|
|
3
4
|
//#region src/brightData/serpApi/server/getAsyncRequestId.d.ts
|
|
4
5
|
/**
|
|
5
6
|
* Make an async request to the SERP API using the Bright Data proxy.
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { BrightDataSerpApiType } from "./brightDataSerpApi.mjs";
|
|
2
2
|
import { Auth } from "../../server/brightData.mjs";
|
|
3
|
+
import "./index.mjs";
|
|
3
4
|
//#region src/brightData/serpApi/server/getAsyncRequestId.d.ts
|
|
4
5
|
/**
|
|
5
6
|
* Make an async request to the SERP API using the Bright Data proxy.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ApiResponseClass } from "../../../api/ApiResponseClass.cjs";
|
|
2
|
+
import "../../../api/index.cjs";
|
|
2
3
|
import { Auth } from "../../server/brightData.cjs";
|
|
3
|
-
|
|
4
4
|
//#region src/brightData/serpApi/server/getAsyncResults.d.ts
|
|
5
5
|
/**
|
|
6
6
|
* Using the request ID from getAsyncRequestId fetch to see if the data is available.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ApiResponseClass } from "../../../api/ApiResponseClass.mjs";
|
|
2
|
+
import "../../../api/index.mjs";
|
|
2
3
|
import { Auth } from "../../server/brightData.mjs";
|
|
3
|
-
|
|
4
4
|
//#region src/brightData/serpApi/server/getAsyncResults.d.ts
|
|
5
5
|
/**
|
|
6
6
|
* Using the request ID from getAsyncRequestId fetch to see if the data is available.
|
package/dist/date/date.d.cts
CHANGED
package/dist/date/date.d.mts
CHANGED
package/dist/date/format.cjs
CHANGED
|
@@ -86,25 +86,29 @@ const getYearMonthString = (input) => {
|
|
|
86
86
|
* Shorthand to get the current date.
|
|
87
87
|
*/
|
|
88
88
|
const getTodayYmdString = (setMidnight) => {
|
|
89
|
-
|
|
89
|
+
const today = require_date_calculation.getToday(setMidnight);
|
|
90
|
+
return getYmdString(today);
|
|
90
91
|
};
|
|
91
92
|
/**
|
|
92
93
|
* Shorthand to get the current date.
|
|
93
94
|
*/
|
|
94
95
|
const getTodayYmdHisString = (setMidnight) => {
|
|
95
|
-
|
|
96
|
+
const today = require_date_calculation.getToday(setMidnight);
|
|
97
|
+
return getYmdHisString(today);
|
|
96
98
|
};
|
|
97
99
|
/**
|
|
98
100
|
* Shorthand to get the current date.
|
|
99
101
|
*/
|
|
100
102
|
const getTodayYmdNumber = (setMidnight) => {
|
|
101
|
-
|
|
103
|
+
const today = require_date_calculation.getToday(setMidnight);
|
|
104
|
+
return getYmdNumber(today);
|
|
102
105
|
};
|
|
103
106
|
/**
|
|
104
107
|
* Shorthand to get the current date.
|
|
105
108
|
*/
|
|
106
109
|
const getTodayYmdHisNumber = (setMidnight) => {
|
|
107
|
-
|
|
110
|
+
const today = require_date_calculation.getToday(setMidnight);
|
|
111
|
+
return getYmdHisNumber(today);
|
|
108
112
|
};
|
|
109
113
|
/**
|
|
110
114
|
* Convert a Date into a YYYY number.
|
package/dist/date/format.d.cts
CHANGED
package/dist/date/format.d.mts
CHANGED
package/dist/date/format.mjs
CHANGED
|
@@ -85,25 +85,29 @@ const getYearMonthString = (input) => {
|
|
|
85
85
|
* Shorthand to get the current date.
|
|
86
86
|
*/
|
|
87
87
|
const getTodayYmdString = (setMidnight) => {
|
|
88
|
-
|
|
88
|
+
const today = getToday(setMidnight);
|
|
89
|
+
return getYmdString(today);
|
|
89
90
|
};
|
|
90
91
|
/**
|
|
91
92
|
* Shorthand to get the current date.
|
|
92
93
|
*/
|
|
93
94
|
const getTodayYmdHisString = (setMidnight) => {
|
|
94
|
-
|
|
95
|
+
const today = getToday(setMidnight);
|
|
96
|
+
return getYmdHisString(today);
|
|
95
97
|
};
|
|
96
98
|
/**
|
|
97
99
|
* Shorthand to get the current date.
|
|
98
100
|
*/
|
|
99
101
|
const getTodayYmdNumber = (setMidnight) => {
|
|
100
|
-
|
|
102
|
+
const today = getToday(setMidnight);
|
|
103
|
+
return getYmdNumber(today);
|
|
101
104
|
};
|
|
102
105
|
/**
|
|
103
106
|
* Shorthand to get the current date.
|
|
104
107
|
*/
|
|
105
108
|
const getTodayYmdHisNumber = (setMidnight) => {
|
|
106
|
-
|
|
109
|
+
const today = getToday(setMidnight);
|
|
110
|
+
return getYmdHisNumber(today);
|
|
107
111
|
};
|
|
108
112
|
/**
|
|
109
113
|
* Convert a Date into a YYYY number.
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { BaseNamespace } from "../../_class/BaseNamespace.cjs";
|
|
2
2
|
import { defineRelations } from "drizzle-orm";
|
|
3
|
-
|
|
4
3
|
//#region src/drizzle/server/Drizzle.d.ts
|
|
5
4
|
type DrizzleConfig<TSchema extends Record<string, unknown> = Record<string, unknown>> = {
|
|
6
5
|
schema?: TSchema;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { BaseNamespace } from "../../_class/BaseNamespace.mjs";
|
|
2
2
|
import { defineRelations } from "drizzle-orm";
|
|
3
|
-
|
|
4
3
|
//#region src/drizzle/server/Drizzle.d.ts
|
|
5
4
|
type DrizzleConfig<TSchema extends Record<string, unknown> = Record<string, unknown>> = {
|
|
6
5
|
schema?: TSchema;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ApiResponseClass } from "../../api/ApiResponseClass.cjs";
|
|
2
2
|
import { Config } from "../../api/config.cjs";
|
|
3
|
+
import "../../api/index.cjs";
|
|
3
4
|
//#region src/emsApi/awsTs/get.d.ts
|
|
4
5
|
declare const getAwsTs: (path: string, config?: Config) => Promise<ApiResponseClass<any, any>>;
|
|
5
6
|
//#endregion
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ApiResponseClass } from "../../api/ApiResponseClass.mjs";
|
|
2
2
|
import { Config } from "../../api/config.mjs";
|
|
3
|
+
import "../../api/index.mjs";
|
|
3
4
|
//#region src/emsApi/awsTs/get.d.ts
|
|
4
5
|
declare const getAwsTs: (path: string, config?: Config) => Promise<ApiResponseClass<any, any>>;
|
|
5
6
|
//#endregion
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ApiResponseClass } from "../../api/ApiResponseClass.cjs";
|
|
2
2
|
import { Config } from "../../api/config.cjs";
|
|
3
|
+
import "../../api/index.cjs";
|
|
3
4
|
//#region src/emsApi/awsTs/post.d.ts
|
|
4
5
|
declare const postAwsTs: (path: string, data?: {}, config?: Config) => Promise<ApiResponseClass<any, any>>;
|
|
5
6
|
//#endregion
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ApiResponseClass } from "../../api/ApiResponseClass.mjs";
|
|
2
2
|
import { Config } from "../../api/config.mjs";
|
|
3
|
+
import "../../api/index.mjs";
|
|
3
4
|
//#region src/emsApi/awsTs/post.d.ts
|
|
4
5
|
declare const postAwsTs: (path: string, data?: {}, config?: Config) => Promise<ApiResponseClass<any, any>>;
|
|
5
6
|
//#endregion
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ApiResponseClass } from "../../api/ApiResponseClass.cjs";
|
|
2
2
|
import { Config } from "../../api/config.cjs";
|
|
3
|
+
import "../../api/index.cjs";
|
|
3
4
|
//#region src/emsApi/vercel/get.d.ts
|
|
4
5
|
declare const getVercel: (path: string, config?: Config) => Promise<ApiResponseClass<any, any>>;
|
|
5
6
|
//#endregion
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ApiResponseClass } from "../../api/ApiResponseClass.mjs";
|
|
2
2
|
import { Config } from "../../api/config.mjs";
|
|
3
|
+
import "../../api/index.mjs";
|
|
3
4
|
//#region src/emsApi/vercel/get.d.ts
|
|
4
5
|
declare const getVercel: (path: string, config?: Config) => Promise<ApiResponseClass<any, any>>;
|
|
5
6
|
//#endregion
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ApiResponseClass } from "../../api/ApiResponseClass.cjs";
|
|
2
2
|
import { Config } from "../../api/config.cjs";
|
|
3
|
+
import "../../api/index.cjs";
|
|
3
4
|
//#region src/emsApi/vercel/post.d.ts
|
|
4
5
|
declare const postVercel: (path: string, data?: {}, config?: Config) => Promise<ApiResponseClass<any, any>>;
|
|
5
6
|
//#endregion
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ApiResponseClass } from "../../api/ApiResponseClass.mjs";
|
|
2
2
|
import { Config } from "../../api/config.mjs";
|
|
3
|
+
import "../../api/index.mjs";
|
|
3
4
|
//#region src/emsApi/vercel/post.d.ts
|
|
4
5
|
declare const postVercel: (path: string, data?: {}, config?: Config) => Promise<ApiResponseClass<any, any>>;
|
|
5
6
|
//#endregion
|
|
@@ -7,6 +7,7 @@ const environment = {
|
|
|
7
7
|
};
|
|
8
8
|
const platform = {
|
|
9
9
|
AWS: "AWS",
|
|
10
|
+
LOCALHOST: "LOCALHOST",
|
|
10
11
|
VERCEL: "VERCEL",
|
|
11
12
|
GCP: "GCP"
|
|
12
13
|
};
|
|
@@ -37,7 +38,7 @@ const getEnvironment = () => {
|
|
|
37
38
|
* Check to see if we are working on AWS Lambda.
|
|
38
39
|
*/
|
|
39
40
|
const isAws = () => platform.AWS === process.env["EMS_PLATFORM"];
|
|
40
|
-
const isVercel = () =>
|
|
41
|
+
const isVercel = () => platform.VERCEL === process.env["EMS_PLATFORM"];
|
|
41
42
|
const isGoogleCloud = () => platform.GCP === process.env["EMS_PLATFORM"];
|
|
42
43
|
/**
|
|
43
44
|
* Some code should only run on the server side to protect the data.
|
|
@@ -52,12 +53,7 @@ const isProduction = () => environment.PRODUCTION === getEnvironment();
|
|
|
52
53
|
/**
|
|
53
54
|
* Check to see if we are developing locally or on the hosted platform.
|
|
54
55
|
*/
|
|
55
|
-
const isLocalhost = () =>
|
|
56
|
-
if ("true" === process.env["IS_LOCAL"]) return true;
|
|
57
|
-
if (isAws()) return "true" === process.env["AWS_SAM_LOCAL"];
|
|
58
|
-
if (isVercel()) return "undefined" === typeof process.env["NEXT_PUBLIC_VERCEL_GIT_REPO_ID"];
|
|
59
|
-
return false;
|
|
60
|
-
};
|
|
56
|
+
const isLocalhost = () => platform.LOCALHOST === process.env["EMS_PLATFORM"];
|
|
61
57
|
//#endregion
|
|
62
58
|
exports.environment = environment;
|
|
63
59
|
exports.getEnvironment = getEnvironment;
|
|
@@ -6,6 +6,7 @@ const environment = {
|
|
|
6
6
|
};
|
|
7
7
|
const platform = {
|
|
8
8
|
AWS: "AWS",
|
|
9
|
+
LOCALHOST: "LOCALHOST",
|
|
9
10
|
VERCEL: "VERCEL",
|
|
10
11
|
GCP: "GCP"
|
|
11
12
|
};
|
|
@@ -36,7 +37,7 @@ const getEnvironment = () => {
|
|
|
36
37
|
* Check to see if we are working on AWS Lambda.
|
|
37
38
|
*/
|
|
38
39
|
const isAws = () => platform.AWS === process.env["EMS_PLATFORM"];
|
|
39
|
-
const isVercel = () =>
|
|
40
|
+
const isVercel = () => platform.VERCEL === process.env["EMS_PLATFORM"];
|
|
40
41
|
const isGoogleCloud = () => platform.GCP === process.env["EMS_PLATFORM"];
|
|
41
42
|
/**
|
|
42
43
|
* Some code should only run on the server side to protect the data.
|
|
@@ -51,11 +52,6 @@ const isProduction = () => environment.PRODUCTION === getEnvironment();
|
|
|
51
52
|
/**
|
|
52
53
|
* Check to see if we are developing locally or on the hosted platform.
|
|
53
54
|
*/
|
|
54
|
-
const isLocalhost = () =>
|
|
55
|
-
if ("true" === process.env["IS_LOCAL"]) return true;
|
|
56
|
-
if (isAws()) return "true" === process.env["AWS_SAM_LOCAL"];
|
|
57
|
-
if (isVercel()) return "undefined" === typeof process.env["NEXT_PUBLIC_VERCEL_GIT_REPO_ID"];
|
|
58
|
-
return false;
|
|
59
|
-
};
|
|
55
|
+
const isLocalhost = () => platform.LOCALHOST === process.env["EMS_PLATFORM"];
|
|
60
56
|
//#endregion
|
|
61
57
|
export { environment, getEnvironment, isAws, isDevelopment, isGoogleCloud, isLocalhost, isProduction, isServer, isStaging, isVercel, platform };
|
package/dist/eskimi/eskimi.d.cts
CHANGED
package/dist/eskimi/eskimi.d.mts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { GoogleCloudBigquery } from "./GoogleCloudBigquery.cjs";
|
|
2
|
-
|
|
3
2
|
//#region src/googleCloud/bigquery/server/loadData.d.ts
|
|
4
3
|
type LoadData = {
|
|
5
4
|
googleCloudBigqueryClient: GoogleCloudBigquery;
|
|
@@ -19,11 +18,6 @@ type LoadData = {
|
|
|
19
18
|
/**
|
|
20
19
|
* Load data into a given table using Google Cloud Storage.
|
|
21
20
|
*/
|
|
22
|
-
declare const loadData: ({
|
|
23
|
-
file,
|
|
24
|
-
googleCloudBigqueryClient,
|
|
25
|
-
googleCloudStorageClient,
|
|
26
|
-
table
|
|
27
|
-
}: LoadData) => Promise<void>;
|
|
21
|
+
declare const loadData: ({ file, googleCloudBigqueryClient, googleCloudStorageClient, table }: LoadData) => Promise<void>;
|
|
28
22
|
//#endregion
|
|
29
23
|
export { loadData };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { GoogleCloudBigquery } from "./GoogleCloudBigquery.mjs";
|
|
2
|
-
|
|
3
2
|
//#region src/googleCloud/bigquery/server/loadData.d.ts
|
|
4
3
|
type LoadData = {
|
|
5
4
|
googleCloudBigqueryClient: GoogleCloudBigquery;
|
|
@@ -19,11 +18,6 @@ type LoadData = {
|
|
|
19
18
|
/**
|
|
20
19
|
* Load data into a given table using Google Cloud Storage.
|
|
21
20
|
*/
|
|
22
|
-
declare const loadData: ({
|
|
23
|
-
file,
|
|
24
|
-
googleCloudBigqueryClient,
|
|
25
|
-
googleCloudStorageClient,
|
|
26
|
-
table
|
|
27
|
-
}: LoadData) => Promise<void>;
|
|
21
|
+
declare const loadData: ({ file, googleCloudBigqueryClient, googleCloudStorageClient, table }: LoadData) => Promise<void>;
|
|
28
22
|
//#endregion
|
|
29
23
|
export { loadData };
|