skapi-js 0.2.0-alpha.0 → 0.2.1

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.
@@ -143,7 +143,6 @@ function specialChars(string, p = 'parameter', allowPeriods = false, allowWhiteS
143
143
  return string;
144
144
  }
145
145
  function Params(params, struct, required = null, bypassCheck = [], _parentKey = null) {
146
- var _a;
147
146
  if (Array.isArray(bypassCheck)) {
148
147
  bypassCheck = bypassCheck.concat([
149
148
  'service',
@@ -166,7 +165,7 @@ function Params(params, struct, required = null, bypassCheck = [], _parentKey =
166
165
  if (_parentKey === null) {
167
166
  if (isObjectWithKeys(_params)) {
168
167
  if (_params instanceof HTMLFormElement || _params instanceof FormData || _params instanceof SubmitEvent) {
169
- _params = (_a = extractFormMeta(params)) === null || _a === void 0 ? void 0 : _a.meta;
168
+ _params = extractFormMeta(params)?.meta;
170
169
  }
171
170
  else {
172
171
  _params = JSON.parse(JSON.stringify(params));
package/package.json CHANGED
@@ -1,17 +1,15 @@
1
1
  {
2
2
  "name": "skapi-js",
3
- "version": "0.2.0-alpha.0",
3
+ "version": "0.2.1",
4
4
  "description": "Javascript library for Skapi: Complete JAM Stack, front-end driven serverless backend API service.",
5
- "main": "./esm/main/skapi.js",
6
- "module": "./esm/main/skapi.js",
7
- "types": "./esm/main/skapi.d.ts",
8
- "browser": "./dist/skapi.js",
5
+ "main": "./dist/skapi.module.js",
6
+ "types": "./js/Main.d.ts",
9
7
  "files": [
10
- "esm/",
8
+ "js/",
11
9
  "dist/"
12
10
  ],
13
11
  "scripts": {
14
- "build": "npx tsc --project tsconfig.esm.json; npx tsc --project tsconfig.json; npx webpack --config webpack.config.js",
12
+ "build": "npx tsc --project tsconfig.json; npx webpack --config webpack.config.js",
15
13
  "server": "(cd server; node server.js)"
16
14
  },
17
15
  "repository": {
@@ -37,6 +35,6 @@
37
35
  "jamstack"
38
36
  ],
39
37
  "dependencies": {
40
- "amazon-cognito-identity-js": "^6.3.1"
38
+ "amazon-cognito-identity-js": "^5.2.14"
41
39
  }
42
40
  }