@intlayer/core 5.7.6 → 5.7.8

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/README.md CHANGED
@@ -27,6 +27,9 @@
27
27
  <div>
28
28
  <br/>
29
29
  <p align="center">
30
+ <a href="https://discord.gg/528mBV4N" target="blank"><img align="center"
31
+ src="https://img.shields.io/badge/discord-5865F2.svg?style=for-the-badge&logo=discord&logoColor=white"
32
+ alt="Intlayer Discord" height="30"/></a>
30
33
  <a href="https://www.linkedin.com/company/intlayerorg" target="blank"><img align="center"
31
34
  src="https://img.shields.io/badge/linkedin-%231DA1F2.svg?style=for-the-badge&logo=linkedin&logoColor=white"
32
35
  alt="Intlayer LinkedIn" height="30"/></a>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@intlayer/core",
3
- "version": "5.7.6",
3
+ "version": "5.7.8",
4
4
  "private": false,
5
5
  "description": "Includes core Intlayer functions like translation, dictionary, and utility functions shared across multiple packages.",
6
6
  "keywords": [
@@ -75,9 +75,9 @@
75
75
  ],
76
76
  "dependencies": {
77
77
  "negotiator": "^1.0.0",
78
- "@intlayer/api": "5.7.6",
79
- "@intlayer/config": "5.7.6",
80
- "@intlayer/dictionaries-entry": "5.7.6"
78
+ "@intlayer/config": "5.7.8",
79
+ "@intlayer/api": "5.7.8",
80
+ "@intlayer/dictionaries-entry": "5.7.8"
81
81
  },
82
82
  "devDependencies": {
83
83
  "@types/negotiator": "^0.6.3",
@@ -92,15 +92,15 @@
92
92
  "typescript": "^5.8.3",
93
93
  "vitest": "^3.2.2",
94
94
  "@utils/eslint-config": "1.0.4",
95
- "@utils/ts-config-types": "1.0.4",
96
95
  "@utils/ts-config": "1.0.4",
96
+ "@utils/ts-config-types": "1.0.4",
97
97
  "@utils/tsup-config": "1.0.4"
98
98
  },
99
99
  "peerDependencies": {
100
- "@intlayer/api": "5.7.6",
101
- "@intlayer/config": "5.7.6",
102
- "@intlayer/dictionaries-entry": "5.7.6",
103
- "intlayer": "5.7.6"
100
+ "@intlayer/api": "5.7.8",
101
+ "@intlayer/dictionaries-entry": "5.7.8",
102
+ "@intlayer/config": "5.7.8",
103
+ "intlayer": "5.7.8"
104
104
  },
105
105
  "engines": {
106
106
  "node": ">=14.18"
@@ -1,35 +0,0 @@
1
- "use strict";
2
- var import_vitest = require("vitest");
3
- var import__ = require('../index.cjs');
4
- (0, import_vitest.describe)("getMarkdownMetadata", () => {
5
- const markdown = [
6
- "---",
7
- "title: Mock Title",
8
- "description: Mock Description",
9
- "author: Mock Author",
10
- "date: 2024-01-01",
11
- "tags:",
12
- " - tag1",
13
- " - tag2",
14
- " - tag3",
15
- "---",
16
- "# Mock Heading",
17
- "This is a mock paragraph with some sample text.",
18
- "Here is another mock paragraph.",
19
- "## Mock Section",
20
- "Some more mock content goes here.",
21
- "### Mock Subsection",
22
- "Final mock paragraph with test content."
23
- ].join("\n");
24
- (0, import_vitest.it)("should return the metadata from the markdown file", () => {
25
- const metadata = (0, import__.getMarkdownMetadata)(markdown);
26
- (0, import_vitest.expect)(metadata).toEqual({
27
- title: "Mock Title",
28
- description: "Mock Description",
29
- author: "Mock Author",
30
- date: "2024-01-01",
31
- tags: ["tag1", "tag2", "tag3"]
32
- });
33
- });
34
- });
35
- //# sourceMappingURL=getMarkdownMetadata.test.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../../src/transpiler/markdown/getMarkdownMetadata.test.ts"],"sourcesContent":["import { describe, expect, it } from 'vitest';\nimport { getMarkdownMetadata } from '..';\n\ndescribe('getMarkdownMetadata', () => {\n const markdown = [\n '---',\n 'title: Mock Title',\n 'description: Mock Description',\n 'author: Mock Author',\n 'date: 2024-01-01',\n 'tags:',\n ' - tag1',\n ' - tag2',\n ' - tag3',\n '---',\n '# Mock Heading',\n 'This is a mock paragraph with some sample text.',\n 'Here is another mock paragraph.',\n '## Mock Section',\n 'Some more mock content goes here.',\n '### Mock Subsection',\n 'Final mock paragraph with test content.',\n ].join('\\n');\n\n it('should return the metadata from the markdown file', () => {\n const metadata = getMarkdownMetadata(markdown);\n expect(metadata).toEqual({\n title: 'Mock Title',\n description: 'Mock Description',\n author: 'Mock Author',\n date: '2024-01-01',\n tags: ['tag1', 'tag2', 'tag3'],\n });\n });\n});\n"],"mappings":";AAAA,oBAAqC;AACrC,eAAoC;AAAA,IAEpC,wBAAS,uBAAuB,MAAM;AACpC,QAAM,WAAW;AAAA,IACf;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACF,EAAE,KAAK,IAAI;AAEX,wBAAG,qDAAqD,MAAM;AAC5D,UAAM,eAAW,8BAAoB,QAAQ;AAC7C,8BAAO,QAAQ,EAAE,QAAQ;AAAA,MACvB,OAAO;AAAA,MACP,aAAa;AAAA,MACb,QAAQ;AAAA,MACR,MAAM;AAAA,MACN,MAAM,CAAC,QAAQ,QAAQ,MAAM;AAAA,IAC/B,CAAC;AAAA,EACH,CAAC;AACH,CAAC;","names":[]}
@@ -1,34 +0,0 @@
1
- import { describe, expect, it } from "vitest";
2
- import { getMarkdownMetadata } from "../index.mjs";
3
- describe("getMarkdownMetadata", () => {
4
- const markdown = [
5
- "---",
6
- "title: Mock Title",
7
- "description: Mock Description",
8
- "author: Mock Author",
9
- "date: 2024-01-01",
10
- "tags:",
11
- " - tag1",
12
- " - tag2",
13
- " - tag3",
14
- "---",
15
- "# Mock Heading",
16
- "This is a mock paragraph with some sample text.",
17
- "Here is another mock paragraph.",
18
- "## Mock Section",
19
- "Some more mock content goes here.",
20
- "### Mock Subsection",
21
- "Final mock paragraph with test content."
22
- ].join("\n");
23
- it("should return the metadata from the markdown file", () => {
24
- const metadata = getMarkdownMetadata(markdown);
25
- expect(metadata).toEqual({
26
- title: "Mock Title",
27
- description: "Mock Description",
28
- author: "Mock Author",
29
- date: "2024-01-01",
30
- tags: ["tag1", "tag2", "tag3"]
31
- });
32
- });
33
- });
34
- //# sourceMappingURL=getMarkdownMetadata.test.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../../src/transpiler/markdown/getMarkdownMetadata.test.ts"],"sourcesContent":["import { describe, expect, it } from 'vitest';\nimport { getMarkdownMetadata } from '..';\n\ndescribe('getMarkdownMetadata', () => {\n const markdown = [\n '---',\n 'title: Mock Title',\n 'description: Mock Description',\n 'author: Mock Author',\n 'date: 2024-01-01',\n 'tags:',\n ' - tag1',\n ' - tag2',\n ' - tag3',\n '---',\n '# Mock Heading',\n 'This is a mock paragraph with some sample text.',\n 'Here is another mock paragraph.',\n '## Mock Section',\n 'Some more mock content goes here.',\n '### Mock Subsection',\n 'Final mock paragraph with test content.',\n ].join('\\n');\n\n it('should return the metadata from the markdown file', () => {\n const metadata = getMarkdownMetadata(markdown);\n expect(metadata).toEqual({\n title: 'Mock Title',\n description: 'Mock Description',\n author: 'Mock Author',\n date: '2024-01-01',\n tags: ['tag1', 'tag2', 'tag3'],\n });\n });\n});\n"],"mappings":"AAAA,SAAS,UAAU,QAAQ,UAAU;AACrC,SAAS,2BAA2B;AAEpC,SAAS,uBAAuB,MAAM;AACpC,QAAM,WAAW;AAAA,IACf;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACF,EAAE,KAAK,IAAI;AAEX,KAAG,qDAAqD,MAAM;AAC5D,UAAM,WAAW,oBAAoB,QAAQ;AAC7C,WAAO,QAAQ,EAAE,QAAQ;AAAA,MACvB,OAAO;AAAA,MACP,aAAa;AAAA,MACb,QAAQ;AAAA,MACR,MAAM;AAAA,MACN,MAAM,CAAC,QAAQ,QAAQ,MAAM;AAAA,IAC/B,CAAC;AAAA,EACH,CAAC;AACH,CAAC;","names":[]}