@onehat/data 1.8.25 → 1.8.27
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/package.json +1 -1
- package/src/Entity.js +1 -1
- package/src/OneHatData.js +3 -3
- package/src/Property/Base64.js +1 -1
- package/src/Property/Boolean.js +3 -3
- package/src/Property/Currency.js +1 -1
- package/src/Property/Date.js +3 -3
- package/src/Property/DateTime.js +1 -1
- package/src/Property/File.js +1 -1
- package/src/Property/Float.js +2 -2
- package/src/Property/Integer.js +2 -2
- package/src/Property/Json.js +1 -1
- package/src/Property/Percent.js +3 -3
- package/src/Property/PercentInt.js +2 -2
- package/src/Property/String.js +2 -2
- package/src/Property/Time.js +1 -1
- package/src/Property/Uuid.js +1 -1
- package/src/Property/index.js +14 -14
- package/src/Reader/JsonReader.js +1 -1
- package/src/Reader/XmlReader.js +1 -1
- package/src/Reader/index.js +2 -2
- package/src/Repository/Ajax.js +3 -3
- package/src/Repository/LocalFromRemote/CommandRepository.js +1 -1
- package/src/Repository/LocalFromRemote/LocalFromRemote.js +2 -2
- package/src/Repository/LocalFromRemote/index.js +3 -3
- package/src/Repository/Memory.js +2 -2
- package/src/Repository/Null.js +2 -2
- package/src/Repository/Offline.js +1 -1
- package/src/Repository/OneBuild.js +1 -1
- package/src/Repository/Repository.js +1 -1
- package/src/Repository/Rest.js +1 -1
- package/src/Repository/index.js +7 -7
- package/src/Schema/KeyValues.js +1 -1
- package/src/Schema/index.js +2 -2
- package/src/Writer/JsonWriter.js +1 -1
- package/src/Writer/XmlWriter.js +1 -1
- package/src/Writer/index.js +2 -2
- package/src/index.js +1 -1
package/package.json
CHANGED
package/src/Entity.js
CHANGED
package/src/OneHatData.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
/** @module OneHatData */
|
|
2
2
|
|
|
3
3
|
import EventEmitter from '@onehat/events';
|
|
4
|
-
import CoreRepositoryTypes from './Repository';
|
|
4
|
+
import CoreRepositoryTypes from './Repository/index.js';
|
|
5
5
|
import {
|
|
6
6
|
MODE_LOCAL_MIRROR,
|
|
7
7
|
MODE_COMMAND_QUEUE,
|
|
8
8
|
MODE_REMOTE_WITH_OFFLINE,
|
|
9
|
-
} from './Repository/LocalFromRemote/
|
|
9
|
+
} from './Repository/LocalFromRemote/index.js';
|
|
10
10
|
import {
|
|
11
11
|
default as Schema,
|
|
12
12
|
CoreSchemas,
|
|
13
|
-
} from './Schema';
|
|
13
|
+
} from './Schema/index.js';
|
|
14
14
|
import _ from 'lodash';
|
|
15
15
|
|
|
16
16
|
/**
|
package/src/Property/Base64.js
CHANGED
package/src/Property/Boolean.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/** @module Property */
|
|
2
2
|
|
|
3
|
-
import Property from './Property';
|
|
4
|
-
import Formatters from '../Util/Formatters';
|
|
5
|
-
import Parsers from '../Util/Parsers';
|
|
3
|
+
import Property from './Property.js';
|
|
4
|
+
import Formatters from '../Util/Formatters.js';
|
|
5
|
+
import Parsers from '../Util/Parsers.js';
|
|
6
6
|
import _ from 'lodash';
|
|
7
7
|
|
|
8
8
|
/**
|
package/src/Property/Currency.js
CHANGED
package/src/Property/Date.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/** @module Property */
|
|
2
2
|
|
|
3
|
-
import Property from './Property';
|
|
4
|
-
import Formatters from '../Util/Formatters';
|
|
5
|
-
import Parsers from '../Util/Parsers';
|
|
3
|
+
import Property from './Property.js';
|
|
4
|
+
import Formatters from '../Util/Formatters.js';
|
|
5
|
+
import Parsers from '../Util/Parsers.js';
|
|
6
6
|
import _ from 'lodash';
|
|
7
7
|
|
|
8
8
|
/**
|
package/src/Property/DateTime.js
CHANGED
package/src/Property/File.js
CHANGED
package/src/Property/Float.js
CHANGED
package/src/Property/Integer.js
CHANGED
package/src/Property/Json.js
CHANGED
package/src/Property/Percent.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/** @module Property */
|
|
2
2
|
|
|
3
|
-
import PercentIntProperty from './PercentInt';
|
|
4
|
-
import Formatters from '../Util/Formatters';
|
|
5
|
-
import Parsers from '../Util/Parsers';
|
|
3
|
+
import PercentIntProperty from './PercentInt.js';
|
|
4
|
+
import Formatters from '../Util/Formatters.js';
|
|
5
|
+
import Parsers from '../Util/Parsers.js';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* Class represents a Property that stores a percentage value.
|
package/src/Property/String.js
CHANGED
package/src/Property/Time.js
CHANGED
package/src/Property/Uuid.js
CHANGED
package/src/Property/index.js
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
/** @module Property */
|
|
2
2
|
|
|
3
|
-
import Base64Property from './Base64';
|
|
4
|
-
import BooleanProperty from './Boolean';
|
|
5
|
-
import CurrencyProperty from './Currency';
|
|
6
|
-
import DateProperty from './Date';
|
|
7
|
-
import DateTimeProperty from './DateTime';
|
|
8
|
-
import FileProperty from './File';
|
|
9
|
-
import FloatProperty from './Float';
|
|
10
|
-
import IntegerProperty from './Integer';
|
|
11
|
-
import JsonProperty from './Json';
|
|
12
|
-
import PercentProperty from './Percent';
|
|
13
|
-
import PercentIntProperty from './PercentInt';
|
|
14
|
-
import StringProperty from './String';
|
|
15
|
-
import TimeProperty from './Time';
|
|
16
|
-
import UuidProperty from './Uuid';
|
|
3
|
+
import Base64Property from './Base64.js';
|
|
4
|
+
import BooleanProperty from './Boolean.js';
|
|
5
|
+
import CurrencyProperty from './Currency.js';
|
|
6
|
+
import DateProperty from './Date.js';
|
|
7
|
+
import DateTimeProperty from './DateTime.js';
|
|
8
|
+
import FileProperty from './File.js';
|
|
9
|
+
import FloatProperty from './Float.js';
|
|
10
|
+
import IntegerProperty from './Integer.js';
|
|
11
|
+
import JsonProperty from './Json.js';
|
|
12
|
+
import PercentProperty from './Percent.js';
|
|
13
|
+
import PercentIntProperty from './PercentInt.js';
|
|
14
|
+
import StringProperty from './String.js';
|
|
15
|
+
import TimeProperty from './Time.js';
|
|
16
|
+
import UuidProperty from './Uuid.js';
|
|
17
17
|
|
|
18
18
|
const PropertyTypes = {
|
|
19
19
|
[Base64Property.type]: Base64Property,
|
package/src/Reader/JsonReader.js
CHANGED
package/src/Reader/XmlReader.js
CHANGED
package/src/Reader/index.js
CHANGED
package/src/Repository/Ajax.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/** @module Repository */
|
|
2
2
|
|
|
3
|
-
import Repository from './Repository';
|
|
4
|
-
import ReaderTypes from '../Reader';
|
|
5
|
-
import WriterTypes from '../Writer';
|
|
3
|
+
import Repository from './Repository.js';
|
|
4
|
+
import ReaderTypes from '../Reader/index.js';
|
|
5
|
+
import WriterTypes from '../Writer/index.js';
|
|
6
6
|
import axios from 'axios';
|
|
7
7
|
import qs from 'qs';
|
|
8
8
|
import _ from 'lodash';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/** @module Repository */
|
|
2
2
|
|
|
3
3
|
import EventEmitter from '@onehat/events';
|
|
4
|
-
import Repository from '../Repository';
|
|
5
|
-
import Command from './Command';
|
|
4
|
+
import Repository from '../Repository.js';
|
|
5
|
+
import Command from './Command.js';
|
|
6
6
|
import moment from 'relative-time-parser'; // Notice this version of moment is imported from 'relative-time-parser', and may be out of sync with our general 'moment' package
|
|
7
7
|
import {
|
|
8
8
|
v4 as uuid,
|
|
@@ -4,9 +4,9 @@ import LocalFromRemote, {
|
|
|
4
4
|
MODE_LOCAL_MIRROR,
|
|
5
5
|
MODE_COMMAND_QUEUE,
|
|
6
6
|
MODE_REMOTE_WITH_OFFLINE,
|
|
7
|
-
} from './LocalFromRemote';
|
|
8
|
-
import Command from './Command';
|
|
9
|
-
import CommandRepository from './CommandRepository';
|
|
7
|
+
} from './LocalFromRemote.js';
|
|
8
|
+
import Command from './Command.js';
|
|
9
|
+
import CommandRepository from './CommandRepository.js';
|
|
10
10
|
|
|
11
11
|
export {
|
|
12
12
|
LocalFromRemote as default,
|
package/src/Repository/Memory.js
CHANGED
package/src/Repository/Null.js
CHANGED
package/src/Repository/Rest.js
CHANGED
package/src/Repository/index.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/** @module Repository */
|
|
2
2
|
|
|
3
|
-
import AjaxRepository from './Ajax';
|
|
4
|
-
import CommandRepository from './LocalFromRemote/CommandRepository';
|
|
5
|
-
import LocalFromRemoteRepository from './LocalFromRemote';
|
|
6
|
-
import MemoryRepository from './Memory';
|
|
7
|
-
import NullRepository from './Null';
|
|
8
|
-
import OneBuildRepository from './OneBuild';
|
|
9
|
-
import RestRepository from './Rest';
|
|
3
|
+
import AjaxRepository from './Ajax.js';
|
|
4
|
+
import CommandRepository from './LocalFromRemote/CommandRepository.js';
|
|
5
|
+
import LocalFromRemoteRepository from './LocalFromRemote/index.js';
|
|
6
|
+
import MemoryRepository from './Memory.js';
|
|
7
|
+
import NullRepository from './Null.js';
|
|
8
|
+
import OneBuildRepository from './OneBuild.js';
|
|
9
|
+
import RestRepository from './Rest.js';
|
|
10
10
|
|
|
11
11
|
const CoreRepositoryTypes = {
|
|
12
12
|
[AjaxRepository.type]: AjaxRepository,
|
package/src/Schema/KeyValues.js
CHANGED
package/src/Schema/index.js
CHANGED
package/src/Writer/JsonWriter.js
CHANGED
package/src/Writer/XmlWriter.js
CHANGED
package/src/Writer/index.js
CHANGED