@salla.sa/twilight 2.7.16 → 2.8.1-alpha.0

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
@@ -84,11 +84,11 @@ Following are some of the possible uses of the Twilight JS SDK:
84
84
  **Twilight JS SDK** can be installed from the `npm` using the following commands:
85
85
 
86
86
  ```npm title="NPM Installation Command"
87
- npm install @salla.sa/twilight-js --save
87
+ npm install @salla.sa/twilight --save
88
88
  ```
89
89
 
90
90
  ```yarn title="Yarn Installation Command"
91
- yarn add @salla.sa/twilight-js
91
+ yarn add @salla.sa/twilight
92
92
  ```
93
93
 
94
94
  ### Initialization
@@ -97,8 +97,13 @@ The following snippet of code will give the basic version of the SDK where the c
97
97
 
98
98
  ```js
99
99
  <script>
100
- let url = "https://my_store.test/";
101
- salla.init({debug: true, store: {api: url + "api/v1/", url: url}});
100
+ salla.init({
101
+ debug: true,
102
+ store: {
103
+ id: 693312468,
104
+ url: "https://my_store.test/"
105
+ }
106
+ });
102
107
  </script>
103
108
  ```
104
109
  <p align="right">(<a href="#top">back to top</a>)</p>