dtable-ui-component 0.1.76 → 0.1.77

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,3 @@
1
- var unified = require('./unified');
2
-
3
1
  var markdown = require('remark-parse');
4
2
 
5
3
  var slug = require('remark-slug');
@@ -26,6 +24,8 @@ var mathjax = require('rehype-mathjax/browser');
26
24
 
27
25
  var math = require('remark-math/block');
28
26
 
27
+ var unified = require('./unified').default;
28
+
29
29
  function stringify(config) {
30
30
  var settings = xtend(config, this.data('settings'));
31
31
  var schema = deepmerge(gh, {
@@ -6,17 +6,14 @@ var extend = require('extend');
6
6
 
7
7
  var bail = require('bail');
8
8
 
9
- var vfile = require('../vfile');
10
-
11
9
  var trough = require('trough');
12
10
 
13
11
  var string = require('x-is-string');
14
12
 
15
13
  var plain = require('is-plain-obj');
16
- /* Expose a frozen processor. */
17
14
 
15
+ var vfile = require('../vfile').default;
18
16
 
19
- module.exports = unified().freeze();
20
17
  var slice = [].slice;
21
18
  var own = {}.hasOwnProperty;
22
19
  /* Process pipeline. */
@@ -468,4 +465,9 @@ function assertDone(name, asyncName, complete) {
468
465
  if (!complete) {
469
466
  throw new Error('`' + name + '` finished async. Use `' + asyncName + '` instead');
470
467
  }
471
- }
468
+ }
469
+ /* Expose a frozen processor. */
470
+
471
+
472
+ var unified_freeze = unified().freeze();
473
+ export default unified_freeze;
@@ -7,7 +7,6 @@ var replace = require('replace-ext');
7
7
 
8
8
  var buffer = require('is-buffer');
9
9
 
10
- module.exports = VFile;
11
10
  var own = {}.hasOwnProperty;
12
11
  var proto = VFile.prototype;
13
12
  proto.toString = toString;
@@ -170,4 +169,6 @@ function assertPath(path, name) {
170
169
  if (!path) {
171
170
  throw new Error('Setting `' + name + '` requires `path` to be set too');
172
171
  }
173
- }
172
+ }
173
+
174
+ export default VFile;
@@ -2,9 +2,8 @@
2
2
 
3
3
  var VMessage = require('vfile-message');
4
4
 
5
- var VFile = require('./core.js');
5
+ var VFile = require('./core.js').default;
6
6
 
7
- module.exports = VFile;
8
7
  var proto = VFile.prototype;
9
8
  proto.message = message;
10
9
  proto.info = info;
@@ -45,4 +44,6 @@ function info() {
45
44
  var message = this.message.apply(this, arguments);
46
45
  message.fatal = null;
47
46
  return message;
48
- }
47
+ }
48
+
49
+ export default VFile;
@@ -180,19 +180,13 @@ export var getDateDisplayString = function getDateDisplayString(value, format) {
180
180
  return "".concat(formatDateList[2], "/").concat(formatDateList[1], "/").concat(formatDateList[0], " ").concat(formatValuesList[1]);
181
181
 
182
182
  case 'M/D/YYYY':
183
- return date.format('M/D/YYYY');
184
-
185
183
  case 'M/D/YYYY HH:mm':
186
- return date.format('M/D/YYYY HH:mm');
187
-
188
184
  case 'YYYY-MM-DD':
189
- return date.format('YYYY-MM-DD');
190
-
191
185
  case 'YYYY-MM-DD HH:mm':
192
- return date.format('YYYY-MM-DD HH:mm');
193
-
186
+ case 'DD.MM.YYYY':
187
+ case 'DD.MM.YYYY HH:mm':
194
188
  default:
195
- return value;
189
+ return date.format('YYYY-MM-DD');
196
190
  }
197
191
  };
198
192
  export var getDurationDisplayString = function getDurationDisplayString(value, duration_format) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dtable-ui-component",
3
- "version": "0.1.76",
3
+ "version": "0.1.77",
4
4
  "main": "./lib/index.js",
5
5
  "dependencies": {
6
6
  "@seafile/react-image-lightbox": "0.0.9",