Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@availity/native-form

Package Overview
Dependencies
Maintainers
12
Versions
54
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@availity/native-form - npm Package Compare versions

Comparing version 5.0.3 to 5.0.4

dist/index.d.mts

44

CHANGELOG.md

@@ -5,2 +5,46 @@ # Changelog

## [5.0.4](https://github.com/Availity/sdk-js/compare/@availity/native-form@5.0.3...@availity/native-form@5.0.4) (2023-08-23)
# 1.0.0 (2023-08-23)
### Bug Fixes
* add browser field for output ([0ce7170](https://github.com/Availity/sdk-js/commit/0ce717075a82675b8707e4db0cc07cd4af370f3d))
* append function is not defined for ie and edge mobile ([d995343](https://github.com/Availity/sdk-js/commit/d995343c63484b5df1b0660d5a44e52db5c2c6a9))
* **native-form:** fixed error trying to call toString on undefined ([c009460](https://github.com/Availity/sdk-js/commit/c0094607e992ef7072eeb37dedfc908eb2911f3e))
* **native-form:** update types and use api-axiosv6 ([02b0cd6](https://github.com/Availity/sdk-js/commit/02b0cd6a6c1f401c71b4ddc8482297604531983a))
* **native-form:** updated handling of falsey values ([ab57615](https://github.com/Availity/sdk-js/commit/ab57615e2158b41a54132e92e05026a2cfd1e0ea))
* **native-form:** updated test suite name ([fbf824c](https://github.com/Availity/sdk-js/commit/fbf824c7f2c5540193ab3d244a9598524f44d443))
* update babel and jest configs, rename tests ([c80e194](https://github.com/Availity/sdk-js/commit/c80e1947f0c3cb28c3c7db842c82f381622d72e7))
### Code Refactoring
* **analytics-core,api-core,authorizations-core,message-core,native-form,upload-core:** eslint fixes ([00e3395](https://github.com/Availity/sdk-js/commit/00e339595962501c96acf2895650f104d4c49809))
* build!: switch from lerna to nx and compile to esm with tsup ([c586085](https://github.com/Availity/sdk-js/commit/c5860856ca96b743a0653d335ea00f0889132f7f))
### Features
* **native-form:** add native form ([#62](https://github.com/Availity/sdk-js/issues/62)) ([8aa0471](https://github.com/Availity/sdk-js/commit/8aa047123d240906c129466800102b9dff2139d5))
* **native-form:** add operationName to graphql request for query tracking ([5772f57](https://github.com/Availity/sdk-js/commit/5772f57f30278ede6d85daefe2ab7341e8b78b92))
* **native-form:** call avWebQLApi to obtain sso type ([23a1bd9](https://github.com/Availity/sdk-js/commit/23a1bd98cc71334454d137be822a5a5a23a32447))
### BREAKING CHANGES
* Drop Internet Explorer support
* **native-form:** native-form now exports an async function, no longer defaults type
MIGRATION:
Before: nativeForm(...args);
After: await nativeForm(...args);
* **analytics-core,api-core,authorizations-core,message-core,native-form,upload-core:** .filter()[0] replaced with .find(), .forEach() replaced with for...of
## [5.0.3](https://github.com/Availity/sdk-js/compare/@availity/native-form@5.0.2...@availity/native-form@5.0.3) (2022-06-15)

@@ -7,0 +51,0 @@

40

dist/index.js

@@ -0,1 +1,2 @@

"use strict";
var __defProp = Object.defineProperty;

@@ -32,2 +33,22 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;

var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
var __async = (__this, __arguments, generator) => {
return new Promise((resolve, reject) => {
var fulfilled = (value) => {
try {
step(generator.next(value));
} catch (e) {
reject(e);
}
};
var rejected = (value) => {
try {
step(generator.throw(value));
} catch (e) {
reject(e);
}
};
var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
step((generator = generator.apply(__this, __arguments)).next());
});
};

@@ -73,3 +94,3 @@ // src/index.js

`;
var nativeForm = async (spaceId, params = {}, formAttributes = {}, type, clientId = "clientId") => {
var nativeForm = (_0, ..._1) => __async(void 0, [_0, ..._1], function* (spaceId, params = {}, formAttributes = {}, type, clientId = "clientId") {
var _a, _b, _c;

@@ -81,7 +102,10 @@ if (!spaceId)

try {
const { data } = await import_api_axios.avWebQLApi.create({
query: ssoTypeQuery,
variables: { id: spaceId },
operationName: "ssoTypeFindById"
}, { headers: { "X-Client-ID": clientId } });
const { data } = yield import_api_axios.avWebQLApi.create(
{
query: ssoTypeQuery,
variables: { id: spaceId },
operationName: "ssoTypeFindById"
},
{ headers: { "X-Client-ID": clientId } }
);
typeLower = (_c = (_b = (_a = data == null ? void 0 : data.data) == null ? void 0 : _a.configurationFindOne) == null ? void 0 : _b.type) == null ? void 0 : _c.toLowerCase();

@@ -116,5 +140,3 @@ } catch (error) {

form.submit();
};
});
var src_default = nativeForm;
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {});
{
"name": "@availity/native-form",
"version": "5.0.3",
"version": "5.0.4",
"description": "Submit JSON data via a native form, not AJAX. Useful when you need to open a new page with a POST action.",

@@ -36,7 +36,7 @@ "keywords": [

"dependencies": {
"@availity/api-axios": "7.0.3"
"@availity/api-axios": "8.0.3"
},
"devDependencies": {
"tsup": "^5.12.8",
"typescript": "^4.6.4"
"tsup": "^7.2.0",
"typescript": "^5.1.6"
},

@@ -43,0 +43,0 @@ "publishConfig": {

@@ -6,3 +6,3 @@ {

"test": {
"executor": "@nrwl/jest:jest",
"executor": "@nx/jest:jest",
"outputs": ["coverage/native-form"],

@@ -18,4 +18,4 @@ "options": {

"preset": "angular",
"commitMessageFormat": "chore(${projectName}): release version ${version} [skip ci]",
"tagPrefix": "@availity/${projectName}@",
"commitMessageFormat": "chore({projectName}): release version ${version} [skip ci]",
"tagPrefix": "@availity/{projectName}@",
"baseBranch": "master"

@@ -25,3 +25,3 @@ }

"lint": {
"executor": "@nrwl/linter:eslint",
"executor": "@nx/linter:eslint",
"options": {

@@ -28,0 +28,0 @@ "eslintConfig": ".eslintrc.yaml",

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc