fable 3.1.53 → 3.1.55

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/docs/index.html CHANGED
@@ -1,51 +1,39 @@
1
1
  <!doctype html>
2
2
  <html lang="en">
3
- <head>
4
- <meta charset="UTF-8" />
5
- <title>Fable Documentation</title>
6
- <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
7
- <meta name="description" content="Documentation for Fable - A service dependency injection, configuration, and logging library for Node.js and browsers" />
8
- <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0" />
9
- <meta name="keywords" content="fable, javascript, framework, dependency injection, services, node, browser" />
10
- <link rel="stylesheet" href="//cdn.jsdelivr.net/npm/docsify@4/lib/themes/vue.css" />
11
- <style>
12
- :root {
13
- --theme-color: #42b983;
14
- }
15
- </style>
16
- </head>
17
- <body>
18
- <div id="app"></div>
19
- <script>
20
- window.$docsify = {
21
- name: 'Fable',
22
- repo: 'https://github.com/stevenvelozo/fable',
23
- loadSidebar: '_sidebar.md',
24
- subMaxLevel: 3,
25
- auto2top: true,
26
- coverpage: 'cover.md',
27
- onlyCover: false,
28
- search: {
29
- placeholder: 'Search',
30
- noData: 'No results found',
31
- depth: 3
32
- },
33
- copyCode: {
34
- buttonText: 'Copy',
35
- successText: 'Copied'
36
- }
37
- };
38
- </script>
39
- <!-- Docsify v4 -->
40
- <script src="//cdn.jsdelivr.net/npm/docsify@4"></script>
41
- <!-- Syntax highlighting -->
42
- <script src="//cdn.jsdelivr.net/npm/prismjs@1/components/prism-javascript.min.js"></script>
43
- <script src="//cdn.jsdelivr.net/npm/prismjs@1/components/prism-json.min.js"></script>
44
- <script src="//cdn.jsdelivr.net/npm/prismjs@1/components/prism-bash.min.js"></script>
45
- <script src="//cdn.jsdelivr.net/npm/prismjs@1/components/prism-markdown.min.js"></script>
46
- <!-- Search plugin -->
47
- <script src="//cdn.jsdelivr.net/npm/docsify@4/lib/plugins/search.min.js"></script>
48
- <!-- Copy code plugin -->
49
- <script src="//cdn.jsdelivr.net/npm/docsify-copy-code@2"></script>
50
- </body>
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <meta http-equiv="X-UA-Compatible" content="IE=edge">
6
+ <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
7
+ <meta name="description" content="Documentation powered by pict-docuserve">
8
+
9
+ <title>Documentation</title>
10
+
11
+ <!-- Application Stylesheet -->
12
+ <link href="https://cdn.jsdelivr.net/npm/pict-docuserve@0/dist/css/docuserve.css" rel="stylesheet">
13
+ <!-- KaTeX stylesheet for LaTeX equation rendering -->
14
+ <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.16.21/dist/katex.min.css">
15
+ <!-- PICT Dynamic View CSS Container -->
16
+ <style id="PICT-CSS"></style>
17
+
18
+ <!-- Load the PICT library from jsDelivr CDN -->
19
+ <script src="https://cdn.jsdelivr.net/npm/pict@1/dist/pict.min.js" type="text/javascript"></script>
20
+ <!-- Bootstrap the Application -->
21
+ <script type="text/javascript">
22
+ //<![CDATA[
23
+ Pict.safeOnDocumentReady(() => { Pict.safeLoadPictApplication(PictDocuserve, 2)});
24
+ //]]>
25
+ </script>
26
+ </head>
27
+ <body>
28
+ <!-- The root container for the Pict application -->
29
+ <div id="Docuserve-Application-Container"></div>
30
+
31
+ <!-- Mermaid diagram rendering -->
32
+ <script src="https://cdn.jsdelivr.net/npm/mermaid@11/dist/mermaid.min.js"></script>
33
+ <script>mermaid.initialize({ startOnLoad: false, theme: 'default' });</script>
34
+ <!-- KaTeX for LaTeX equation rendering -->
35
+ <script defer src="https://cdn.jsdelivr.net/npm/katex@0.16.21/dist/katex.min.js"></script>
36
+ <!-- Load the Docuserve PICT Application Bundle from jsDelivr CDN -->
37
+ <script src="https://cdn.jsdelivr.net/npm/pict-docuserve@0/dist/pict-docuserve.min.js" type="text/javascript"></script>
38
+ </body>
51
39
  </html>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fable",
3
- "version": "3.1.53",
3
+ "version": "3.1.55",
4
4
  "description": "A service dependency injection, configuration and logging library.",
5
5
  "main": "source/Fable.js",
6
6
  "scripts": {
@@ -50,7 +50,7 @@
50
50
  },
51
51
  "homepage": "https://github.com/stevenvelozo/fable",
52
52
  "devDependencies": {
53
- "quackage": "^1.0.45"
53
+ "quackage": "^1.0.50"
54
54
  },
55
55
  "dependencies": {
56
56
  "async.eachlimit": "^0.5.2",
@@ -61,10 +61,10 @@
61
61
  "data-arithmatic": "^1.0.7",
62
62
  "dayjs": "^1.11.19",
63
63
  "fable-log": "^3.0.16",
64
- "fable-serviceproviderbase": "^3.0.16",
65
- "fable-settings": "^3.0.12",
64
+ "fable-serviceproviderbase": "^3.0.17",
65
+ "fable-settings": "^3.0.14",
66
66
  "fable-uuid": "^3.0.11",
67
- "manyfest": "^1.0.43",
67
+ "manyfest": "^1.0.44",
68
68
  "simple-get": "^4.0.1"
69
69
  }
70
70
  }
@@ -177,6 +177,11 @@
177
177
  "Address": "fable.Utility.getInternalValueByHash"
178
178
  },
179
179
 
180
+ "setvalue": {
181
+ "Name": "Set Value to Application State or Services (AppData, etc.)",
182
+ "Address": "fable.Utility.setInternalValueByHash"
183
+ },
184
+
180
185
  "objectkeystoarray": {
181
186
  "Name": "Get Array of an Object's keys",
182
187
  "Address": "fable.Utility.objectKeysToArray"
@@ -103,6 +103,18 @@ class FableServiceUtility extends libFableServiceBase
103
103
  return this.getValueByHash(this.fable, pValueAddress);
104
104
  }
105
105
 
106
+ /**
107
+ * Set a value from fable/pict by hash/address
108
+ *
109
+ * @param {string} pValueAddress - The manyfest hash/address of the value to get
110
+ * @param {any} pValue - The value to set
111
+ */
112
+ setInternalValueByHash(pValueAddress, pValue)
113
+ {
114
+ // Get the value from the internal manifest and return it
115
+ return this.setValueByHash(this.fable, pValueAddress, pValue);
116
+ }
117
+
106
118
  /**
107
119
  * Get a value from an object by hash/address
108
120
  * @param {object} pObject - The object to get the value from
@@ -472,6 +472,10 @@ suite
472
472
  tmpResult = _Parser.solve('Name = GETVALUE("AppData.Students[4]")', tmpDataObject, tmpSolveResults, false, tmpResultObject);
473
473
  Expect(tmpResultObject.Name).to.equal(undefined);
474
474
 
475
+ tmpResult = _Parser.solve('SETVALUE("AppData.Students[3]", "Dan")', tmpDataObject, tmpSolveResults, false, tmpResultObject);
476
+ tmpResult = _Parser.solve('Name = GETVALUE("AppData.Students[3]")', tmpDataObject, tmpSolveResults, false, tmpResultObject);
477
+ Expect(tmpResultObject.Name).to.equal('Dan');
478
+
475
479
  return fDone();
476
480
  }
477
481
  );