@goldstack/utils-docs 0.3.36 → 0.3.39

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": "@goldstack/utils-docs",
3
- "version": "0.3.36",
3
+ "version": "0.3.39",
4
4
  "description": "Utilities for working with Markdown documentation",
5
5
  "keywords": [
6
6
  "goldstack",
@@ -40,7 +40,7 @@
40
40
  "version:apply:force": "yarn version $@ && yarn version apply"
41
41
  },
42
42
  "dependencies": {
43
- "@goldstack/utils-sh": "0.4.30",
43
+ "@goldstack/utils-sh": "0.4.33",
44
44
  "@mapbox/rehype-prism": "0.3.1",
45
45
  "github-slugger": "1.2.0",
46
46
  "gray-matter": "^4.0.2",
@@ -57,13 +57,13 @@
57
57
  "unist-util-visit": "2.0.0"
58
58
  },
59
59
  "devDependencies": {
60
- "@goldstack/utils-git": "0.1.33",
60
+ "@goldstack/utils-git": "0.1.36",
61
61
  "@types/jest": "^27.5.1",
62
62
  "@types/node": "^17.0.33",
63
63
  "jest": "^28.1.0",
64
64
  "rimraf": "^3.0.2",
65
65
  "ts-jest": "^28.0.2",
66
- "typescript": "^4.6.4"
66
+ "typescript": "^4.7.4"
67
67
  },
68
68
  "publishConfig": {
69
69
  "main": "dist/src/utilsDocs.js"
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=markdownToHtml.spec.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"markdownToHtml.spec.d.ts","sourceRoot":"","sources":["../../src/markdownToHtml.spec.ts"],"names":[],"mappings":""}
@@ -1,18 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const markdownToHtml_1 = require("./markdownToHtml");
4
- const utils_sh_1 = require("@goldstack/utils-sh");
5
- describe('markdownToHtml', () => {
6
- it('Should render documentation markdown to html', async () => {
7
- const result = await (0, markdownToHtml_1.markdownToHtml)(__dirname + '/markdown/configure.md', {}, (0, utils_sh_1.read)(__dirname + '/markdown/configure.md'));
8
- expect(result).toContain('<p>');
9
- expect(result).toContain('<a');
10
- });
11
- it('Should render documentation with embedded documents', async () => {
12
- const file = __dirname + '/markdown/template-s3.md';
13
- const result = await (0, markdownToHtml_1.markdownToHtml)(file, {}, (0, utils_sh_1.read)(file));
14
- expect(result).toContain('<p>');
15
- expect(result).toContain('<a');
16
- });
17
- });
18
- //# sourceMappingURL=markdownToHtml.spec.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"markdownToHtml.spec.js","sourceRoot":"","sources":["../../src/markdownToHtml.spec.ts"],"names":[],"mappings":";;AAAA,qDAAkD;AAClD,kDAA2C;AAE3C,QAAQ,CAAC,gBAAgB,EAAE,GAAG,EAAE;IAC9B,EAAE,CAAC,8CAA8C,EAAE,KAAK,IAAI,EAAE;QAC5D,MAAM,MAAM,GAAG,MAAM,IAAA,+BAAc,EACjC,SAAS,GAAG,wBAAwB,EACpC,EAAE,EACF,IAAA,eAAI,EAAC,SAAS,GAAG,wBAAwB,CAAC,CAC3C,CAAC;QACF,MAAM,CAAC,MAAM,CAAC,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;QAChC,MAAM,CAAC,MAAM,CAAC,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;IACjC,CAAC,CAAC,CAAC;IACH,EAAE,CAAC,qDAAqD,EAAE,KAAK,IAAI,EAAE;QACnE,MAAM,IAAI,GAAG,SAAS,GAAG,0BAA0B,CAAC;QACpD,MAAM,MAAM,GAAG,MAAM,IAAA,+BAAc,EAAC,IAAI,EAAE,EAAE,EAAE,IAAA,eAAI,EAAC,IAAI,CAAC,CAAC,CAAC;QAC1D,MAAM,CAAC,MAAM,CAAC,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;QAChC,MAAM,CAAC,MAAM,CAAC,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;IACjC,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=resolveMarkdown.spec.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"resolveMarkdown.spec.d.ts","sourceRoot":"","sources":["../../src/resolveMarkdown.spec.ts"],"names":[],"mappings":""}
@@ -1,16 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const resolveMarkdown_1 = require("./resolveMarkdown");
4
- describe('markdownToMarkdown', () => {
5
- it('Should render documentation markdown to markdown', async () => {
6
- const result = await (0, resolveMarkdown_1.resolveMarkdown)(__dirname + '/markdown/configure.md');
7
- expect(result).toContain('[AWS region]');
8
- });
9
- it('Should render documentation with embedded documents', async () => {
10
- const file = __dirname + '/markdown/template-s3.md';
11
- const result = await (0, resolveMarkdown_1.resolveMarkdown)(file);
12
- expect(result).toContain('[AWS region]');
13
- expect(result).toContain('s3 = connect()');
14
- });
15
- });
16
- //# sourceMappingURL=resolveMarkdown.spec.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"resolveMarkdown.spec.js","sourceRoot":"","sources":["../../src/resolveMarkdown.spec.ts"],"names":[],"mappings":";;AAAA,uDAAoD;AAEpD,QAAQ,CAAC,oBAAoB,EAAE,GAAG,EAAE;IAClC,EAAE,CAAC,kDAAkD,EAAE,KAAK,IAAI,EAAE;QAChE,MAAM,MAAM,GAAG,MAAM,IAAA,iCAAe,EAAC,SAAS,GAAG,wBAAwB,CAAC,CAAC;QAC3E,MAAM,CAAC,MAAM,CAAC,CAAC,SAAS,CAAC,cAAc,CAAC,CAAC;IAC3C,CAAC,CAAC,CAAC;IACH,EAAE,CAAC,qDAAqD,EAAE,KAAK,IAAI,EAAE;QACnE,MAAM,IAAI,GAAG,SAAS,GAAG,0BAA0B,CAAC;QACpD,MAAM,MAAM,GAAG,MAAM,IAAA,iCAAe,EAAC,IAAI,CAAC,CAAC;QAC3C,MAAM,CAAC,MAAM,CAAC,CAAC,SAAS,CAAC,cAAc,CAAC,CAAC;QACzC,MAAM,CAAC,MAAM,CAAC,CAAC,SAAS,CAAC,gBAAgB,CAAC,CAAC;IAC7C,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}