@availity/native-form 4.0.8 → 4.0.12
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/CHANGELOG.md +32 -0
- package/README.md +6 -2
- package/lib/flattenObject.js +11 -1
- package/lib/index.js +4 -0
- package/package.json +24 -10
- package/{types → src}/index.d.ts +2 -0
- package/src/index.js +1 -0
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,38 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [4.0.12](https://github.com/availity/sdk-js/compare/@availity/native-form@4.0.10...@availity/native-form@4.0.12) (2022-02-22)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @availity/native-form
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## [4.0.11](https://github.com/availity/sdk-js/compare/@availity/native-form@4.0.10...@availity/native-form@4.0.11) (2022-01-19)
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package @availity/native-form
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
## 4.0.10 (2021-12-21)
|
|
23
|
+
|
|
24
|
+
**Note:** Version bump only for package @availity/native-form
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
## [4.0.9](https://github.com/Availity/sdk-js/compare/@availity/native-form@4.0.8...@availity/native-form@4.0.9) (2021-10-29)
|
|
31
|
+
|
|
32
|
+
**Note:** Version bump only for package @availity/native-form
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
|
|
6
38
|
## [4.0.8](https://github.com/Availity/sdk-js/compare/@availity/native-form@4.0.7...@availity/native-form@4.0.8) (2021-10-22)
|
|
7
39
|
|
|
8
40
|
**Note:** Version bump only for package @availity/native-form
|
package/README.md
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
# native
|
|
1
|
+
# @availity/native-form
|
|
2
2
|
|
|
3
3
|
> Submit JSON data via a native form, not AJAX. Useful when you need to open a new page with a POST action.
|
|
4
4
|
|
|
5
5
|
[](https://www.npmjs.com/package/@availity/native-form)
|
|
6
|
+
[](https://www.npmjs.com/package/@availity/native-form)
|
|
7
|
+
[](https://github.com/Availity/sdk-js/blob/master/packages/native-form/package.json)
|
|
6
8
|
|
|
7
9
|
## Install
|
|
8
10
|
|
|
@@ -18,4 +20,6 @@ npm install @availity/native-form
|
|
|
18
20
|
yarn add @availity/native-form
|
|
19
21
|
```
|
|
20
22
|
|
|
21
|
-
##
|
|
23
|
+
## Documentation
|
|
24
|
+
|
|
25
|
+
Check out more documentation at [availity.github.io](https://availity.github.io/sdk-js/resources/native-form)
|
package/lib/flattenObject.js
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
|
|
3
5
|
require("core-js/modules/es.object.to-string");
|
|
4
6
|
|
|
5
7
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -7,8 +9,16 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
9
|
});
|
|
8
10
|
exports["default"] = void 0;
|
|
9
11
|
|
|
12
|
+
var _typeof2 = _interopRequireDefault(require("@babel/runtime/helpers/typeof"));
|
|
13
|
+
|
|
10
14
|
require("core-js/modules/es.regexp.to-string.js");
|
|
11
15
|
|
|
16
|
+
require("core-js/modules/esnext.async-iterator.reduce.js");
|
|
17
|
+
|
|
18
|
+
require("core-js/modules/esnext.iterator.constructor.js");
|
|
19
|
+
|
|
20
|
+
require("core-js/modules/esnext.iterator.reduce.js");
|
|
21
|
+
|
|
12
22
|
require("core-js/modules/es.object.keys.js");
|
|
13
23
|
|
|
14
24
|
require("core-js/modules/web.url.to-json.js");
|
|
@@ -28,7 +38,7 @@ var flattenObject = function flattenObject(ob) {
|
|
|
28
38
|
return Object.keys(ob).reduce(function (toReturn, k) {
|
|
29
39
|
if (Object.prototype.toString.call(ob[k]) === '[object Date]') {
|
|
30
40
|
toReturn[k] = ob[k].toJSON();
|
|
31
|
-
} else if (ob[k] &&
|
|
41
|
+
} else if (ob[k] && (0, _typeof2["default"])(ob[k]) === 'object') {
|
|
32
42
|
var flatObject = flattenObject(ob[k]);
|
|
33
43
|
var isArray = Array.isArray(ob[k]);
|
|
34
44
|
|
package/lib/index.js
CHANGED
|
@@ -15,6 +15,10 @@ require("core-js/modules/es.array.join.js");
|
|
|
15
15
|
|
|
16
16
|
require("core-js/modules/es.array.map.js");
|
|
17
17
|
|
|
18
|
+
require("core-js/modules/esnext.async-iterator.map.js");
|
|
19
|
+
|
|
20
|
+
require("core-js/modules/esnext.iterator.map.js");
|
|
21
|
+
|
|
18
22
|
require("core-js/modules/es.regexp.exec.js");
|
|
19
23
|
|
|
20
24
|
require("core-js/modules/es.string.replace.js");
|
package/package.json
CHANGED
|
@@ -1,30 +1,44 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@availity/native-form",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.12",
|
|
4
4
|
"description": "Submit JSON data via a native form, not AJAX. Useful when you need to open a new page with a POST action.",
|
|
5
|
-
"main": "lib/index.js",
|
|
6
|
-
"module": "src/index.js",
|
|
7
|
-
"types": "types/index.d.ts",
|
|
8
5
|
"keywords": [
|
|
9
6
|
"availity",
|
|
10
7
|
"form",
|
|
11
8
|
"native",
|
|
12
9
|
"submission"
|
|
13
10
|
],
|
|
14
|
-
"
|
|
11
|
+
"homepage": "https://availity.github.io/sdk-js/resources/native-form",
|
|
12
|
+
"bugs": {
|
|
13
|
+
"url": "https://github.com/availity/sdk-js/issues"
|
|
14
|
+
},
|
|
15
|
+
"repository": {
|
|
16
|
+
"type": "git",
|
|
17
|
+
"url": "git+https://github.com/availity/sdk-js.git",
|
|
18
|
+
"directory": "packages/native-form"
|
|
19
|
+
},
|
|
15
20
|
"license": "MIT",
|
|
16
|
-
"
|
|
17
|
-
|
|
21
|
+
"author": "Evan Sharp <evan.sharp@availity.com>",
|
|
22
|
+
"main": "lib/index.js",
|
|
23
|
+
"module": "src/index.js",
|
|
24
|
+
"types": "src/index.d.ts",
|
|
25
|
+
"scripts": {
|
|
26
|
+
"build": "yarn clean && yarn transpile",
|
|
27
|
+
"clean": "rimraf ./lib",
|
|
28
|
+
"transpile": "babel --root-mode upward src -d lib --ignore **/*.test.js"
|
|
18
29
|
},
|
|
19
30
|
"dependencies": {
|
|
20
|
-
"@babel/runtime": "^7.
|
|
31
|
+
"@babel/runtime": "^7.16.5",
|
|
21
32
|
"core-js": "^3.12.1"
|
|
22
33
|
},
|
|
23
34
|
"devDependencies": {
|
|
24
|
-
"@availity/api-axios": "^6.0.
|
|
35
|
+
"@availity/api-axios": "^6.0.8"
|
|
25
36
|
},
|
|
26
37
|
"peerDependencies": {
|
|
27
38
|
"@availity/api-axios": "^6.0.0"
|
|
28
39
|
},
|
|
29
|
-
"
|
|
40
|
+
"publishConfig": {
|
|
41
|
+
"access": "public"
|
|
42
|
+
},
|
|
43
|
+
"gitHead": "67c8772142e62d31efba07ed3f880994848a8ea4"
|
|
30
44
|
}
|
package/{types → src}/index.d.ts
RENAMED