@alipay/ams-checkout 0.0.1694486521-dev.1 → 0.0.1695278363-dev.0
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/dist/umd/ams-checkout.min.js +1 -1
- package/esm/config/request.js +3 -3
- package/esm/core/component/index.d.ts +10 -3
- package/esm/core/component/index.js +29 -38
- package/esm/core/drop-in/index.d.ts +7 -0
- package/esm/core/drop-in/index.js +16 -16
- package/esm/core/instance/index.js +0 -1
- package/esm/plugin/component/cashierApp.d.ts +0 -2
- package/esm/plugin/component/cashierApp.js +3 -7
- package/esm/plugin/component/component.popup.style.js +0 -2
- package/esm/plugin/component/index.d.ts +8 -5
- package/esm/plugin/component/index.js +6 -9
- package/esm/plugin/drop-in/index.d.ts +5 -5
- package/esm/plugin/drop-in/index.js +0 -1
- package/esm/request/index.d.ts +7 -0
- package/esm/request/index.js +4 -2
- package/esm/request/utils.js +0 -3
- package/esm/types/index.d.ts +9 -13
- package/esm/types/index.js +1 -3
- package/esm/util/createIframeNode.js +0 -7
- package/esm/util/get.js +0 -7
- package/esm/util/index.d.ts +1 -1
- package/esm/util/index.js +7 -4
- package/package.json +1 -1
package/esm/util/get.js
CHANGED
@@ -1,11 +1,4 @@
|
|
1
1
|
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
2
|
-
/**
|
3
|
-
* Copyright (c) 2022 International Business Group, Ant Group. All rights reserved.
|
4
|
-
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), the rights to use, copy, modify, merge, and/or distribute the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
5
|
-
* 1. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE; and
|
6
|
-
* 2. If applicable, the use of the Software is also subject to the terms and conditions of any non-disclosure agreement signed by you and the relevant Ant Group entity.
|
7
|
-
*/
|
8
|
-
/* eslint-disable @typescript-eslint/no-explicit-any */
|
9
2
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
10
3
|
// @ts-nocheck
|
11
4
|
var charCodeOfDot = '.'.charCodeAt(0);
|
package/esm/util/index.d.ts
CHANGED
@@ -1,10 +1,10 @@
|
|
1
|
+
import { errorEnum } from '../types';
|
1
2
|
/**
|
2
3
|
* Copyright (c) 2022 International Business Group, Ant Group. All rights reserved.
|
3
4
|
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), the rights to use, copy, modify, merge, and/or distribute the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
4
5
|
* 1. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE; and
|
5
6
|
* 2. If applicable, the use of the Software is also subject to the terms and conditions of any non-disclosure agreement signed by you and the relevant Ant Group entity.
|
6
7
|
*/
|
7
|
-
import { errorEnum } from '../types';
|
8
8
|
declare const getType: (target: any) => string;
|
9
9
|
declare class EventCenter {
|
10
10
|
private events;
|
package/esm/util/index.js
CHANGED
@@ -5,15 +5,15 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
|
|
5
5
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
6
6
|
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
7
7
|
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
8
|
+
import { errorEnum } from "../types";
|
9
|
+
import { get } from "./get";
|
10
|
+
|
8
11
|
/**
|
9
12
|
* Copyright (c) 2022 International Business Group, Ant Group. All rights reserved.
|
10
13
|
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), the rights to use, copy, modify, merge, and/or distribute the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
11
14
|
* 1. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE; and
|
12
15
|
* 2. If applicable, the use of the Software is also subject to the terms and conditions of any non-disclosure agreement signed by you and the relevant Ant Group entity.
|
13
16
|
*/
|
14
|
-
/* eslint-disable @typescript-eslint/no-explicit-any */
|
15
|
-
import { errorEnum } from "../types";
|
16
|
-
import { get } from "./get";
|
17
17
|
var getType = function getType(target) {
|
18
18
|
return Object.prototype.toString.call(target).slice(8, -1).toLowerCase();
|
19
19
|
};
|
@@ -79,7 +79,10 @@ var EventCenter = /*#__PURE__*/function () {
|
|
79
79
|
value: function once(name, func, key) {
|
80
80
|
var _this = this;
|
81
81
|
var onceF = function onceF() {
|
82
|
-
|
82
|
+
for (var _len2 = arguments.length, rest = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
|
83
|
+
rest[_key2] = arguments[_key2];
|
84
|
+
}
|
85
|
+
func.call.apply(func, [_this].concat(rest));
|
83
86
|
_this.off(name, onceF, key);
|
84
87
|
};
|
85
88
|
this.on(name, onceF, key);
|
package/package.json
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"name":"@alipay/ams-checkout","version":"0.0.
|
1
|
+
{"name":"@alipay/ams-checkout","version":"0.0.1695278363-dev.0","description":"","author":"","main":"esm/index.js","module":"esm/index.js","typings":"esm/index.d.ts","files":["dist","esm","LEGAL.md","LICENSE","README.md"],"scripts":{"build":"father build","ci":"npm run lint","cov":"jest --coverage","format":"prettier --write --no-error-on-unmatched-pattern \"**/*.{js,jsx,ts,tsx,md,json,css,less}\"","lint":"eslint ./src","test":"jest"},"dependencies":{"axios":"^1.3.4","uuid":"^9.0.0"},"devDependencies":{"@babel/core":"^7.20.7","@babel/preset-env":"^7.20.2","@testing-library/jest-dom":"^5.1.1","@testing-library/react":"^9.5.0","@types/jest":"^29.2.4","@types/uuid":"^9.0.0","@typescript-eslint/parser":"^5.60.0","babel-jest":"^29.3.1","babel-loader":"^9.1.0","babel-plugin-import":"^1.13.0","eslint":"^8.36.0","father":"^4.2.3","jest":"^29.5.0","jest-environment-jsdom":"^29.3.1","prettier":"^2.8.4","prettier-plugin-organize-imports":"^3.2.3","prettier-plugin-packagejson":"^2.4.5","ts-jest":"^29.0.3","ts-node":"^10.9.1","typescript":"^4.9.5"},"engines":{},"publishConfig":{"access":"public"}}
|