@artisan-commerce/builders 0.7.0-canary.21 → 0.7.0-canary.22

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.
@@ -1,8 +1,8 @@
1
1
  (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
3
- typeof define === 'function' && define.amd ? define(['exports'], factory) :
4
- (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.ArtisnBuilders = {}));
5
- })(this, (function (exports) { 'use strict';
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('buffer')) :
3
+ typeof define === 'function' && define.amd ? define(['exports', 'buffer'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.ArtisnBuilders = {}, global.buffer));
5
+ })(this, (function (exports, buffer) { 'use strict';
6
6
 
7
7
  const genItems = (builder, quantity) => {
8
8
  const num = quantity != null ? quantity : Math.floor(Math.random() * 9) + 1;
@@ -88172,15 +88172,15 @@
88172
88172
  (function () {
88173
88173
 
88174
88174
  function btoa(str) {
88175
- var buffer;
88175
+ var buffer$1;
88176
88176
 
88177
- if (str instanceof Buffer) {
88178
- buffer = str;
88177
+ if (str instanceof buffer.Buffer) {
88178
+ buffer$1 = str;
88179
88179
  } else {
88180
- buffer = Buffer.from(str.toString(), 'binary');
88180
+ buffer$1 = buffer.Buffer.from(str.toString(), 'binary');
88181
88181
  }
88182
88182
 
88183
- return buffer.toString('base64');
88183
+ return buffer$1.toString('base64');
88184
88184
  }
88185
88185
 
88186
88186
  btoa$1.exports = btoa;