@8ms/helpers 2.3.12 → 2.3.13

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.
Binary file
@@ -1,6 +1,6 @@
1
1
  import "../../api-BlYy5Efh.mjs";
2
- import { get } from "../../axios/index.mjs";
3
2
  import { getLuxonDate, getToday, getYesterday, getYmdString } from "../../date/index.mjs";
3
+ import { get } from "../../axios/index.mjs";
4
4
 
5
5
  //#region src/adverity/server/getJobs.ts
6
6
  /**
@@ -1,6 +1,6 @@
1
1
  import "../../api-BlYy5Efh.mjs";
2
- import { post } from "../../axios/index.mjs";
3
2
  import { ageGroups, devices, genders } from "../index.mjs";
3
+ import { post } from "../../axios/index.mjs";
4
4
 
5
5
  //#region src/eskimi/server/getAgeGroup.ts
6
6
  /**
@@ -26,7 +26,7 @@ var PrismaNamespace = class extends BaseNamespace {
26
26
  } catch (e) {
27
27
  throw new Error(`MariaDB adapter not installed - ${getError(e)}`);
28
28
  }
29
- else try {
29
+ if (this.config.isPostgres) try {
30
30
  const { PrismaPg } = await import("@prisma/adapter-pg");
31
31
  adapter = new PrismaPg({ connectionString: process.env.DATABASE_URL });
32
32
  } catch (e) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@8ms/helpers",
3
3
  "license": "UNLICENSED",
4
- "version": "2.3.12",
4
+ "version": "2.3.13",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "git+https://github.com/8millionstories-organisation/8ms-helpers-ts.git"