musora-content-services 1.0.7

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.
Files changed (67) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/README.md +39 -0
  3. package/docs/data/search.json +1 -0
  4. package/docs/fonts/Inconsolata-Regular.ttf +0 -0
  5. package/docs/fonts/OpenSans-Bold-webfont.eot +0 -0
  6. package/docs/fonts/OpenSans-Bold-webfont.svg +1830 -0
  7. package/docs/fonts/OpenSans-Bold-webfont.woff +0 -0
  8. package/docs/fonts/OpenSans-BoldItalic-webfont.eot +0 -0
  9. package/docs/fonts/OpenSans-BoldItalic-webfont.svg +1830 -0
  10. package/docs/fonts/OpenSans-BoldItalic-webfont.woff +0 -0
  11. package/docs/fonts/OpenSans-Italic-webfont.eot +0 -0
  12. package/docs/fonts/OpenSans-Italic-webfont.svg +1830 -0
  13. package/docs/fonts/OpenSans-Italic-webfont.woff +0 -0
  14. package/docs/fonts/OpenSans-Light-webfont.eot +0 -0
  15. package/docs/fonts/OpenSans-Light-webfont.svg +1831 -0
  16. package/docs/fonts/OpenSans-Light-webfont.woff +0 -0
  17. package/docs/fonts/OpenSans-LightItalic-webfont.eot +0 -0
  18. package/docs/fonts/OpenSans-LightItalic-webfont.svg +1835 -0
  19. package/docs/fonts/OpenSans-LightItalic-webfont.woff +0 -0
  20. package/docs/fonts/OpenSans-Regular-webfont.eot +0 -0
  21. package/docs/fonts/OpenSans-Regular-webfont.svg +1831 -0
  22. package/docs/fonts/OpenSans-Regular-webfont.woff +0 -0
  23. package/docs/fonts/OpenSans-Regular.ttf +0 -0
  24. package/docs/fonts/OpenSans-Semibold-webfont.eot +0 -0
  25. package/docs/fonts/OpenSans-Semibold-webfont.svg +1830 -0
  26. package/docs/fonts/OpenSans-Semibold-webfont.ttf +0 -0
  27. package/docs/fonts/OpenSans-Semibold-webfont.woff +0 -0
  28. package/docs/fonts/OpenSans-SemiboldItalic-webfont.eot +0 -0
  29. package/docs/fonts/OpenSans-SemiboldItalic-webfont.svg +1830 -0
  30. package/docs/fonts/OpenSans-SemiboldItalic-webfont.ttf +0 -0
  31. package/docs/fonts/OpenSans-SemiboldItalic-webfont.woff +0 -0
  32. package/docs/fonts/WorkSans-Bold.ttf +0 -0
  33. package/docs/global.html +4773 -0
  34. package/docs/index.html +93 -0
  35. package/docs/index.js.html +766 -0
  36. package/docs/scripts/core.js +726 -0
  37. package/docs/scripts/core.min.js +23 -0
  38. package/docs/scripts/linenumber.js +25 -0
  39. package/docs/scripts/prettify/Apache-License-2.0.txt +202 -0
  40. package/docs/scripts/prettify/lang-css.js +2 -0
  41. package/docs/scripts/prettify/prettify.js +28 -0
  42. package/docs/scripts/resize.js +90 -0
  43. package/docs/scripts/search.js +265 -0
  44. package/docs/scripts/search.min.js +6 -0
  45. package/docs/scripts/third-party/Apache-License-2.0.txt +202 -0
  46. package/docs/scripts/third-party/fuse.js +9 -0
  47. package/docs/scripts/third-party/hljs-line-num-original.js +369 -0
  48. package/docs/scripts/third-party/hljs-line-num.js +1 -0
  49. package/docs/scripts/third-party/hljs-original.js +5171 -0
  50. package/docs/scripts/third-party/hljs.js +1 -0
  51. package/docs/scripts/third-party/popper.js +5 -0
  52. package/docs/scripts/third-party/tippy.js +1 -0
  53. package/docs/scripts/third-party/tocbot.js +672 -0
  54. package/docs/scripts/third-party/tocbot.min.js +1 -0
  55. package/docs/styles/clean-jsdoc-theme-base.css +1159 -0
  56. package/docs/styles/clean-jsdoc-theme-dark.css +412 -0
  57. package/docs/styles/clean-jsdoc-theme-light.css +482 -0
  58. package/docs/styles/clean-jsdoc-theme-scrollbar.css +30 -0
  59. package/docs/styles/clean-jsdoc-theme-without-scrollbar.min.css +1 -0
  60. package/docs/styles/clean-jsdoc-theme.min.css +1 -0
  61. package/docs/styles/jsdoc-default.css +692 -0
  62. package/docs/styles/prettify-jsdoc.css +111 -0
  63. package/docs/styles/prettify-tomorrow.css +132 -0
  64. package/jsdoc.json +13 -0
  65. package/package.json +27 -0
  66. package/publish.sh +21 -0
  67. package/src/index.js +758 -0
@@ -0,0 +1,111 @@
1
+ /* JSDoc prettify.js theme */
2
+
3
+ /* plain text */
4
+ .pln {
5
+ color: #000000;
6
+ font-weight: normal;
7
+ font-style: normal;
8
+ }
9
+
10
+ /* string content */
11
+ .str {
12
+ color: hsl(104, 100%, 24%);
13
+ font-weight: normal;
14
+ font-style: normal;
15
+ }
16
+
17
+ /* a keyword */
18
+ .kwd {
19
+ color: #000000;
20
+ font-weight: bold;
21
+ font-style: normal;
22
+ }
23
+
24
+ /* a comment */
25
+ .com {
26
+ font-weight: normal;
27
+ font-style: italic;
28
+ }
29
+
30
+ /* a type name */
31
+ .typ {
32
+ color: #000000;
33
+ font-weight: normal;
34
+ font-style: normal;
35
+ }
36
+
37
+ /* a literal value */
38
+ .lit {
39
+ color: #006400;
40
+ font-weight: normal;
41
+ font-style: normal;
42
+ }
43
+
44
+ /* punctuation */
45
+ .pun {
46
+ color: #000000;
47
+ font-weight: bold;
48
+ font-style: normal;
49
+ }
50
+
51
+ /* lisp open bracket */
52
+ .opn {
53
+ color: #000000;
54
+ font-weight: bold;
55
+ font-style: normal;
56
+ }
57
+
58
+ /* lisp close bracket */
59
+ .clo {
60
+ color: #000000;
61
+ font-weight: bold;
62
+ font-style: normal;
63
+ }
64
+
65
+ /* a markup tag name */
66
+ .tag {
67
+ color: #006400;
68
+ font-weight: normal;
69
+ font-style: normal;
70
+ }
71
+
72
+ /* a markup attribute name */
73
+ .atn {
74
+ color: #006400;
75
+ font-weight: normal;
76
+ font-style: normal;
77
+ }
78
+
79
+ /* a markup attribute value */
80
+ .atv {
81
+ color: #006400;
82
+ font-weight: normal;
83
+ font-style: normal;
84
+ }
85
+
86
+ /* a declaration */
87
+ .dec {
88
+ color: #000000;
89
+ font-weight: bold;
90
+ font-style: normal;
91
+ }
92
+
93
+ /* a variable name */
94
+ .var {
95
+ color: #000000;
96
+ font-weight: normal;
97
+ font-style: normal;
98
+ }
99
+
100
+ /* a function name */
101
+ .fun {
102
+ color: #000000;
103
+ font-weight: bold;
104
+ font-style: normal;
105
+ }
106
+
107
+ /* Specify class=linenums on a pre to get line numbering */
108
+ ol.linenums {
109
+ margin-top: 0;
110
+ margin-bottom: 0;
111
+ }
@@ -0,0 +1,132 @@
1
+ /* Tomorrow Theme */
2
+ /* Original theme - https://github.com/chriskempson/tomorrow-theme */
3
+ /* Pretty printing styles. Used with prettify.js. */
4
+ /* SPAN elements with the classes below are added by prettyprint. */
5
+ /* plain text */
6
+ .pln {
7
+ color: #4d4d4c; }
8
+
9
+ @media screen {
10
+ /* string content */
11
+ .str {
12
+ color: hsl(104, 100%, 24%); }
13
+
14
+ /* a keyword */
15
+ .kwd {
16
+ color: hsl(240, 100%, 50%); }
17
+
18
+ /* a comment */
19
+ .com {
20
+ color: hsl(0, 0%, 60%); }
21
+
22
+ /* a type name */
23
+ .typ {
24
+ color: hsl(240, 100%, 32%); }
25
+
26
+ /* a literal value */
27
+ .lit {
28
+ color: hsl(240, 100%, 40%); }
29
+
30
+ /* punctuation */
31
+ .pun {
32
+ color: #000000; }
33
+
34
+ /* lisp open bracket */
35
+ .opn {
36
+ color: #000000; }
37
+
38
+ /* lisp close bracket */
39
+ .clo {
40
+ color: #000000; }
41
+
42
+ /* a markup tag name */
43
+ .tag {
44
+ color: #c82829; }
45
+
46
+ /* a markup attribute name */
47
+ .atn {
48
+ color: #f5871f; }
49
+
50
+ /* a markup attribute value */
51
+ .atv {
52
+ color: #3e999f; }
53
+
54
+ /* a declaration */
55
+ .dec {
56
+ color: #f5871f; }
57
+
58
+ /* a variable name */
59
+ .var {
60
+ color: #c82829; }
61
+
62
+ /* a function name */
63
+ .fun {
64
+ color: #4271ae; } }
65
+ /* Use higher contrast and text-weight for printable form. */
66
+ @media print, projection {
67
+ .str {
68
+ color: #060; }
69
+
70
+ .kwd {
71
+ color: #006;
72
+ font-weight: bold; }
73
+
74
+ .com {
75
+ color: #600;
76
+ font-style: italic; }
77
+
78
+ .typ {
79
+ color: #404;
80
+ font-weight: bold; }
81
+
82
+ .lit {
83
+ color: #044; }
84
+
85
+ .pun, .opn, .clo {
86
+ color: #440; }
87
+
88
+ .tag {
89
+ color: #006;
90
+ font-weight: bold; }
91
+
92
+ .atn {
93
+ color: #404; }
94
+
95
+ .atv {
96
+ color: #060; } }
97
+ /* Style */
98
+ /*
99
+ pre.prettyprint {
100
+ background: white;
101
+ font-family: Consolas, Monaco, 'Andale Mono', monospace;
102
+ font-size: 12px;
103
+ line-height: 1.5;
104
+ border: 1px solid #ccc;
105
+ padding: 10px; }
106
+ */
107
+
108
+ /* Specify class=linenums on a pre to get line numbering */
109
+ ol.linenums {
110
+ margin-top: 0;
111
+ margin-bottom: 0; }
112
+
113
+ /* IE indents via margin-left */
114
+ li.L0,
115
+ li.L1,
116
+ li.L2,
117
+ li.L3,
118
+ li.L4,
119
+ li.L5,
120
+ li.L6,
121
+ li.L7,
122
+ li.L8,
123
+ li.L9 {
124
+ /* */ }
125
+
126
+ /* Alternate shading for lines */
127
+ li.L1,
128
+ li.L3,
129
+ li.L5,
130
+ li.L7,
131
+ li.L9 {
132
+ /* */ }
package/jsdoc.json ADDED
@@ -0,0 +1,13 @@
1
+ {
2
+ "source": {
3
+ "include": ["src/index.js"],
4
+ "includePattern": ".js$",
5
+ "excludePattern": "(node_modules/|docs)"
6
+ },
7
+ "opts": {
8
+ "destination": "./docs",
9
+ "recurse": true,
10
+ "template": "node_modules/minami",
11
+ "readme": "./README.md"
12
+ }
13
+ }
package/package.json ADDED
@@ -0,0 +1,27 @@
1
+ {
2
+ "name": "musora-content-services",
3
+ "version": "1.0.7",
4
+ "description": "A package for Musoras content services ",
5
+ "main": "src/index.js",
6
+ "scripts": {
7
+ "release": "standard-version",
8
+ "doc": "jsdoc -c jsdoc.json --verbose",
9
+ "test": "echo \"Error: no test specified\" && exit 1"
10
+ },
11
+ "repository": {
12
+ "type": "git",
13
+ "url": "git+https://github.com/railroadmedia/musora-content-services.git"
14
+ },
15
+ "author": "Robert Willems",
16
+ "license": "ISC",
17
+ "bugs": {
18
+ "url": "https://github.com/railroadmedia/musora-content-services/issues"
19
+ },
20
+ "homepage": "https://github.com/railroadmedia/musora-content-services#readme",
21
+ "devDependencies": {
22
+ "jsdoc": "^4.0.3",
23
+ "minami": "^1.2.3",
24
+ "standard-version": "^9.5.0",
25
+ "taffydb": "^2.7.3"
26
+ }
27
+ }
package/publish.sh ADDED
@@ -0,0 +1,21 @@
1
+ #!/bin/bash
2
+
3
+ # Exit immediately if a command exits with a non-zero status.
4
+ set -e
5
+
6
+ # Check if there are uncommitted changes.
7
+ if ! git diff-index --quiet HEAD --; then
8
+ echo "You have uncommitted changes. Please commit or stash them before publishing."
9
+ exit 1
10
+ fi
11
+
12
+ # Run the release script
13
+ npm run release
14
+
15
+ # Push the changes and tags to the remote repository
16
+ git push --follow-tags origin main
17
+
18
+ # Publish the package to npm
19
+ npm publish
20
+
21
+ echo "Package published successfully."