@aiursoft/utctime.js 1.0.4 → 1.0.5
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/.gitlab-ci.yml +2 -2
- package/README.md +6 -5
- package/package.json +3 -2
package/.gitlab-ci.yml
CHANGED
|
@@ -30,7 +30,7 @@ deploy_to_npm:
|
|
|
30
30
|
- npm run clean
|
|
31
31
|
- npm run format
|
|
32
32
|
- npm run build
|
|
33
|
-
- echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}"
|
|
34
|
-
- npm publish --access public
|
|
33
|
+
- echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > .npmrc
|
|
34
|
+
- npm publish --access public
|
|
35
35
|
only:
|
|
36
36
|
- master
|
package/README.md
CHANGED
|
@@ -46,7 +46,7 @@ And change it like this.
|
|
|
46
46
|
<p data-utc-time="9/12/2018 10:12:24 AM"><!-- In your tag the time shall be an UTC time --></p>
|
|
47
47
|
```
|
|
48
48
|
|
|
49
|
-
Add init
|
|
49
|
+
Add init the library.
|
|
50
50
|
|
|
51
51
|
```html
|
|
52
52
|
<script>
|
|
@@ -105,10 +105,11 @@ To init bootstrap v5 tooltip:
|
|
|
105
105
|
```javascript
|
|
106
106
|
new UtcTime({
|
|
107
107
|
onSet: function (element, date) {
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
108
|
+
new bootstrap.Tooltip(element, {
|
|
109
|
+
trigger: 'hover',
|
|
110
|
+
placement: 'top',
|
|
111
|
+
title: date.toLocaleString(),
|
|
112
|
+
})
|
|
112
113
|
},
|
|
113
114
|
})
|
|
114
115
|
```
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aiursoft/utctime.js",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.5",
|
|
4
4
|
"description": "Auto utc time",
|
|
5
5
|
"main": "dist/cjs/utctime.js",
|
|
6
6
|
"module": "dist/esm/utctime.js",
|
|
@@ -10,7 +10,8 @@
|
|
|
10
10
|
"build-js": "tsc -b ./tsconfig.json ./tsconfig.types.json",
|
|
11
11
|
"build": "npm run build-js",
|
|
12
12
|
"format": "prettier --write .",
|
|
13
|
-
"lint": "eslint src/ --ext .ts && prettier --check ."
|
|
13
|
+
"lint": "eslint src/ --ext .ts && prettier --check .",
|
|
14
|
+
"lint-fix": "eslint src/ --ext .ts --fix && prettier --write ."
|
|
14
15
|
},
|
|
15
16
|
"repository": {
|
|
16
17
|
"type": "git",
|