@osimatic/helpers-js 1.0.2 → 1.0.3

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/bank.js CHANGED
@@ -4,4 +4,4 @@ class IBAN {
4
4
  }
5
5
  }
6
6
 
7
- exports.IBAN = IBAN;
7
+ module.exports = { IBAN };
@@ -167,6 +167,4 @@ class TelephoneNumber {
167
167
  }
168
168
  }
169
169
 
170
- exports.PersonName = PersonName;
171
- exports.Email = Email;
172
- exports.TelephoneNumber = TelephoneNumber;
170
+ module.exports = { PersonName, Email, TelephoneNumber };
package/count_down.js CHANGED
@@ -100,4 +100,4 @@ class CountDown {
100
100
 
101
101
  }
102
102
 
103
- exports.CountDown = CountDown;
103
+ module.exports = { CountDown };
package/data_table.js CHANGED
@@ -416,4 +416,4 @@ class DataTable {
416
416
 
417
417
  }
418
418
 
419
- exports.DataTable = DataTable;
419
+ module.exports = { DataTable };
package/date_time.js CHANGED
@@ -543,9 +543,4 @@ class InputPeriod {
543
543
 
544
544
  }
545
545
 
546
- exports.DateTime = DateTime;
547
- exports.TimestampUnix = TimestampUnix;
548
- exports.SqlDate = SqlDate;
549
- exports.SqlTime = SqlTime;
550
- exports.SqlDateTime = SqlDateTime;
551
- exports.InputPeriod = InputPeriod;
546
+ module.exports = { DateTime, TimestampUnix, SqlDate, SqlTime, SqlDateTime, InputPeriod };
@@ -123,4 +123,4 @@ class DetailsSubArray {
123
123
 
124
124
  }
125
125
 
126
- exports.DetailsSubArray = DetailsSubArray;
126
+ module.exports = { DetailsSubArray };
package/duration.js CHANGED
@@ -174,4 +174,4 @@ class Duration {
174
174
 
175
175
  }
176
176
 
177
- exports.Duration = Duration;
177
+ module.exports = { Duration };
package/file.js CHANGED
@@ -123,6 +123,4 @@ class Img {
123
123
  }
124
124
  }
125
125
 
126
- exports.File = File;
127
- exports.CSV = CSV;
128
- exports.Img = Img;
126
+ module.exports = { File, CSV, Img };
package/flash_message.js CHANGED
@@ -35,4 +35,4 @@ class FlashMessage {
35
35
  }
36
36
  }
37
37
 
38
- exports.FlashMessage = FlashMessage;
38
+ module.exports = { FlashMessage };
package/form_helper.js CHANGED
@@ -234,4 +234,4 @@ class FormHelper {
234
234
  }
235
235
  }
236
236
 
237
- exports.FormHelper = FormHelper;
237
+ module.exports = { FormHelper };
package/google_maps.js CHANGED
@@ -141,7 +141,7 @@ class GoogleMap {
141
141
  }
142
142
  }
143
143
 
144
- exports.GoogleMap = GoogleMap;
144
+ module.exports = { GoogleMap };
145
145
 
146
146
  //deprecated
147
147
  /*
@@ -271,4 +271,4 @@ class ImportFromCsv {
271
271
 
272
272
  }
273
273
 
274
- exports.ImportFromCsv = ImportFromCsv;
274
+ module.exports = { ImportFromCsv };
package/index.js CHANGED
@@ -1,69 +1,26 @@
1
- const network = require('./network.js');
2
- const bank = require('./bank.js');
3
- const media = require('./media.js');
4
- const contactDetails = require('./contact_details.js');
5
- const countDown = require('./count_down.js');
6
- const dataTable = require('./data_table.js');
7
- const dateTime = require('./date_time.js');
8
- const detailsSubArray = require('./details_sub_array.js');
9
- const duration = require('./duration.js');
10
- const file = require('./file.js');
11
- const flashMessage = require('./flash_message.js');
12
- const formHelper = require('./form_helper.js');
13
- const googleMaps = require('./google_maps.js');
14
- const importFromCsv = require('./import_from_csv.js');
15
- const jwt = require('./jwt.js');
16
- const listBox = require('./list_box.js')
17
- const location = require('./location.js')
18
- const socialNetwork = require('./social_network.js')
19
-
20
- exports.HTTPRequest = network.HTTPRequest;
21
- exports.Cookie = network.Cookie;
22
- exports.UrlAndQueryString = network.UrlAndQueryString;
23
-
24
- exports.IBAN = bank.IBAN;
25
-
26
- exports.AudioMedia = media.AudioMedia;
27
-
28
- exports.PersonName = contactDetails.PersonName;
29
- exports.Email = contactDetails.Email;
30
- exports.TelephoneNumber = contactDetails.TelephoneNumber;
31
-
32
- exports.CountDown = countDown.CountDown;
33
-
34
- exports.DataTable = dataTable.DataTable;
35
-
36
- exports.DateTime = dateTime.DateTime;
37
- exports.TimestampUnix = dateTime.TimestampUnix;
38
- exports.SqlDate = dateTime.SqlDate;
39
- exports.SqlTime = dateTime.SqlTime;
40
- exports.SqlDateTime = dateTime.SqlDateTime;
41
- exports.InputPeriod = dateTime.InputPeriod;
42
-
43
- exports.DetailsSubArray = detailsSubArray.DetailsSubArray;
44
-
45
- exports.Duration = duration.Duration;
46
-
47
- exports.File = file.File;
48
- exports.CSV = file.CSV;
49
- exports.Img = file.Img;
50
-
51
- exports.FlashMessage = flashMessage.FlashMessage;
52
-
53
- exports.FormHelper = formHelper.FormHelper;
54
-
55
- exports.GoogleMap = googleMaps.GoogleMap;
56
-
57
- exports.ImportFromCsv = importFromCsv.ImportFromCsv;
58
-
59
- exports.JwtToken = jwt.JwtToken;
60
- exports.JwtSession = jwt.JwtSession;
61
-
62
- exports.ListBox = listBox.ListBox;
63
-
64
- exports.COUNTRIES_LIST = location.COUNTRIES_LIST;
65
- exports.Country = location.Country;
66
- exports.PostalAddress = location.PostalAddress;
67
- exports.Location = location.Location;
68
-
69
- exports.SocialNetwork = socialNetwork.SocialNetwork;
1
+ const { HTTPRequest, Cookie, UrlAndQueryString } = require('./network.js');
2
+ const { IBAN } = require('./bank.js');
3
+ const { AudioMedia } = require('./media.js');
4
+ const { PersonName, Email, TelephoneNumber } = require('./contact_details.js');
5
+ const { CountDown } = require('./count_down.js');
6
+ const { DataTable } = require('./data_table.js');
7
+ const { DateTime, TimestampUnix, SqlDate, SqlTime, SqlDateTime, InputPeriod } = require('./date_time.js');
8
+ const { DetailsSubArray } = require('./details_sub_array.js');
9
+ const { Duration } = require('./duration.js');
10
+ const { File, CSV, Img } = require('./file.js');
11
+ const { FlashMessage } = require('./flash_message.js');
12
+ const { FormHelper } = require('./form_helper.js');
13
+ const { GoogleMap } = require('./google_maps.js');
14
+ const { ImportFromCsv } = require('./import_from_csv.js');
15
+ const { JwtToken, JwtSession } = require('./jwt.js');
16
+ const { ListBox } = require('./list_box.js');
17
+ const { COUNTRIES_LIST, Country, PostalAddress, Location } = require('./location.js');
18
+ const { SocialNetwork } = require('./social_network.js');
19
+
20
+ module.exports = {
21
+ HTTPRequest, Cookie, UrlAndQueryString, IBAN, AudioMedia, PersonName, Email, TelephoneNumber, CountDown, DataTable,
22
+ DateTime, TimestampUnix, SqlDate, SqlTime, SqlDateTime, InputPeriod, DetailsSubArray, Duration, File, CSV, Img,
23
+ FlashMessage, FormHelper, GoogleMap, ImportFromCsv, JwtToken, JwtSession, ListBox, Country, PostalAddress, Location,
24
+ SocialNetwork,
25
+ COUNTRIES_LIST
26
+ };
package/jwt.js CHANGED
@@ -93,5 +93,4 @@ class JwtSession {
93
93
  }
94
94
  }
95
95
 
96
- exports.JwtToken = JwtToken;
97
- exports.JwtSession = JwtSession;
96
+ module.exports = { JwtToken, JwtSession };
package/list_box.js CHANGED
@@ -110,4 +110,4 @@ class ListBox {
110
110
 
111
111
  }
112
112
 
113
- exports.ListBox = ListBox;
113
+ module.exports = { ListBox };
package/location.js CHANGED
@@ -385,7 +385,4 @@ class Location {
385
385
  }
386
386
  }
387
387
 
388
- exports.COUNTRIES_LIST = COUNTRIES_LIST;
389
- exports.Country = Country;
390
- exports.PostalAddress = PostalAddress;
391
- exports.Location = Location;
388
+ module.exports = { COUNTRIES_LIST, Country, PostalAddress, Location };
package/media.js CHANGED
@@ -74,7 +74,7 @@ class AudioMedia {
74
74
 
75
75
  }
76
76
 
77
- exports.AudioMedia = AudioMedia;
77
+ module.exports = { AudioMedia };
78
78
 
79
79
  //deprecated
80
80
  function hasGetUserMedia() {
package/network.js CHANGED
@@ -549,6 +549,4 @@ class UrlAndQueryString {
549
549
 
550
550
  }
551
551
 
552
- exports.HTTPRequest = HTTPRequest;
553
- exports.Cookie = Cookie;
554
- exports.UrlAndQueryString = UrlAndQueryString;
552
+ module.exports = { HTTPRequest, Cookie, UrlAndQueryString };
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
- {
2
- "name": "@osimatic/helpers-js",
3
- "version": "1.0.2",
4
- "main": "index.js",
5
- "scripts": {
6
- "test": "echo \"Error: no test specified\" && exit 1"
7
- },
8
- "keywords": [],
9
- "author": "",
10
- "license": "ISC",
11
- "description": ""
12
- }
1
+ {
2
+ "name": "@osimatic/helpers-js",
3
+ "version": "1.0.3",
4
+ "main": "index.js",
5
+ "scripts": {
6
+ "test": "echo \"Error: no test specified\" && exit 1"
7
+ },
8
+ "keywords": [],
9
+ "author": "",
10
+ "license": "ISC",
11
+ "description": ""
12
+ }
package/social_network.js CHANGED
@@ -107,4 +107,4 @@ class SocialNetwork {
107
107
 
108
108
  }
109
109
 
110
- exports.SocialNetwork = SocialNetwork;
110
+ module.exports = { SocialNetwork };