@phun-ky/speccer 4.2.1 → 4.3.2

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/src/index.js CHANGED
@@ -1,28 +1,33 @@
1
1
  /* eslint no-console:0 */
2
2
  'use strict';
3
3
 
4
- import * as node from './lib/node';
5
- import * as spec from './spec';
6
- import * as dissect from './dissect';
7
- import * as measure from './measure';
8
- import * as typography from './typography';
9
- import * as browser from './browser';
4
+ import * as __node from './lib/node';
5
+ import * as __spacing from './spec';
6
+ import * as __dissect from './dissect';
7
+ import * as __measure from './measure';
8
+ import * as __typography from './typography';
9
+ import * as __browser from './browser';
10
10
 
11
11
  const speccer = () => {
12
- node.removeAll('.speccer');
13
- node.removeAll('.dissection');
12
+ __node.removeAll('.speccer');
13
+ __node.removeAll('.dissection');
14
14
 
15
15
  const _els_to_be_specced = document.querySelectorAll('[data-speccer],[data-speccer] *:not(td)');
16
16
  const _els_to_be_measured = document.querySelectorAll('[data-speccer-measure]');
17
17
  const _els_to_be_typography_specced = document.querySelectorAll('[data-speccer-typography]');
18
18
  const _els_to_be_dissected = document.querySelectorAll('[data-anatomy-section] [data-anatomy]');
19
19
 
20
- _els_to_be_specced.forEach(spec.element);
21
- _els_to_be_measured.forEach(measure.element);
22
- _els_to_be_typography_specced.forEach(typography.element);
23
- _els_to_be_dissected.forEach(dissect.element);
20
+ _els_to_be_specced.forEach(__spacing.element);
21
+ _els_to_be_measured.forEach(__measure.element);
22
+ _els_to_be_typography_specced.forEach(__typography.element);
23
+ _els_to_be_dissected.forEach(__dissect.element);
24
24
  };
25
25
 
26
+ export const spacing = __spacing;
27
+ export const dissect = __dissect;
28
+ export const measure = __measure;
29
+ export const typography = __typography;
30
+
26
31
  export default speccer;
27
32
 
28
- browser.activate(speccer);
33
+ __browser.activate(speccer);