@driveflux/config 1.8.1 → 1.8.2

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.
@@ -1 +1 @@
1
- {"version":3,"file":"backend.d.ts","sourceRoot":"","sources":["../src/backend.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,CAAC,MAAM,CAAC;IACd,IAAI,qBAAqB,EAAE,MAAM,CAAA;CACjC;AAED,MAAM,MAAM,MAAM,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAA;AASrD,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAmG1B;;eAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAmDJ,CAAA;AAoJF,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,CAAA;AAEpE,eAAO,MAAM,SAAS,GAAI,GAAG,SAAS,MAAM,MAAM,OAC5C,GAAG,SACD,MAAM,CAAC,GAAG,CAAC,SAGlB,CAAA"}
1
+ {"version":3,"file":"frontend.d.ts","sourceRoot":"","sources":["../src/frontend.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,CAAC,MAAM,CAAC;IACd,IAAI,sBAAsB,EAAE,MAAM,CAAA;CAClC;AAED,MAAM,MAAM,MAAM,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAA;AAErD,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA2C3B,CAAA;AAuDF,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAIvB,CAAA;AAED,eAAO,IAAI,MAAM,EAAE,MAAiD,CAAA;AAEpE,eAAO,MAAM,SAAS,GAAI,GAAG,SAAS,MAAM,MAAM,EACjD,KAAK,GAAG,EACR,OAAO,MAAM,CAAC,GAAG,CAAC,SAGlB,CAAA"}
@@ -1,80 +1,92 @@
1
+ function _type_of(obj) {
2
+ "@swc/helpers - typeof";
3
+ return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
4
+ }
1
5
  /**
2
6
  * Remove React properties from the bundle when explicitly set via DO_NOT_REMOVE_REACT_PROPERTIES
3
7
  * or when the app is in production mode.
4
- */
5
- const reactRemoveProperties = typeof process.env.DO_NOT_REMOVE_REACT_PROPERTIES === 'string' &&
6
- typeof process.env.DO_NOT_REMOVE_REACT_PROPERTIES
7
- ? process.env.DO_NOT_REMOVE_REACT_PROPERTIES.toLowerCase() === 'true'
8
- : process.env.APP_ENV === 'production';
9
- export const baseNextConfig = {
8
+ */ var reactRemoveProperties = typeof process.env.DO_NOT_REMOVE_REACT_PROPERTIES === 'string' && _type_of(process.env.DO_NOT_REMOVE_REACT_PROPERTIES) ? process.env.DO_NOT_REMOVE_REACT_PROPERTIES.toLowerCase() === 'true' : process.env.APP_ENV === 'production';
9
+ export var baseNextConfig = {
10
10
  i18n: {
11
- locales: ['en', 'ms'],
12
- defaultLocale: 'en',
11
+ locales: [
12
+ 'en',
13
+ 'ms'
14
+ ],
15
+ defaultLocale: 'en'
13
16
  },
14
17
  env: {},
15
18
  reactStrictMode: true,
16
19
  images: {
17
- deviceSizes: [640, 750, 1200, 1920],
18
- minimumCacheTTL: 31536000, // 1 year
20
+ deviceSizes: [
21
+ 640,
22
+ 750,
23
+ 1200,
24
+ 1920
25
+ ],
26
+ minimumCacheTTL: 31536000,
19
27
  remotePatterns: [
20
28
  {
21
29
  protocol: 'https',
22
- hostname: 'driveflux.com',
30
+ hostname: 'driveflux.com'
23
31
  },
24
32
  {
25
33
  protocol: 'https',
26
- hostname: 'dev-flux-site-files.s3.ap-southeast-1.amazonaws.com',
34
+ hostname: 'dev-flux-site-files.s3.ap-southeast-1.amazonaws.com'
27
35
  },
28
36
  {
29
37
  protocol: 'https',
30
- hostname: 'flux-site-files.s3.ap-southeast-1.amazonaws.com',
38
+ hostname: 'flux-site-files.s3.ap-southeast-1.amazonaws.com'
31
39
  },
32
40
  {
33
41
  protocol: 'https',
34
- hostname: 's3.ap-southeast-1.amazonaws.com',
42
+ hostname: 's3.ap-southeast-1.amazonaws.com'
35
43
  },
36
44
  {
37
45
  protocol: 'https',
38
- hostname: 'vercel.app',
46
+ hostname: 'vercel.app'
39
47
  },
40
48
  {
41
49
  protocol: 'https',
42
- hostname: 'media.graphcms.com',
50
+ hostname: 'media.graphcms.com'
43
51
  },
44
52
  {
45
53
  protocol: 'https',
46
- hostname: 'media.graphassets.com',
54
+ hostname: 'media.graphassets.com'
47
55
  },
48
56
  {
49
57
  protocol: 'https',
50
- hostname: 'www.notion.so',
58
+ hostname: 'www.notion.so'
51
59
  },
52
60
  // This is for notion images
53
61
  {
54
62
  protocol: 'https',
55
- hostname: 'prod-files-secure.s3.us-west-2.amazonaws.com',
56
- },
57
- ],
63
+ hostname: 'prod-files-secure.s3.us-west-2.amazonaws.com'
64
+ }
65
+ ]
58
66
  },
59
67
  experimental: {
60
68
  esmExternals: true,
61
- swcPlugins: [['@lingui/swc-plugin', {}]],
69
+ swcPlugins: [
70
+ [
71
+ '@lingui/swc-plugin',
72
+ {}
73
+ ]
74
+ ]
62
75
  },
63
- transpilePackages: ['@driveflux/dump'],
76
+ transpilePackages: [
77
+ '@driveflux/dump'
78
+ ],
64
79
  eslint: {
65
- ignoreDuringBuilds: process.env.NODE_ENV === 'production',
80
+ ignoreDuringBuilds: process.env.NODE_ENV === 'production'
66
81
  },
67
82
  compiler: {
68
- reactRemoveProperties,
69
- removeConsole: process.env.FORCE_LOGGING_IN_PROD
70
- ? true
71
- : process.env.APP_ENV === 'production'
72
- ? {
73
- exclude: ['error'],
74
- }
75
- : false,
83
+ reactRemoveProperties: reactRemoveProperties,
84
+ removeConsole: process.env.FORCE_LOGGING_IN_PROD ? true : process.env.APP_ENV === 'production' ? {
85
+ exclude: [
86
+ 'error'
87
+ ]
88
+ } : false
76
89
  },
77
90
  swcMinify: true,
78
- poweredByHeader: false,
91
+ poweredByHeader: false
79
92
  };
80
- //# sourceMappingURL=next.config.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@driveflux/config",
3
- "version": "1.8.1",
3
+ "version": "1.8.2",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  "./backend": {
@@ -20,7 +20,7 @@
20
20
  "dist"
21
21
  ],
22
22
  "dependencies": {
23
- "@driveflux/singleton": "1.6.0",
23
+ "@driveflux/singleton": "1.6.1",
24
24
  "zod": "^3.23.8"
25
25
  },
26
26
  "devDependencies": {