w-data-mseed 1.0.9 → 1.0.10

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.
@@ -9,7 +9,7 @@ jobs:
9
9
 
10
10
  strategy:
11
11
  matrix:
12
- node-version: [18.x]
12
+ node-version: [20.x]
13
13
 
14
14
  steps:
15
15
  - uses: actions/checkout@v2
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * w-data-mseed v1.0.9
2
+ * w-data-mseed v1.0.10
3
3
  * (c) 2018-2021 yuda-lyu(semisphere)
4
4
  * Released under the MIT License.
5
5
  */
@@ -48,10 +48,10 @@
48
48
  <pre class="prettyprint source linenums"><code>import path from 'path'
49
49
  import fs from 'fs'
50
50
  import process from 'process'
51
- import get from 'lodash-es/get'
52
- import map from 'lodash-es/map'
53
- import filter from 'lodash-es/filter'
54
- import drop from 'lodash-es/drop'
51
+ import get from 'lodash-es/get.js'
52
+ import map from 'lodash-es/map.js'
53
+ import filter from 'lodash-es/filter.js'
54
+ import drop from 'lodash-es/drop.js'
55
55
  import genID from 'wsemi/src/genID.mjs'
56
56
  import now2strp from 'wsemi/src/now2strp.mjs'
57
57
  import isestr from 'wsemi/src/isestr.mjs'
@@ -82,15 +82,15 @@ function isWindows() {
82
82
  * @param {String} [opt.ver='4.8'] 輸入調用windows程序之Net Framework版本字串,可有'4.5'、'4.6'、'4.7.2'與'4.8',預設'4.8'
83
83
  * @returns {Promise} 回傳Promise,resolve回傳成功訊息,reject回傳錯誤訊息
84
84
  * @example
85
- * import WDataMseed from './src/WDataMseed.mjs'
85
+ * import wds from './src/WDataMseed.mjs'
86
86
  *
87
87
  * async function test() {
88
88
  *
89
89
  * //fp
90
90
  * let fp = './g.mseed'
91
91
  *
92
- * //WDataMseed
93
- * let r = await WDataMseed(fp)
92
+ * //wds
93
+ * let r = await wds(fp)
94
94
  * console.log(r)
95
95
  * // [
96
96
  * // {
@@ -433,7 +433,7 @@ export default WDataMseed
433
433
  <br class="clear">
434
434
 
435
435
  <footer>
436
- Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Tue Mar 19 2024 21:39:51 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
436
+ Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Sat Mar 23 2024 16:34:55 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
437
437
  </footer>
438
438
 
439
439
  <script>prettyPrint();</script>
package/docs/global.html CHANGED
@@ -193,7 +193,7 @@
193
193
 
194
194
  <h5 class="h5-examples">Example</h5>
195
195
 
196
- <pre class="prettyprint"><code>import WDataMseed from './src/WDataMseed.mjs'
197
196
  //fp
198
197
  let fp = './g.mseed'
199
198
  //WDataMseed
200
199
  let r = await WDataMseed(fp)
201
200
  console.log(r)
202
201
  // [
203
202
  // {
204
203
  // name: 'SE.RST01.00.HNE.D.2020-09-17T013552.000000.csv',
205
204
  // path: null,
206
205
  // data: { heads: [Object], records: [Array] }
207
206
  // },
208
207
  // {
209
208
  // name: 'SE.RST01.00.HNN.D.2020-09-17T013552.000000.csv',
210
209
  // path: null,
211
210
  // data: { heads: [Object], records: [Array] }
212
211
  // },
213
212
  // {
214
213
  // name: 'SE.RST01.00.HNZ.D.2020-09-17T013552.000000.csv',
215
214
  // path: null,
216
215
  // data: { heads: [Object], records: [Array] }
217
216
  // }
218
217
  // ]
219
218
  .catch((err) => {
220
219
  console.log('catch', err)
221
220
  })</code></pre>
221
+ <pre class="prettyprint"><code>import wds from './src/WDataMseed.mjs'
222
222
  //fp
223
223
  let fp = './g.mseed'
224
224
  //wds
225
225
  let r = await wds(fp)
226
226
  console.log(r)
227
227
  // [
228
228
  // {
229
229
  // name: 'SE.RST01.00.HNE.D.2020-09-17T013552.000000.csv',
230
230
  // path: null,
231
231
  // data: { heads: [Object], records: [Array] }
232
232
  // },
233
233
  // {
234
234
  // name: 'SE.RST01.00.HNN.D.2020-09-17T013552.000000.csv',
235
235
  // path: null,
236
236
  // data: { heads: [Object], records: [Array] }
237
237
  // },
238
238
  // {
239
239
  // name: 'SE.RST01.00.HNZ.D.2020-09-17T013552.000000.csv',
240
240
  // path: null,
241
241
  // data: { heads: [Object], records: [Array] }
242
242
  // }
243
243
  // ]
244
244
  .catch((err) => {
245
245
  console.log('catch', err)
246
246
  })</code></pre>
247
247
 
248
248
 
249
249
 
@@ -434,7 +434,7 @@
434
434
  <br class="clear">
435
435
 
436
436
  <footer>
437
- Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Tue Mar 19 2024 21:39:51 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
437
+ Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Sat Mar 23 2024 16:34:55 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
438
438
  </footer>
439
439
 
440
440
  <script>prettyPrint();</script>
package/docs/index.html CHANGED
@@ -71,7 +71,7 @@
71
71
  <br class="clear">
72
72
 
73
73
  <footer>
74
- Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Tue Mar 19 2024 21:39:51 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
74
+ Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Sat Mar 23 2024 16:34:55 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
75
75
  </footer>
76
76
 
77
77
  <script>prettyPrint();</script>
package/g.mjs CHANGED
@@ -1,15 +1,15 @@
1
1
  import fs from 'fs'
2
- import WDataMseed from './src/WDataMseed.mjs'
2
+ import wds from './src/WDataMseed.mjs'
3
3
 
4
4
 
5
5
  async function test() {
6
6
 
7
7
  //fp
8
- // let fp = './g.mseed'
9
- let fp = './20200917093752_RST01_acc.mseed'
8
+ let fp = './test/g.mseed'
9
+ // let fp = './20200917093752_RST01_acc.mseed'
10
10
 
11
11
  //WDataMseed
12
- let r = await WDataMseed(fp)
12
+ let r = await wds(fp)
13
13
  console.log(r)
14
14
  // [
15
15
  // {
@@ -29,7 +29,7 @@ async function test() {
29
29
  // }
30
30
  // ]
31
31
 
32
- fs.writeFileSync('./g.json', JSON.stringify(r, null, 2), 'utf8')
32
+ fs.writeFileSync('./test/g.json', JSON.stringify(r, null, 2), 'utf8')
33
33
 
34
34
  }
35
35
  test()
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "w-data-mseed",
3
- "version": "1.0.9",
3
+ "version": "1.0.10",
4
4
  "main": "dist/w-data-mseed.umd.js",
5
5
  "dependencies": {
6
6
  "lodash-es": "^4.17.21",
7
- "wsemi": "^1.7.47"
7
+ "wsemi": "^1.7.49"
8
8
  },
9
9
  "devDependencies": {
10
- "w-package-tools": "^1.0.73"
10
+ "w-package-tools": "^1.0.75"
11
11
  },
12
12
  "scripts": {
13
13
  "test": "mocha --parallel --timeout 60000 --experimental-modules --es-module-specifier-resolution=node",
package/script.txt ADDED
@@ -0,0 +1,18 @@
1
+ #node --experimental-modules --es-module-specifier-resolution=node toolg/addVersion.mjs
2
+ node --experimental-modules --es-module-specifier-resolution=node toolg/modifyReadme.mjs
3
+
4
+ node --experimental-modules --es-module-specifier-resolution=node toolg/cleanFolder.mjs
5
+ ./node_modules/.bin/jsdoc -c .jsdoc
6
+
7
+ node --experimental-modules --es-module-specifier-resolution=node toolg/gDistRollup.mjs
8
+
9
+ git add . -A
10
+ git commit -m 'modify: '
11
+ git push origin master:master
12
+
13
+ npm run deploy
14
+
15
+ #npm test
16
+
17
+ #npm publish
18
+
@@ -1,10 +1,10 @@
1
1
  import path from 'path'
2
2
  import fs from 'fs'
3
3
  import process from 'process'
4
- import get from 'lodash-es/get'
5
- import map from 'lodash-es/map'
6
- import filter from 'lodash-es/filter'
7
- import drop from 'lodash-es/drop'
4
+ import get from 'lodash-es/get.js'
5
+ import map from 'lodash-es/map.js'
6
+ import filter from 'lodash-es/filter.js'
7
+ import drop from 'lodash-es/drop.js'
8
8
  import genID from 'wsemi/src/genID.mjs'
9
9
  import now2strp from 'wsemi/src/now2strp.mjs'
10
10
  import isestr from 'wsemi/src/isestr.mjs'
@@ -35,15 +35,15 @@ function isWindows() {
35
35
  * @param {String} [opt.ver='4.8'] 輸入調用windows程序之Net Framework版本字串,可有'4.5'、'4.6'、'4.7.2'與'4.8',預設'4.8'
36
36
  * @returns {Promise} 回傳Promise,resolve回傳成功訊息,reject回傳錯誤訊息
37
37
  * @example
38
- * import WDataMseed from './src/WDataMseed.mjs'
38
+ * import wds from './src/WDataMseed.mjs'
39
39
  *
40
40
  * async function test() {
41
41
  *
42
42
  * //fp
43
43
  * let fp = './g.mseed'
44
44
  *
45
- * //WDataMseed
46
- * let r = await WDataMseed(fp)
45
+ * //wds
46
+ * let r = await wds(fp)
47
47
  * console.log(r)
48
48
  * // [
49
49
  * // {
@@ -0,0 +1,20 @@
1
+ import assert from 'assert'
2
+ import wds from '../src/WDataMseed.mjs'
3
+ import rin from './g.json' assert {type:'json'}
4
+
5
+
6
+ describe('test', function() {
7
+
8
+ it('decompress', async function() {
9
+
10
+ //fp
11
+ let fp = './test/g.mseed'
12
+ // let fp = './20200917093752_RST01_acc.mseed'
13
+
14
+ //WDataMseed
15
+ let rout = await wds(fp)
16
+
17
+ assert.strict.deepEqual(rin, rout)
18
+ })
19
+
20
+ })
Binary file
package/g.bat DELETED
@@ -1,2 +0,0 @@
1
- "mseed2ascii-2.6\mseed2ascii.exe" -G "g.mseed"
2
- pause
package/test/all.test.mjs DELETED
@@ -1,10 +0,0 @@
1
- import assert from 'assert'
2
-
3
-
4
- describe('all', function() {
5
-
6
- it('test in localhost', function() {
7
- assert.strict.deepEqual(1, 1)
8
- })
9
-
10
- })
File without changes
File without changes