@unsetsoft/ryunixjs 0.2.36-nightly.2 → 0.2.36-nightly.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": "@unsetsoft/ryunixjs",
3
- "version": "0.2.36-nightly.2",
3
+ "version": "0.2.36-nightly.3",
4
4
  "license": "MIT",
5
5
  "main": "./dist/Ryunix.js",
6
6
  "private": false,
@@ -18,8 +18,14 @@ const createContext = (defaultValue) => {
18
18
  };
19
19
 
20
20
  context.Provider = (props) => {
21
- console.log(props);
22
- const provider = {};
21
+ if (props.value) {
22
+ throw new Error("The value attribute is not provided.");
23
+ }
24
+
25
+ context.Value = props.value;
26
+ const provider = {
27
+ context: context,
28
+ };
23
29
 
24
30
  return createElement("div", provider, props.children);
25
31
  };