knowitwhenyouseeit 2.42.2 → 2.42.4

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 (2) hide show
  1. package/README.md +8 -10
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -14,18 +14,16 @@ yarn add knowitwhenyouseeit
14
14
 
15
15
  ## Usage
16
16
 
17
- ```jsx
18
- import allowlisted from 'knowitwhenyouseeit'
19
-
20
- const getMessage = allowllisted(
21
- "$2y$12$BcuZ0VfUeLLpoLxOC5Xv7eQQK0r95by8YJsECCldKP4ftPr20rpXW", //hello world
22
- "$2y$12$hxyWxMx.qap70Snn1QKMwuDp/9XgNM7HpwbrGnsPu/j7dyTEWh0M2" //hewwo world
23
- )
24
-
25
- getMessage("helllo world!") // false
26
- getMessage("hello world") // "hello world"
17
+ ```typescript file=examples/basic.ts
18
+ import allowlist from 'knowitwhenyouseeit';
27
19
 
20
+ export const getMessage = allowlist(
21
+ '$2y$12$BcuZ0VfUeLLpoLxOC5Xv7eQQK0r95by8YJsECCldKP4ftPr20rpXW', // hello world
22
+ '$2y$12$hxyWxMx.qap70Snn1QKMwuDp/9XgNM7HpwbrGnsPu/j7dyTEWh0M2' // hewwo world
23
+ );
28
24
 
25
+ getMessage('helllo world!'); // false
26
+ getMessage('hello world'); // "hello world"
29
27
  ```
30
28
 
31
29
  ## License
package/package.json CHANGED
@@ -8,7 +8,7 @@
8
8
  "node": ">=8",
9
9
  "npm": ">=5"
10
10
  },
11
- "version": "2.42.2",
11
+ "version": "2.42.4",
12
12
  "dependencies": {
13
13
  "bcryptjs": "3.0.3",
14
14
  "react": "19.2.8",
@@ -25,6 +25,6 @@
25
25
  "directory": "ts/knowitwhenyouseeit"
26
26
  },
27
27
  "bugs": {
28
- "url": "https://github.com/zemn-me/monorepo/issues/new?title=%2F%2Fts%2Fknowitwhenyouseeit%402.42.2%3A+something+went+wrong%21"
28
+ "url": "https://github.com/zemn-me/monorepo/issues/new?title=%2F%2Fts%2Fknowitwhenyouseeit%402.42.4%3A+something+went+wrong%21"
29
29
  }
30
30
  }