mol_crypto_lib 0.0.939 → 0.0.940

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/node.mjs CHANGED
@@ -152,7 +152,7 @@ var $;
152
152
  try {
153
153
  if (!having)
154
154
  return false;
155
- if (typeof having !== 'object')
155
+ if (typeof having !== 'object' && typeof having !== 'function')
156
156
  return false;
157
157
  if (having instanceof $mol_delegate)
158
158
  return false;
@@ -288,11 +288,12 @@ var $;
288
288
  return this.name;
289
289
  }
290
290
  destructor() { }
291
+ static destructor() { }
291
292
  toString() {
292
293
  return this[Symbol.toStringTag] || this.constructor.name + '()';
293
294
  }
294
295
  static toJSON() {
295
- return this.$.$mol_func_name(this);
296
+ return this[Symbol.toStringTag] || this.$.$mol_func_name(this);
296
297
  }
297
298
  toJSON() {
298
299
  return this.toString();
package/node.test.js CHANGED
@@ -144,7 +144,7 @@ var $;
144
144
  try {
145
145
  if (!having)
146
146
  return false;
147
- if (typeof having !== 'object')
147
+ if (typeof having !== 'object' && typeof having !== 'function')
148
148
  return false;
149
149
  if (having instanceof $mol_delegate)
150
150
  return false;
@@ -280,11 +280,12 @@ var $;
280
280
  return this.name;
281
281
  }
282
282
  destructor() { }
283
+ static destructor() { }
283
284
  toString() {
284
285
  return this[Symbol.toStringTag] || this.constructor.name + '()';
285
286
  }
286
287
  static toJSON() {
287
- return this.$.$mol_func_name(this);
288
+ return this[Symbol.toStringTag] || this.$.$mol_func_name(this);
288
289
  }
289
290
  toJSON() {
290
291
  return this.toString();