w-geo 1.1.59 → 1.1.61

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.
Files changed (96) hide show
  1. package/.github/workflows/ci-test.yml +1 -1
  2. package/.vscode/launch.json +2 -3
  3. package/README.md +1 -2
  4. package/babel.config.js +4 -3
  5. package/dist/w-geo.umd.js +5 -5
  6. package/dist/w-geo.umd.js.map +1 -1
  7. package/docs/-_class.mjs.html +1 -1
  8. package/docs/calcDepthByDepthStartEnd.mjs.html +1 -1
  9. package/docs/calcDepthStartEndByConnect.mjs.html +9 -9
  10. package/docs/calcDepthStartEndByDepth.mjs.html +10 -10
  11. package/docs/calcDepthStartEndByGroup.mjs.html +11 -11
  12. package/docs/calcLayersByMerge.mjs.html +2 -3
  13. package/docs/calcLiquefaction.mjs.html +129 -116
  14. package/docs/calcVerticalStress.mjs.html +1 -1
  15. package/docs/checkDepth.mjs.html +7 -8
  16. package/docs/checkDepthStartEnd.mjs.html +5 -7
  17. package/docs/complementDepthData.mjs.html +1 -1
  18. package/docs/groupByDepthStartEnd.mjs.html +10 -14
  19. package/docs/index.html +1 -1
  20. package/docs/mergeByDepthStartEnd.mjs.html +2 -2
  21. package/docs/relaPlasticity.mjs.html +1 -1
  22. package/docs/relaPorous.mjs.html +1 -1
  23. package/docs/sepDepthStartEndByDepth.mjs.html +11 -12
  24. package/docs/smoothDepthByKey.mjs.html +1 -1
  25. package/docs/w-geo.html +7 -7
  26. package/g.mjs +1 -1
  27. package/g_0_1-checkDepth.mjs +1 -1
  28. package/g_0_2-checkDepthStartEnd.mjs +1 -1
  29. package/g_1_1-relaPorous.mjs +1 -1
  30. package/g_1_2-relaPlasticity.mjs +1 -1
  31. package/g_1_3-relaPsdContent.mjs +1 -1
  32. package/g_1_4-estmRelativeDensity.mjs +1 -1
  33. package/g_1_5-estmOcr.mjs +1 -1
  34. package/g_1_6-trimParams.mjs +1 -1
  35. package/g_1_7-calcClassifyUscs.mjs +1 -1
  36. package/g_2_1-calcLiquefaction-spt.mjs +1 -1
  37. package/g_2_1-calcLiquefactionSpt.mjs +1 -1
  38. package/g_2_2-calcLiquefaction-cpt.mjs +1 -1
  39. package/g_2_3-calcLiquefactionSptForCriticalPga.mjs +1 -1
  40. package/g_3_1-calcCpt.mjs +1 -1
  41. package/g_3_2-calcCptUnitWeight.mjs +1 -1
  42. package/g_3_3-calcCptClassify.mjs +1 -1
  43. package/g_3_4-calcCptVelocityShear.mjs +1 -1
  44. package/g_3_5-calcCptLayers.mjs +1 -1
  45. package/g_4_1-calcDepthStartEndByDepth.mjs +1 -1
  46. package/g_4_2-calcDepthByDepthStartEnd.mjs +1 -1
  47. package/g_4_3-calcDepthStartEndByGroup.mjs +1 -1
  48. package/g_4_4-calcDepthStartEndByConnect.mjs +1 -1
  49. package/g_4_5-calcDepthMaxMin.mjs +1 -1
  50. package/g_4_6-calcEstmVerticalStress.mjs +1 -1
  51. package/g_5_1-groupByDepthStartEnd.mjs +1 -1
  52. package/g_5_2-sepDepthStartEndByDepth.mjs +1 -1
  53. package/g_5_3-mergeByDepthStartEnd.mjs +1 -1
  54. package/g_5_4-cutByDepthStartEnd.mjs +1 -1
  55. package/g_5_5-complementDepthData.mjs +1 -1
  56. package/g_5_6-buildInterpFun.mjs +1 -1
  57. package/g_6-1-calcLayersByCompress.mjs +1 -1
  58. package/g_7_1-intrpPsdBySize.mjs +1 -1
  59. package/g_7_a1-calcPropInterfaceFrictionAngle.mjs +1 -1
  60. package/g_8_1-dtIntrpPsdBySize.mjs +1 -1
  61. package/g_8_2-dtIntrpPsdContentUscs.mjs +1 -1
  62. package/g_8_3-dtIntrpPsdContentIso.mjs +1 -1
  63. package/package.json +5 -5
  64. package/script.txt +6 -6
  65. package/src/WGeo.mjs +0 -1
  66. package/src/calcClassifyUscs.mjs +5 -5
  67. package/src/calcDepthStartEndByConnect.mjs +8 -8
  68. package/src/calcDepthStartEndByDepth.mjs +9 -9
  69. package/src/calcDepthStartEndByGroup.mjs +10 -10
  70. package/src/calcLayersByMerge.mjs +1 -2
  71. package/src/calcLiquefaction.mjs +128 -115
  72. package/src/checkDepth.mjs +6 -7
  73. package/src/checkDepthStartEnd.mjs +4 -6
  74. package/src/groupByDepthStartEnd.mjs +9 -13
  75. package/src/mergeByDepthStartEnd.mjs +1 -1
  76. package/src/sepDepthStartEndByDepth.mjs +10 -11
  77. package/test/calcClassifyUscs.test.mjs +7 -2
  78. package/test/calcCpt.test.mjs +7 -2
  79. package/test/calcCptLayers.test.mjs +21 -9
  80. package/test/calcCptUnitWeight.test.mjs +15 -6
  81. package/test/calcCptVelocityShear.test.mjs +29 -13
  82. package/test/calcDepthMaxMin.test.mjs +5 -1
  83. package/test/calcLayersByCompress.test.mjs +8 -2
  84. package/test/calcLiquefaction-cpt.test.mjs +11 -4
  85. package/test/calcLiquefaction-spt-rowsOut1.json +12 -12
  86. package/test/calcLiquefaction-spt-rowsOut2.json +26 -26
  87. package/test/calcLiquefaction-spt.test.mjs +12 -4
  88. package/test/calcLiquefactionSpt-resOut1.json +7 -7
  89. package/test/calcLiquefactionSpt-resOut2.json +14 -14
  90. package/test/calcLiquefactionSpt.test.mjs +12 -4
  91. package/test/calcLiquefactionSptForCriticalPga-resOut1.json +60 -60
  92. package/test/calcLiquefactionSptForCriticalPga-resOut2.json +130 -130
  93. package/test/calcLiquefactionSptForCriticalPga.test.mjs +11 -4
  94. package/test/calcPropInterfaceFrictionAngle.test.mjs +19 -8
  95. package/test/complementDepthData.test.mjs +9 -3
  96. package/src/judge.mjs +0 -61
@@ -9,7 +9,7 @@ jobs:
9
9
 
10
10
  strategy:
11
11
  matrix:
12
- node-version: [20.x]
12
+ node-version: [22.x]
13
13
 
14
14
  steps:
15
15
  - uses: actions/checkout@v2
@@ -11,10 +11,9 @@
11
11
  "skipFiles": [
12
12
  "<node_internals>/**"
13
13
  ],
14
- "program": "${workspaceFolder}/g3-calcLiquefaction-cpt.mjs",
14
+ "program": "${workspaceFolder}/g_2_1-calcLiquefaction-spt.mjs",
15
15
  "runtimeArgs": [
16
- "--max-old-space-size=14448",
17
- "--experimental-modules",
16
+ "--max-old-space-size=14448"
18
17
  ]
19
18
  }
20
19
  ]
package/README.md CHANGED
@@ -13,7 +13,6 @@ To view documentation or get support, visit [docs](https://yuda-lyu.github.io/w-
13
13
 
14
14
  ## Installation
15
15
  ### Using npm(ES6 module):
16
- > **Note:** w-geo is mainly dependent on `lodash-es` and `wsemi`.
17
16
  ```alias
18
17
  npm i w-geo
19
18
  ```
@@ -23,5 +22,5 @@ npm i w-geo
23
22
 
24
23
  Add script for w-geo.
25
24
  ```alias
26
- <script src="https://cdn.jsdelivr.net/npm/w-geo@1.1.59/dist/w-geo.umd.js"></script>
25
+ <script src="https://cdn.jsdelivr.net/npm/w-geo@1.1.61/dist/w-geo.umd.js"></script>
27
26
  ```
package/babel.config.js CHANGED
@@ -7,9 +7,10 @@ module.exports = {
7
7
  ],
8
8
  'plugins': [
9
9
  '@babel/plugin-transform-runtime',
10
- '@babel/plugin-syntax-import-assertions',
11
10
  '@babel/plugin-proposal-export-default-from',
12
- '@babel/plugin-proposal-nullish-coalescing-operator',
13
- '@babel/plugin-proposal-optional-chaining'
11
+ // '@babel/plugin-syntax-import-assertions', //已被棄用
12
+ // '@babel/plugin-proposal-nullish-coalescing-operator', //browser與nodejs已支援
13
+ // '@babel/plugin-proposal-object-rest-spread', //browser與nodejs已支援
14
+ // '@babel/plugin-proposal-optional-chaining', //browser與nodejs已支援
14
15
  ]
15
16
  }