@cinerino/sdk 3.31.0-alpha.6 → 3.31.0-alpha.7

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.
@@ -70,6 +70,7 @@ async function main() {
70
70
  recipient: { typeOf: client.factory.personType.Person, name: 'サンプル決済者名称', id: 'xxx' },
71
71
  object: [{
72
72
  typeOf: client.factory.service.paymentService.PaymentServiceType.CreditCard,
73
+ id: '',
73
74
  paymentMethod: {
74
75
  additionalProperty: [],
75
76
  name: paymentMethodType,
@@ -42,6 +42,7 @@ async function main() {
42
42
  recipient: { typeOf: client.factory.personType.Person, name: 'サンプル決済者名称', id: 'id' },
43
43
  object: {
44
44
  typeOf: client.factory.service.paymentService.PaymentServiceType.CreditCard,
45
+ id: '',
45
46
  paymentMethod: {
46
47
  typeOf: paymentMethodType,
47
48
  paymentMethodId: 'CIN438268608702343',
package/lib/bundle.js CHANGED
@@ -20878,7 +20878,16 @@ var weakRefDeref = hasWeakRef ? WeakRef.prototype.deref : null;
20878
20878
  var booleanValueOf = Boolean.prototype.valueOf;
20879
20879
  var objectToString = Object.prototype.toString;
20880
20880
  var functionToString = Function.prototype.toString;
20881
- var match = String.prototype.match;
20881
+ var $match = String.prototype.match;
20882
+ var $slice = String.prototype.slice;
20883
+ var $replace = String.prototype.replace;
20884
+ var $toUpperCase = String.prototype.toUpperCase;
20885
+ var $toLowerCase = String.prototype.toLowerCase;
20886
+ var $test = RegExp.prototype.test;
20887
+ var $concat = Array.prototype.concat;
20888
+ var $join = Array.prototype.join;
20889
+ var $arrSlice = Array.prototype.slice;
20890
+ var $floor = Math.floor;
20882
20891
  var bigIntValueOf = typeof BigInt === 'function' ? BigInt.prototype.valueOf : null;
20883
20892
  var gOPS = Object.getOwnPropertySymbols;
20884
20893
  var symToString = typeof Symbol === 'function' && typeof Symbol.iterator === 'symbol' ? Symbol.prototype.toString : null;
@@ -20897,6 +20906,28 @@ var gPO = (typeof Reflect === 'function' ? Reflect.getPrototypeOf : Object.getPr
20897
20906
  : null
20898
20907
  );
20899
20908
 
20909
+ function addNumericSeparator(num, str) {
20910
+ if (
20911
+ num === Infinity
20912
+ || num === -Infinity
20913
+ || num !== num
20914
+ || (num && num > -1000 && num < 1000)
20915
+ || $test.call(/e/, str)
20916
+ ) {
20917
+ return str;
20918
+ }
20919
+ var sepRegex = /[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;
20920
+ if (typeof num === 'number') {
20921
+ var int = num < 0 ? -$floor(-num) : $floor(num); // trunc(num)
20922
+ if (int !== num) {
20923
+ var intStr = String(int);
20924
+ var dec = $slice.call(str, intStr.length + 1);
20925
+ return $replace.call(intStr, sepRegex, '$&_') + '.' + $replace.call($replace.call(dec, /([0-9]{3})/g, '$&_'), /_$/, '');
20926
+ }
20927
+ }
20928
+ return $replace.call(str, sepRegex, '$&_');
20929
+ }
20930
+
20900
20931
  var inspectCustom = require('./util.inspect').custom;
20901
20932
  var inspectSymbol = inspectCustom && isSymbol(inspectCustom) ? inspectCustom : null;
20902
20933
 
@@ -20925,8 +20956,12 @@ module.exports = function inspect_(obj, options, depth, seen) {
20925
20956
  && opts.indent !== '\t'
20926
20957
  && !(parseInt(opts.indent, 10) === opts.indent && opts.indent > 0)
20927
20958
  ) {
20928
- throw new TypeError('options "indent" must be "\\t", an integer > 0, or `null`');
20959
+ throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');
20929
20960
  }
20961
+ if (has(opts, 'numericSeparator') && typeof opts.numericSeparator !== 'boolean') {
20962
+ throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');
20963
+ }
20964
+ var numericSeparator = opts.numericSeparator;
20930
20965
 
20931
20966
  if (typeof obj === 'undefined') {
20932
20967
  return 'undefined';
@@ -20945,10 +20980,12 @@ module.exports = function inspect_(obj, options, depth, seen) {
20945
20980
  if (obj === 0) {
20946
20981
  return Infinity / obj > 0 ? '0' : '-0';
20947
20982
  }
20948
- return String(obj);
20983
+ var str = String(obj);
20984
+ return numericSeparator ? addNumericSeparator(obj, str) : str;
20949
20985
  }
20950
20986
  if (typeof obj === 'bigint') {
20951
- return String(obj) + 'n';
20987
+ var bigIntStr = String(obj) + 'n';
20988
+ return numericSeparator ? addNumericSeparator(obj, bigIntStr) : bigIntStr;
20952
20989
  }
20953
20990
 
20954
20991
  var maxDepth = typeof opts.depth === 'undefined' ? 5 : opts.depth;
@@ -20967,7 +21004,7 @@ module.exports = function inspect_(obj, options, depth, seen) {
20967
21004
 
20968
21005
  function inspect(value, from, noIndent) {
20969
21006
  if (from) {
20970
- seen = seen.slice();
21007
+ seen = $arrSlice.call(seen);
20971
21008
  seen.push(from);
20972
21009
  }
20973
21010
  if (noIndent) {
@@ -20985,21 +21022,21 @@ module.exports = function inspect_(obj, options, depth, seen) {
20985
21022
  if (typeof obj === 'function') {
20986
21023
  var name = nameOf(obj);
20987
21024
  var keys = arrObjKeys(obj, inspect);
20988
- return '[Function' + (name ? ': ' + name : ' (anonymous)') + ']' + (keys.length > 0 ? ' { ' + keys.join(', ') + ' }' : '');
21025
+ return '[Function' + (name ? ': ' + name : ' (anonymous)') + ']' + (keys.length > 0 ? ' { ' + $join.call(keys, ', ') + ' }' : '');
20989
21026
  }
20990
21027
  if (isSymbol(obj)) {
20991
- var symString = hasShammedSymbols ? String(obj).replace(/^(Symbol\(.*\))_[^)]*$/, '$1') : symToString.call(obj);
21028
+ var symString = hasShammedSymbols ? $replace.call(String(obj), /^(Symbol\(.*\))_[^)]*$/, '$1') : symToString.call(obj);
20992
21029
  return typeof obj === 'object' && !hasShammedSymbols ? markBoxed(symString) : symString;
20993
21030
  }
20994
21031
  if (isElement(obj)) {
20995
- var s = '<' + String(obj.nodeName).toLowerCase();
21032
+ var s = '<' + $toLowerCase.call(String(obj.nodeName));
20996
21033
  var attrs = obj.attributes || [];
20997
21034
  for (var i = 0; i < attrs.length; i++) {
20998
21035
  s += ' ' + attrs[i].name + '=' + wrapQuotes(quote(attrs[i].value), 'double', opts);
20999
21036
  }
21000
21037
  s += '>';
21001
21038
  if (obj.childNodes && obj.childNodes.length) { s += '...'; }
21002
- s += '</' + String(obj.nodeName).toLowerCase() + '>';
21039
+ s += '</' + $toLowerCase.call(String(obj.nodeName)) + '>';
21003
21040
  return s;
21004
21041
  }
21005
21042
  if (isArray(obj)) {
@@ -21008,12 +21045,15 @@ module.exports = function inspect_(obj, options, depth, seen) {
21008
21045
  if (indent && !singleLineValues(xs)) {
21009
21046
  return '[' + indentedJoin(xs, indent) + ']';
21010
21047
  }
21011
- return '[ ' + xs.join(', ') + ' ]';
21048
+ return '[ ' + $join.call(xs, ', ') + ' ]';
21012
21049
  }
21013
21050
  if (isError(obj)) {
21014
21051
  var parts = arrObjKeys(obj, inspect);
21052
+ if ('cause' in obj && !isEnumerable.call(obj, 'cause')) {
21053
+ return '{ [' + String(obj) + '] ' + $join.call($concat.call('[cause]: ' + inspect(obj.cause), parts), ', ') + ' }';
21054
+ }
21015
21055
  if (parts.length === 0) { return '[' + String(obj) + ']'; }
21016
- return '{ [' + String(obj) + '] ' + parts.join(', ') + ' }';
21056
+ return '{ [' + String(obj) + '] ' + $join.call(parts, ', ') + ' }';
21017
21057
  }
21018
21058
  if (typeof obj === 'object' && customInspect) {
21019
21059
  if (inspectSymbol && typeof obj[inspectSymbol] === 'function') {
@@ -21061,14 +21101,14 @@ module.exports = function inspect_(obj, options, depth, seen) {
21061
21101
  var ys = arrObjKeys(obj, inspect);
21062
21102
  var isPlainObject = gPO ? gPO(obj) === Object.prototype : obj instanceof Object || obj.constructor === Object;
21063
21103
  var protoTag = obj instanceof Object ? '' : 'null prototype';
21064
- var stringTag = !isPlainObject && toStringTag && Object(obj) === obj && toStringTag in obj ? toStr(obj).slice(8, -1) : protoTag ? 'Object' : '';
21104
+ var stringTag = !isPlainObject && toStringTag && Object(obj) === obj && toStringTag in obj ? $slice.call(toStr(obj), 8, -1) : protoTag ? 'Object' : '';
21065
21105
  var constructorTag = isPlainObject || typeof obj.constructor !== 'function' ? '' : obj.constructor.name ? obj.constructor.name + ' ' : '';
21066
- var tag = constructorTag + (stringTag || protoTag ? '[' + [].concat(stringTag || [], protoTag || []).join(': ') + '] ' : '');
21106
+ var tag = constructorTag + (stringTag || protoTag ? '[' + $join.call($concat.call([], stringTag || [], protoTag || []), ': ') + '] ' : '');
21067
21107
  if (ys.length === 0) { return tag + '{}'; }
21068
21108
  if (indent) {
21069
21109
  return tag + '{' + indentedJoin(ys, indent) + '}';
21070
21110
  }
21071
- return tag + '{ ' + ys.join(', ') + ' }';
21111
+ return tag + '{ ' + $join.call(ys, ', ') + ' }';
21072
21112
  }
21073
21113
  return String(obj);
21074
21114
  };
@@ -21079,7 +21119,7 @@ function wrapQuotes(s, defaultStyle, opts) {
21079
21119
  }
21080
21120
 
21081
21121
  function quote(s) {
21082
- return String(s).replace(/"/g, '&quot;');
21122
+ return $replace.call(String(s), /"/g, '&quot;');
21083
21123
  }
21084
21124
 
21085
21125
  function isArray(obj) { return toStr(obj) === '[object Array]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
@@ -21130,7 +21170,7 @@ function toStr(obj) {
21130
21170
 
21131
21171
  function nameOf(f) {
21132
21172
  if (f.name) { return f.name; }
21133
- var m = match.call(functionToString.call(f), /^function\s*([\w$]+)/);
21173
+ var m = $match.call(functionToString.call(f), /^function\s*([\w$]+)/);
21134
21174
  if (m) { return m[1]; }
21135
21175
  return null;
21136
21176
  }
@@ -21230,10 +21270,10 @@ function inspectString(str, opts) {
21230
21270
  if (str.length > opts.maxStringLength) {
21231
21271
  var remaining = str.length - opts.maxStringLength;
21232
21272
  var trailer = '... ' + remaining + ' more character' + (remaining > 1 ? 's' : '');
21233
- return inspectString(str.slice(0, opts.maxStringLength), opts) + trailer;
21273
+ return inspectString($slice.call(str, 0, opts.maxStringLength), opts) + trailer;
21234
21274
  }
21235
21275
  // eslint-disable-next-line no-control-regex
21236
- var s = str.replace(/(['\\])/g, '\\$1').replace(/[\x00-\x1f]/g, lowbyte);
21276
+ var s = $replace.call($replace.call(str, /(['\\])/g, '\\$1'), /[\x00-\x1f]/g, lowbyte);
21237
21277
  return wrapQuotes(s, 'single', opts);
21238
21278
  }
21239
21279
 
@@ -21247,7 +21287,7 @@ function lowbyte(c) {
21247
21287
  13: 'r'
21248
21288
  }[n];
21249
21289
  if (x) { return '\\' + x; }
21250
- return '\\x' + (n < 0x10 ? '0' : '') + n.toString(16).toUpperCase();
21290
+ return '\\x' + (n < 0x10 ? '0' : '') + $toUpperCase.call(n.toString(16));
21251
21291
  }
21252
21292
 
21253
21293
  function markBoxed(str) {
@@ -21259,7 +21299,7 @@ function weakCollectionOf(type) {
21259
21299
  }
21260
21300
 
21261
21301
  function collectionOf(type, size, entries, indent) {
21262
- var joinedEntries = indent ? indentedJoin(entries, indent) : entries.join(', ');
21302
+ var joinedEntries = indent ? indentedJoin(entries, indent) : $join.call(entries, ', ');
21263
21303
  return type + ' (' + size + ') {' + joinedEntries + '}';
21264
21304
  }
21265
21305
 
@@ -21277,20 +21317,20 @@ function getIndent(opts, depth) {
21277
21317
  if (opts.indent === '\t') {
21278
21318
  baseIndent = '\t';
21279
21319
  } else if (typeof opts.indent === 'number' && opts.indent > 0) {
21280
- baseIndent = Array(opts.indent + 1).join(' ');
21320
+ baseIndent = $join.call(Array(opts.indent + 1), ' ');
21281
21321
  } else {
21282
21322
  return null;
21283
21323
  }
21284
21324
  return {
21285
21325
  base: baseIndent,
21286
- prev: Array(depth + 1).join(baseIndent)
21326
+ prev: $join.call(Array(depth + 1), baseIndent)
21287
21327
  };
21288
21328
  }
21289
21329
 
21290
21330
  function indentedJoin(xs, indent) {
21291
21331
  if (xs.length === 0) { return ''; }
21292
21332
  var lineJoiner = '\n' + indent.prev + indent.base;
21293
- return lineJoiner + xs.join(',' + lineJoiner) + '\n' + indent.prev;
21333
+ return lineJoiner + $join.call(xs, ',' + lineJoiner) + '\n' + indent.prev;
21294
21334
  }
21295
21335
 
21296
21336
  function arrObjKeys(obj, inspect) {
@@ -21317,7 +21357,7 @@ function arrObjKeys(obj, inspect) {
21317
21357
  if (hasShammedSymbols && symMap['$' + key] instanceof Symbol) {
21318
21358
  // this is to prevent shammed Symbols, which are stored as strings, from being included in the string key section
21319
21359
  continue; // eslint-disable-line no-restricted-syntax, no-continue
21320
- } else if ((/[^\w$]/).test(key)) {
21360
+ } else if ($test.call(/[^\w$]/, key)) {
21321
21361
  xs.push(inspect(key, obj) + ': ' + inspect(obj[key], obj));
21322
21362
  } else {
21323
21363
  xs.push(key + ': ' + inspect(obj[key], obj));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cinerino/sdk",
3
- "version": "3.31.0-alpha.6",
3
+ "version": "3.31.0-alpha.7",
4
4
  "description": "Cinerino SDK",
5
5
  "main": "./lib/index.js",
6
6
  "browser": {
@@ -97,7 +97,7 @@
97
97
  "watchify": "^3.11.1"
98
98
  },
99
99
  "dependencies": {
100
- "@cinerino/api-abstract-client": "3.31.0-alpha.6",
100
+ "@cinerino/api-abstract-client": "3.31.0-alpha.7",
101
101
  "debug": "^3.2.6",
102
102
  "http-status": "^1.4.2",
103
103
  "idtoken-verifier": "^2.0.3",