@things-factory/board-service 7.0.43 → 7.0.48

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@things-factory/board-service",
3
- "version": "7.0.43",
3
+ "version": "7.0.48",
4
4
  "main": "dist-server/index.js",
5
5
  "things-factory": true,
6
6
  "author": "",
@@ -23,11 +23,11 @@
23
23
  "migration:create": "node ../../node_modules/typeorm/cli.js migration:create -d ./server/migrations"
24
24
  },
25
25
  "dependencies": {
26
- "@things-factory/auth-base": "^7.0.43",
26
+ "@things-factory/auth-base": "^7.0.48",
27
27
  "@things-factory/env": "^7.0.33",
28
- "@things-factory/fav-base": "^7.0.43",
29
- "@things-factory/font-base": "^7.0.43",
30
- "@things-factory/integration-base": "^7.0.43",
28
+ "@things-factory/fav-base": "^7.0.48",
29
+ "@things-factory/font-base": "^7.0.48",
30
+ "@things-factory/integration-base": "^7.0.48",
31
31
  "@things-factory/operato-license-checker": "^4.0.4",
32
32
  "content-disposition": "^0.5.3",
33
33
  "generic-pool": "^3.8.2"
@@ -36,5 +36,5 @@
36
36
  "@thiagoelg/node-printer": "0.6.2",
37
37
  "puppeteer": "22.12.1"
38
38
  },
39
- "gitHead": "669cf13dccf67bd45260d8f69d919bc1d72c1ce0"
39
+ "gitHead": "516772ebee08900790bcc43477419d60adcb4dcd"
40
40
  }
@@ -5,7 +5,12 @@ const ejs = require('ejs')
5
5
  export const pdfToImage = async ({ pdfPath, fileName, extension = 'png', quality = 2, defaultViewport = null }) => {
6
6
  const browser = await puppeteer.launch({
7
7
  headless: true,
8
- args: ['--disable-web-security', '--disable-features=IsolateOrigins', '--disable-site-isolation-trials', '--no-sandbox'],
8
+ args: [
9
+ '--disable-web-security',
10
+ '--disable-features=IsolateOrigins',
11
+ '--disable-site-isolation-trials',
12
+ '--no-sandbox'
13
+ ],
9
14
  defaultViewport
10
15
  })
11
16
 
@@ -17,7 +22,7 @@ export const pdfToImage = async ({ pdfPath, fileName, extension = 'png', quality
17
22
 
18
23
  const page = await browser.newPage()
19
24
  const html = await ejs.render(getPdfHtmlTemplate(), { data: { pdfUrl, quality } })
20
-
25
+
21
26
  // 페이지 로딩시 까지 기다리고 스크린샷
22
27
  await page.setContent(html, { waitUntil: 'networkidle0' })
23
28
  await page.waitForNetworkIdle()
@@ -73,7 +78,7 @@ function getPdfHtmlTemplate() {
73
78
  <body>
74
79
  <canvas id="page"></canvas>
75
80
  <script src="https://unpkg.com/pdfjs-dist@2.0.489/build/pdf.min.js"></script>
76
- <script>
81
+ <script nonce="<%= nonce %>">
77
82
  ;(async () => {
78
83
  const pdf = await pdfjsLib.getDocument('<%= data.pdfUrl %>')
79
84
  const page = await pdf.getPage(1)
@@ -37,7 +37,7 @@
37
37
  <body>
38
38
  <div id="scene"></div>
39
39
 
40
- <script>
40
+ <script nonce="<%= nonce %>">
41
41
  const model = <%- JSON.stringify(model) %>;
42
42
  const { fontStyles, fonts } = model
43
43
 
@@ -61,7 +61,7 @@
61
61
  }
62
62
  </script>
63
63
 
64
- <script type="module">
64
+ <script type="module" nonce="<%= nonce %>">
65
65
  const data = <%- JSON.stringify(data) %>;
66
66
  const id = <%- JSON.stringify(id) %>;
67
67
  const { ReferenceMap, create, error } = scene
@@ -1,4 +1,4 @@
1
- <!DOCTYPE html>
1
+ <!doctype html>
2
2
  <html lang="en">
3
3
  <head>
4
4
  <meta charset="utf-8" />
@@ -37,7 +37,7 @@
37
37
  <body>
38
38
  <div id="scene"></div>
39
39
 
40
- <script>
40
+ <script nonce="<%= nonce %>">
41
41
  const model = <%- JSON.stringify(model) %>;
42
42
  const { boards, fontStyles, fonts } = model
43
43
 
@@ -61,7 +61,7 @@
61
61
  }
62
62
  </script>
63
63
 
64
- <script type="module">
64
+ <script type="module" nonce="<%= nonce %>">
65
65
  const data = <%- JSON.stringify(data) %>;
66
66
  const id = <%- JSON.stringify(id) %>;
67
67
 
@@ -1,4 +1,4 @@
1
- <!DOCTYPE html>
1
+ <!doctype html>
2
2
  <html lang="en">
3
3
  <head>
4
4
  <meta charset="utf-8" />
@@ -29,7 +29,7 @@
29
29
  <div id="scene"></div>
30
30
 
31
31
  <script src="https://ajax.googleapis.com/ajax/libs/webfont/1.6.26/webfont.js"></script>
32
- <script>
32
+ <script nonce="<%= nonce %>">
33
33
  const model = <%- JSON.stringify(model) %>;
34
34
  const { fontStyles, fonts } = model
35
35
 
@@ -55,7 +55,7 @@
55
55
  <script src="/node_modules/@hatiolab/things-scene/things-scene-min.js"></script>
56
56
  <script src="/headless-scene-components.js"></script>
57
57
 
58
- <script>
58
+ <script nonce="<%= nonce %>">
59
59
  const data = <%- JSON.stringify(data) %>;
60
60
 
61
61
  const el = document.getElementById('scene')
@@ -1,4 +1,4 @@
1
- <!DOCTYPE html>
1
+ <!doctype html>
2
2
  <html lang="en">
3
3
  <head>
4
4
  <meta charset="utf-8" />
@@ -25,7 +25,7 @@
25
25
  <div id="scene-container"></div>
26
26
 
27
27
  <script src="https://ajax.googleapis.com/ajax/libs/webfont/1.6.26/webfont.js"></script>
28
- <script>
28
+ <script nonce="<%= nonce %>">
29
29
  var model = <%- JSON.stringify(model) %>;
30
30
  const { fontStyles, fonts } = model
31
31
 
@@ -51,7 +51,7 @@
51
51
  <script src="/node_modules/@hatiolab/things-scene/things-scene-min.js"></script>
52
52
  <script src="/headless-scene-components.js"></script>
53
53
 
54
- <script>
54
+ <script nonce="<%= nonce %>">
55
55
  const sceneContainer = document.getElementById('scene-container')
56
56
 
57
57
  function createScene(model) {