@putout/bundle 1.1.3 → 1.1.6

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,5 +1,20 @@
1
1
  import require$$0$1 from '@putout/bundle';
2
2
 
3
+ function _mergeNamespaces(n, m) {
4
+ m.forEach(function (e) {
5
+ e && typeof e !== 'string' && !Array.isArray(e) && Object.keys(e).forEach(function (k) {
6
+ if (k !== 'default' && !(k in n)) {
7
+ var d = Object.getOwnPropertyDescriptor(e, k);
8
+ Object.defineProperty(n, k, d.get ? d : {
9
+ enumerable: true,
10
+ get: function () { return e[k]; }
11
+ });
12
+ }
13
+ });
14
+ });
15
+ return Object.freeze(n);
16
+ }
17
+
3
18
  var addArgs_1;
4
19
  var hasRequiredAddArgs;
5
20
 
@@ -3190,11 +3205,13 @@ function normalize (path) {
3190
3205
  return path;
3191
3206
  }
3192
3207
 
3208
+ var lib = {};
3209
+
3193
3210
  const getRule = (a) => ({
3194
3211
  [a]: createCommonjsRequire("/node_modules/@putout/plugin-putout/lib")(`./${a}`),
3195
3212
  });
3196
3213
 
3197
- var rules = {
3214
+ var rules = lib.rules = {
3198
3215
  ...getRule('apply-processors-destructuring'),
3199
3216
  ...getRule('apply-async-formatter'),
3200
3217
  ...getRule('apply-create-test'),
@@ -3230,4 +3247,10 @@ var rules = {
3230
3247
  ...getRule('includer'),
3231
3248
  };
3232
3249
 
3233
- export { rules };
3250
+ var pluginPutout = /*#__PURE__*/_mergeNamespaces({
3251
+ __proto__: null,
3252
+ rules: rules,
3253
+ 'default': lib
3254
+ }, [lib]);
3255
+
3256
+ export { pluginPutout as default };
package/bundle/putout.js CHANGED
@@ -76217,7 +76217,7 @@ var print_1 = (ast, options = {}) => {
76217
76217
  });
76218
76218
  };
76219
76219
 
76220
- const {assign: assign$6} = Object;
76220
+ const {assign: assign$7} = Object;
76221
76221
 
76222
76222
  const {
76223
76223
  isFunctionExpression,
@@ -76235,7 +76235,7 @@ var traverseObjectExpression$1 = (propertiesPaths) => {
76235
76235
  if (isFunctionExpression(value)) {
76236
76236
  propPath.replaceWith(ObjectMethod('method', key, value.params, value.body, computed));
76237
76237
 
76238
- assign$6(propPath.node, {
76238
+ assign$7(propPath.node, {
76239
76239
  id: null,
76240
76240
  method: true,
76241
76241
  generator: value.generator,
@@ -76260,7 +76260,7 @@ const {
76260
76260
  classMethod,
76261
76261
  } = requireLib$a();
76262
76262
 
76263
- const {assign: assign$5} = Object;
76263
+ const {assign: assign$6} = Object;
76264
76264
 
76265
76265
  var setClassMethod$1 = (path) => {
76266
76266
  const {node} = path;
@@ -76288,7 +76288,7 @@ var setClassMethod$1 = (path) => {
76288
76288
  });
76289
76289
 
76290
76290
  path.replaceWith(method);
76291
- assign$5(path.node, {
76291
+ assign$6(path.node, {
76292
76292
  loc,
76293
76293
  expression,
76294
76294
  generator,
@@ -76414,12 +76414,12 @@ var convertImportDeclaration$1 = (path) => {
76414
76414
  path.node.assertions = assertions;
76415
76415
  };
76416
76416
 
76417
- const {assign: assign$4} = Object;
76417
+ const {assign: assign$5} = Object;
76418
76418
 
76419
76419
  var convertExportDeclaration$1 = (path) => {
76420
76420
  const {assertions = []} = path.node;
76421
76421
 
76422
- assign$4(path.node, {
76422
+ assign$5(path.node, {
76423
76423
  assertions,
76424
76424
  });
76425
76425
  };
@@ -83561,7 +83561,7 @@ function requireMoveOutDirectives () {
83561
83561
  return moveOutDirectives$1;
83562
83562
  }
83563
83563
 
83564
- const {assign: assign$3} = Object;
83564
+ const {assign: assign$4} = Object;
83565
83565
 
83566
83566
  const once$6 = once$9.exports;
83567
83567
 
@@ -83593,7 +83593,7 @@ babel$2.parse = function babelParse(source, {sourceFilename, isTS, isJSX = true,
83593
83593
  ]),
83594
83594
  };
83595
83595
 
83596
- sourceFilename && assign$3(parserOptions, {
83596
+ sourceFilename && assign$4(parserOptions, {
83597
83597
  sourceFilename,
83598
83598
  });
83599
83599
 
@@ -119399,7 +119399,7 @@ simpleImport$1.simpleImport = async (url) => {
119399
119399
  const tryToCatch = tryToCatch$1;
119400
119400
  const {simpleImport} = simpleImport$1;
119401
119401
 
119402
- const {assign: assign$2} = Object;
119402
+ const {assign: assign$3} = Object;
119403
119403
  const stub$2 = () => () => {};
119404
119404
 
119405
119405
  asyncLoader.createAsyncLoader = (type) => async (name, load) => {
@@ -119430,14 +119430,14 @@ async function cleverLoad(names, load = simpleImport) {
119430
119430
  if (e.code === 'ERR_MODULE_NOT_FOUND')
119431
119431
  continue;
119432
119432
 
119433
- assign$2(e, {
119433
+ assign$3(e, {
119434
119434
  message: `${name}: ${e.message}`,
119435
119435
  });
119436
119436
 
119437
119437
  return [e];
119438
119438
  }
119439
119439
 
119440
- assign$2(e, {
119440
+ assign$3(e, {
119441
119441
  message: e.message.replace(/\simported.*/, ''),
119442
119442
  });
119443
119443
 
@@ -119983,7 +119983,7 @@ var store = {};
119983
119983
  const {
119984
119984
  values,
119985
119985
  entries: entries$2,
119986
- assign: assign$1,
119986
+ assign: assign$2,
119987
119987
  } = Object;
119988
119988
 
119989
119989
  const toArray = (a) => Array.from(a);
@@ -120024,7 +120024,7 @@ store.upStore = createStore({
120024
120024
  },
120025
120025
  set(map, name, data) {
120026
120026
  map[name] = map[name] || {};
120027
- assign$1(map[name], data);
120027
+ assign$2(map[name], data);
120028
120028
  },
120029
120029
  });
120030
120030
 
@@ -120078,7 +120078,7 @@ const {
120078
120078
  const shouldSkip = (a) => !a.parent;
120079
120079
  const {merge: merge$1} = traverse$4.visitors;
120080
120080
 
120081
- const {assign} = Object;
120081
+ const {assign: assign$1} = Object;
120082
120082
  const parse = (name, plugin, options) => {
120083
120083
  const list = [];
120084
120084
 
@@ -120126,7 +120126,7 @@ var mergeVisitors$1 = (pluginsToMerge, {fix, shebang, template}) => {
120126
120126
  if (!visitor)
120127
120127
  throw Error(`Visitors cannot be empty in "${rule}"`);
120128
120128
 
120129
- assign(options, {
120129
+ assign$1(options, {
120130
120130
  include: parse('include', plugin, options),
120131
120131
  exclude: parse('exclude', plugin, options),
120132
120132
  });
@@ -131017,6 +131017,20 @@ function putout(...a) {
131017
131017
  return putoutExports(...a);
131018
131018
  }
131019
131019
 
131020
+ const {assign} = Object;
131021
+
131022
+ assign(putout, {
131023
+ parse: putoutExports.parse,
131024
+ print: putoutExports.print,
131025
+ traverse: putoutExports.traverse,
131026
+ generate: putoutExports.generate,
131027
+ template: putoutExports.template,
131028
+ operator: putoutExports.operator,
131029
+ transform: putoutExports.transform,
131030
+ findPlaces: putoutExports.findPlaces,
131031
+ types: putoutExports.types,
131032
+ });
131033
+
131020
131034
  var findPlaces = putoutExports.findPlaces;
131021
131035
  var generate$6 = putoutExports.generate;
131022
131036
  var operator = putoutExports.operator;
@@ -131025,4 +131039,5 @@ var print$3 = putoutExports.print;
131025
131039
  var template$4 = putoutExports.template;
131026
131040
  var transform$2 = putoutExports.transform;
131027
131041
  var traverse$9 = putoutExports.traverse;
131028
- export { putout as default, findPlaces, generate$6 as generate, operator, parse$8 as parse, print$3 as print, template$4 as template, transform$2 as transform, traverse$9 as traverse };
131042
+ var types$4 = putoutExports.types;
131043
+ export { putout as default, findPlaces, generate$6 as generate, operator, parse$8 as parse, print$3 as print, template$4 as template, transform$2 as transform, traverse$9 as traverse, types$4 as types };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@putout/bundle",
3
- "version": "1.1.3",
3
+ "version": "1.1.6",
4
4
  "type": "module",
5
5
  "commitType": "colon",
6
6
  "author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",