aprog 1.7.1 → 1.7.3

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": "aprog",
3
- "version": "1.7.1",
3
+ "version": "1.7.3",
4
4
  "description": "Допоміжна бібліотека js",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -23,5 +23,8 @@
23
23
  "devDependencies": {
24
24
  "jest": "^29.7.0"
25
25
  },
26
- "type": "module"
26
+ "type": "module",
27
+ "dependencies": {
28
+ "crypto-js": "^4.2.0"
29
+ }
27
30
  }
package/src/aprog.js CHANGED
@@ -1350,14 +1350,10 @@ export const attachCustomTitle = (element, text) => {
1350
1350
 
1351
1351
  export const parseCustomMarkup = (text) => {
1352
1352
  text = text.replace(/```([\s\S]*?)```/g, (match, p1) => {
1353
- return `<pre style="gemini"><code style="font-family: Monospaced, serif; font-style: italic; font-weight: 100; letter-spacing: 2px;">${p1.trim()}</code></pre>`;
1353
+ return `<pre style="width: max-content; padding: 2px 8px; color: #333333; background-color: #fdfdfd; border: 0.03125rem solid #dddddd; border-radius: 4px;"><code style="font-family: Monospaced, serif; font-style: italic; font-weight: 100; letter-spacing: 2px;">${p1.trim()}</code></pre>`;
1354
1354
  });
1355
-
1356
1355
  text = text.replace(/\*\*(.*?)\*\*/g, '<strong style="font-weight: 700;">$1</strong>');
1357
-
1358
1356
  text = text.replace(/`([^`]+?)`/g, '<code style="font-family: Monospaced, serif; font-style: italic; font-weight: 100; letter-spacing: 2px;">$1</code>');
1359
-
1360
1357
  text = text.replace(/^\* (.+)$/gm, '<li style="font-family: Times New Roman, serif; font-weight: 400;">$1</li>');
1361
-
1362
1358
  return `<div style="font-family: Times New Roman, serif; font-weight: 400;">${text}</div>`;
1363
1359
  }
@@ -1,5 +1,5 @@
1
- import AES from "crypto-js/aes";
2
- import Utf8 from "crypto-js/enc-utf8";
1
+ import AES from 'crypto-js/aes.js';
2
+ import Utf8 from 'crypto-js/enc-utf8.js';
3
3
 
4
4
  const DB_NAME = 'secureDB';
5
5
  const STORE_NAME = 'secureStore';