@opencitylabs/formio-sdk 1.1.3 → 1.1.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/index.js +7 -10
  2. package/package.json +4 -3
package/index.js CHANGED
@@ -1,9 +1,7 @@
1
- "use strict";
2
-
3
- const axios = require("axios");
4
- const get = require("lodash.get");
5
- const { baseUrl } = require("./BaseUrl");
6
- const { jwtDecode } = require("jwt-decode");
1
+ import axios from "axios";
2
+ import get from "lodash.get";
3
+ import { baseUrl } from "./BaseUrl.js";
4
+ import { jwtDecode } from "jwt-decode";
7
5
 
8
6
  class FormIoHelper {
9
7
 
@@ -567,7 +565,6 @@ function createFormioHelper(options = {}) {
567
565
  return new FormIoHelper(options);
568
566
  }
569
567
 
570
- module.exports = FormIoHelper;
571
- module.exports.FormIoHelper = FormIoHelper;
572
- module.exports.FormioHelper = FormIoHelper;
573
- module.exports.createFormioHelper = createFormioHelper;
568
+ export { FormIoHelper, createFormioHelper };
569
+ export { FormIoHelper as FormioHelper };
570
+ export default FormIoHelper;
package/package.json CHANGED
@@ -1,7 +1,8 @@
1
1
  {
2
2
  "name": "@opencitylabs/formio-sdk",
3
- "version": "1.1.3",
3
+ "version": "1.1.4",
4
4
  "description": "Node/browser SDK helper for Form.io APIs",
5
+ "type": "module",
5
6
  "main": "index.js",
6
7
  "exports": {
7
8
  ".": "./index.js"
@@ -12,7 +13,7 @@
12
13
  "README.md"
13
14
  ],
14
15
  "scripts": {
15
- "test": "node -e \"require('./index.js')\""
16
+ "test": "node --input-type=module -e \"import('./index.js')\""
16
17
  },
17
18
  "keywords": [
18
19
  "formio",
@@ -26,6 +27,6 @@
26
27
  "axios": "^1.13.6",
27
28
  "jwt-decode": "^4.0.0",
28
29
  "lodash.get": "^4.4.2",
29
- "sweetalert2": "^11.26.22"
30
+ "sweetalert2": "^11.26.23"
30
31
  }
31
32
  }