@brandlab-digital/site-next 1.2.0 → 1.3.1
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/contact/attachments-client.d.ts.map +1 -1
- package/dist/contact/attachments-client.js +52 -36
- package/dist/contact/attachments-client.js.map +1 -1
- package/dist/contact/client.d.ts +2 -0
- package/dist/contact/client.d.ts.map +1 -1
- package/dist/contact/client.js +16 -1
- package/dist/contact/client.js.map +1 -1
- package/dist/contact/image-sanitizer.d.ts +1 -0
- package/dist/contact/image-sanitizer.d.ts.map +1 -1
- package/dist/contact/image-sanitizer.js +24 -3
- package/dist/contact/image-sanitizer.js.map +1 -1
- package/dist/contact/index.d.ts +1 -1
- package/dist/contact/index.d.ts.map +1 -1
- package/dist/contact/index.js +1 -1
- package/dist/contact/index.js.map +1 -1
- package/dist/contact/pdf-sanitizer.d.ts.map +1 -1
- package/dist/contact/pdf-sanitizer.js +3 -0
- package/dist/contact/pdf-sanitizer.js.map +1 -1
- package/dist/contact/server.d.ts.map +1 -1
- package/dist/contact/server.js +5 -38
- package/dist/contact/server.js.map +1 -1
- package/dist/google-reviews-client.d.ts +7 -0
- package/dist/google-reviews-client.d.ts.map +1 -1
- package/dist/google-reviews-client.js +87 -24
- package/dist/google-reviews-client.js.map +1 -1
- package/dist/image-runtime.d.ts +2 -0
- package/dist/image-runtime.d.ts.map +1 -0
- package/dist/image-runtime.js +22 -0
- package/dist/image-runtime.js.map +1 -0
- package/package.json +10 -3
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { createRequire } from 'node:module';
|
|
2
|
+
import sharp from 'sharp';
|
|
3
|
+
// Next lazily unblocks HEIF when its optimizer first acquires Sharp. Initialise
|
|
4
|
+
// that cache before applying our exclusion, without patching either library.
|
|
5
|
+
// This private Next entrypoint is covered by the exact runtime pin and packed
|
|
6
|
+
// startup-order tests. Remove this bridge when maintained native fixes ship.
|
|
7
|
+
const require = createRequire(import.meta.url);
|
|
8
|
+
let nextInstalled = false;
|
|
9
|
+
try {
|
|
10
|
+
require.resolve('next/package.json');
|
|
11
|
+
nextInstalled = true;
|
|
12
|
+
}
|
|
13
|
+
catch (error) {
|
|
14
|
+
if (error.code !== 'MODULE_NOT_FOUND')
|
|
15
|
+
throw error;
|
|
16
|
+
}
|
|
17
|
+
if (nextInstalled) {
|
|
18
|
+
const optimizer = require('next/dist/server/image-optimizer.js');
|
|
19
|
+
optimizer.getSharp();
|
|
20
|
+
}
|
|
21
|
+
sharp.block({ operation: ['VipsForeignLoadHeif'] });
|
|
22
|
+
//# sourceMappingURL=image-runtime.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"image-runtime.js","sourceRoot":"","sources":["../src/image-runtime.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAC3C,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,gFAAgF;AAChF,6EAA6E;AAC7E,8EAA8E;AAC9E,6EAA6E;AAC7E,MAAM,OAAO,GAAG,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAA;AAC9C,IAAI,aAAa,GAAG,KAAK,CAAA;AACzB,IAAI,CAAC;IACH,OAAO,CAAC,OAAO,CAAC,mBAAmB,CAAC,CAAA;IACpC,aAAa,GAAG,IAAI,CAAA;AACtB,CAAC;AAAC,OAAO,KAAK,EAAE,CAAC;IACf,IAAK,KAA+B,CAAC,IAAI,KAAK,kBAAkB;QAAE,MAAM,KAAK,CAAA;AAC/E,CAAC;AACD,IAAI,aAAa,EAAE,CAAC;IAClB,MAAM,SAAS,GAAG,OAAO,CAAC,qCAAqC,CAE9D,CAAA;IACD,SAAS,CAAC,QAAQ,EAAE,CAAA;AACtB,CAAC;AACD,KAAK,CAAC,KAAK,CAAC,EAAE,SAAS,EAAE,CAAC,qBAAqB,CAAC,EAAE,CAAC,CAAA","sourcesContent":["import { createRequire } from 'node:module'\nimport sharp from 'sharp'\n\n// Next lazily unblocks HEIF when its optimizer first acquires Sharp. Initialise\n// that cache before applying our exclusion, without patching either library.\n// This private Next entrypoint is covered by the exact runtime pin and packed\n// startup-order tests. Remove this bridge when maintained native fixes ship.\nconst require = createRequire(import.meta.url)\nlet nextInstalled = false\ntry {\n require.resolve('next/package.json')\n nextInstalled = true\n} catch (error) {\n if ((error as NodeJS.ErrnoException).code !== 'MODULE_NOT_FOUND') throw error\n}\nif (nextInstalled) {\n const optimizer = require('next/dist/server/image-optimizer.js') as {\n getSharp: () => typeof sharp\n }\n optimizer.getSharp()\n}\nsharp.block({ operation: ['VipsForeignLoadHeif'] })\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@brandlab-digital/site-next",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.3.1",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/RomieDandan/brandlab.git",
|
|
@@ -8,7 +8,9 @@
|
|
|
8
8
|
},
|
|
9
9
|
"private": false,
|
|
10
10
|
"type": "module",
|
|
11
|
-
"sideEffects":
|
|
11
|
+
"sideEffects": [
|
|
12
|
+
"./dist/image-runtime.js"
|
|
13
|
+
],
|
|
12
14
|
"files": [
|
|
13
15
|
"dist"
|
|
14
16
|
],
|
|
@@ -18,7 +20,7 @@
|
|
|
18
20
|
"typecheck": "tsc --noEmit -p tsconfig.json"
|
|
19
21
|
},
|
|
20
22
|
"dependencies": {
|
|
21
|
-
"@brandlab-digital/site-core": "1.
|
|
23
|
+
"@brandlab-digital/site-core": "1.3.1",
|
|
22
24
|
"browser-image-compression": "2.0.2",
|
|
23
25
|
"pdf-lib": "1.17.1",
|
|
24
26
|
"server-only": "0.0.1",
|
|
@@ -121,6 +123,11 @@
|
|
|
121
123
|
"./google-reviews/ui": {
|
|
122
124
|
"types": "./dist/google-reviews-ui.d.ts",
|
|
123
125
|
"import": "./dist/google-reviews-ui.js"
|
|
126
|
+
},
|
|
127
|
+
"./image-runtime": {
|
|
128
|
+
"types": "./dist/image-runtime.d.ts",
|
|
129
|
+
"import": "./dist/image-runtime.js",
|
|
130
|
+
"require": "./dist/image-runtime.js"
|
|
124
131
|
}
|
|
125
132
|
}
|
|
126
133
|
}
|