skyflow-js 1.36.1 → 1.36.2
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 +11 -11
- package/dist/sdkNodeBuild/index.js +1 -1
- package/dist/sdkNodeBuild/index.js.gz +0 -0
- package/package.json +1 -1
- package/types/core/constants.d.ts +1 -0
- package/types/core/external/collect/collect-element.d.ts +1 -0
- package/types/core/external/common/skyflow-element.d.ts +1 -0
- package/types/core/external/reveal/reveal-element.d.ts +1 -0
- package/types/core/internal/iframe-form/index.d.ts +1 -0
package/README.md
CHANGED
|
@@ -5,7 +5,7 @@ Skyflow’s JavaScript SDK can be used to securely collect, tokenize, and reveal
|
|
|
5
5
|
|
|
6
6
|
[](https://github.com/skyflowapi/skyflow-js/actions)
|
|
7
7
|
[](https://www.npmjs.com/package/skyflow-js)
|
|
8
|
-
[](https://github.com/skyflowapi/skyflow-js/blob/
|
|
8
|
+
[](https://github.com/skyflowapi/skyflow-js/blob/main/LICENSE)
|
|
9
9
|
|
|
10
10
|
# Table of Contents
|
|
11
11
|
- [**Including Skyflow.js**](#including-skyflowjs)
|
|
@@ -168,7 +168,7 @@ const options = {
|
|
|
168
168
|
skyflowClient.insert(records, options);
|
|
169
169
|
```
|
|
170
170
|
|
|
171
|
-
An [example](https://github.com/skyflowapi/skyflow-js/blob/
|
|
171
|
+
An [example](https://github.com/skyflowapi/skyflow-js/blob/main/samples/using-script-tag/pure-js.html) of an insert call:
|
|
172
172
|
```javascript
|
|
173
173
|
skyflowClient.insert({
|
|
174
174
|
records: [
|
|
@@ -487,7 +487,7 @@ container.collect(options);
|
|
|
487
487
|
|
|
488
488
|
### End to end example of collecting data with Skyflow Elements
|
|
489
489
|
|
|
490
|
-
**[Sample Code:](https://github.com/skyflowapi/skyflow-js/blob/
|
|
490
|
+
**[Sample Code:](https://github.com/skyflowapi/skyflow-js/blob/main/samples/using-script-tag/skyflow-elements.html)**
|
|
491
491
|
|
|
492
492
|
```javascript
|
|
493
493
|
//Step 1
|
|
@@ -918,7 +918,7 @@ const elementValueMatchRule = {
|
|
|
918
918
|
}
|
|
919
919
|
```
|
|
920
920
|
|
|
921
|
-
The Sample [code snippet](https://github.com/skyflowapi/skyflow-js/blob/
|
|
921
|
+
The Sample [code snippet](https://github.com/skyflowapi/skyflow-js/blob/main/samples/using-script-tag/custom-validations.html) for using custom validations:
|
|
922
922
|
|
|
923
923
|
```javascript
|
|
924
924
|
/*
|
|
@@ -1025,7 +1025,7 @@ state : {
|
|
|
1025
1025
|
`Note:`
|
|
1026
1026
|
values of SkyflowElements will be returned in element state object only when `env` is `DEV`, else it is empty string i.e, '', but in case of CARD_NUMBER type element when the `env` is `PROD` for all the card types except AMEX, it will return first eight digits, for AMEX it will return first six digits and rest all digits in masked format.
|
|
1027
1027
|
|
|
1028
|
-
##### Sample [code snippet](https://github.com/skyflowapi/skyflow-js/blob/
|
|
1028
|
+
##### Sample [code snippet](https://github.com/skyflowapi/skyflow-js/blob/main/samples/using-script-tag/collect-element-listeners.html) for using listeners
|
|
1029
1029
|
```javascript
|
|
1030
1030
|
// Create Skyflow client.
|
|
1031
1031
|
const skyflowClient = Skyflow.init({
|
|
@@ -1886,7 +1886,7 @@ Note: If you do not provide a redaction type, RedactionType.PLAIN_TEXT is the de
|
|
|
1886
1886
|
|
|
1887
1887
|
skyflow.detokenize(records);
|
|
1888
1888
|
```
|
|
1889
|
-
An [example](https://github.com/skyflowapi/skyflow-js/blob/
|
|
1889
|
+
An [example](https://github.com/skyflowapi/skyflow-js/blob/main/samples/using-script-tag/pure-js.html) of a detokenize call:
|
|
1890
1890
|
|
|
1891
1891
|
```javascript
|
|
1892
1892
|
skyflow.detokenize({
|
|
@@ -1973,7 +1973,7 @@ data = {
|
|
|
1973
1973
|
],
|
|
1974
1974
|
};
|
|
1975
1975
|
```
|
|
1976
|
-
[Example usage (Skyflow IDs)](https://github.com/skyflowapi/skyflow-js/blob/
|
|
1976
|
+
[Example usage (Skyflow IDs)](https://github.com/skyflowapi/skyflow-js/blob/main/samples/using-script-tag/get-pure-js.html)
|
|
1977
1977
|
|
|
1978
1978
|
```javascript
|
|
1979
1979
|
skyflow.get({
|
|
@@ -2018,7 +2018,7 @@ Example response
|
|
|
2018
2018
|
]
|
|
2019
2019
|
}
|
|
2020
2020
|
```
|
|
2021
|
-
[Example usage (Unique column values)](https://github.com/skyflowapi/skyflow-js/blob/
|
|
2021
|
+
[Example usage (Unique column values)](https://github.com/skyflowapi/skyflow-js/blob/main/samples/using-script-tag/get-pure-js.html)
|
|
2022
2022
|
|
|
2023
2023
|
```javascript
|
|
2024
2024
|
skyflow.get({
|
|
@@ -2058,7 +2058,7 @@ Sample response:
|
|
|
2058
2058
|
}
|
|
2059
2059
|
```
|
|
2060
2060
|
|
|
2061
|
-
[Example usage (Fetch tokens using Skyflow IDs)](https://github.com/skyflowapi/skyflow-js/blob/
|
|
2061
|
+
[Example usage (Fetch tokens using Skyflow IDs)](https://github.com/skyflowapi/skyflow-js/blob/main/samples/using-script-tag/get-pure-js.html)
|
|
2062
2062
|
```javascript
|
|
2063
2063
|
skyflow.get({
|
|
2064
2064
|
records: [
|
|
@@ -2250,7 +2250,7 @@ container
|
|
|
2250
2250
|
|
|
2251
2251
|
### End to end example of all steps
|
|
2252
2252
|
|
|
2253
|
-
**[Sample Code:](https://github.com/skyflowapi/skyflow-js/blob/
|
|
2253
|
+
**[Sample Code:](https://github.com/skyflowapi/skyflow-js/blob/main/samples/using-script-tag/skyflow-elements.html)**
|
|
2254
2254
|
```javascript
|
|
2255
2255
|
// Step 1.
|
|
2256
2256
|
const container = skyflowClient.container(Skyflow.ContainerType.REVEAL);
|
|
@@ -2966,7 +2966,7 @@ const records = [
|
|
|
2966
2966
|
skyflowClient.delete(records);
|
|
2967
2967
|
```
|
|
2968
2968
|
|
|
2969
|
-
An [example](https://github.com/skyflowapi/skyflow-js/blob/
|
|
2969
|
+
An [example](https://github.com/skyflowapi/skyflow-js/blob/main/samples/using-script-tag/delete-pure-js.html) of delete call:
|
|
2970
2970
|
|
|
2971
2971
|
```javascript
|
|
2972
2972
|
skyflowClient.delete({
|