mock-data-sdk 0.0.1-security → 1.0.1

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.

Potentially problematic release.


This version of mock-data-sdk might be problematic. Click here for more details.

package/README.md CHANGED
@@ -1,5 +1,16 @@
1
- # Security holding package
1
+ # mock-data-sdk
2
+ Generate random transactions data.
2
3
 
3
- This package contained malicious code and was removed from the registry by the npm security team. A placeholder was published to ensure users are not affected in the future.
4
+ # Installation
5
+ ```
6
+ npm i mock-data-sdk
7
+ ```
8
+ # Usage
4
9
 
5
- Please refer to www.npmjs.com/advisories?search=mock-data-sdk for more information.
10
+ ```
11
+ import {getTransactions} from 'mock-data-sdk'
12
+
13
+ const data = getTransactions(count)
14
+ ```
15
+
16
+ Here count is the number of random transactions to be generated. Default count value is 10 if you dont pass any count.
package/data/_index.js ADDED
@@ -0,0 +1,15 @@
1
+ module.exports = {
2
+ "files": [
3
+ "products_1",
4
+ "products_2",
5
+ "products_3",
6
+ "products_4",
7
+ "products_5",
8
+ "products_6",
9
+ "products_7",
10
+ "products_8",
11
+ "products_9",
12
+ "products_10"
13
+ ],
14
+ "length": 2008
15
+ };