w-geo 1.1.60 → 1.1.62

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 (90) hide show
  1. package/.github/workflows/ci-test.yml +1 -1
  2. package/.vscode/launch.json +1 -2
  3. package/README.md +2 -3
  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 +1 -1
  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 +1 -1
  26. package/g.mjs +3 -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 +2 -1
  30. package/g_1_2-relaPlasticity.mjs +2 -1
  31. package/g_1_3-relaPsdContent.mjs +2 -1
  32. package/g_1_4-estmRelativeDensity.mjs +2 -1
  33. package/g_1_5-estmOcr.mjs +2 -1
  34. package/g_1_6-trimParams.mjs +2 -1
  35. package/g_1_7-calcClassifyUscs.mjs +2 -1
  36. package/g_1_8-calcClassifyUscs.mjs +72 -0
  37. package/g_2_1-calcLiquefaction-spt.mjs +2 -1
  38. package/g_2_1-calcLiquefactionSpt.mjs +2 -1
  39. package/g_2_2-calcLiquefaction-cpt.mjs +2 -1
  40. package/g_2_3-calcLiquefactionSptForCriticalPga.mjs +2 -1
  41. package/g_3_1-calcCpt.mjs +2 -1
  42. package/g_3_2-calcCptUnitWeight.mjs +1 -1
  43. package/g_3_3-calcCptClassify.mjs +2 -1
  44. package/g_3_4-calcCptVelocityShear.mjs +2 -1
  45. package/g_3_5-calcCptLayers.mjs +2 -1
  46. package/g_4_1-calcDepthStartEndByDepth.mjs +1 -1
  47. package/g_4_2-calcDepthByDepthStartEnd.mjs +1 -1
  48. package/g_4_3-calcDepthStartEndByGroup.mjs +1 -16
  49. package/g_4_4-calcDepthStartEndByConnect.mjs +1 -1
  50. package/g_4_5-calcDepthMaxMin.mjs +2 -1
  51. package/g_4_6-calcEstmVerticalStress.mjs +3 -1
  52. package/g_5_1-groupByDepthStartEnd.mjs +2 -1
  53. package/g_5_2-sepDepthStartEndByDepth.mjs +1 -1
  54. package/g_5_3-mergeByDepthStartEnd.mjs +1 -1
  55. package/g_5_4-cutByDepthStartEnd.mjs +2 -1
  56. package/g_5_5-complementDepthData.mjs +3 -1
  57. package/g_5_6-buildInterpFun.mjs +2 -1
  58. package/g_6-1-calcLayersByCompress.mjs +1 -1
  59. package/g_7_1-intrpPsdBySize.mjs +1 -1
  60. package/g_7_a1-calcPropInterfaceFrictionAngle.mjs +2 -1
  61. package/g_8_1-dtIntrpPsdBySize.mjs +1 -1
  62. package/g_8_2-dtIntrpPsdContentUscs.mjs +1 -1
  63. package/g_8_3-dtIntrpPsdContentIso.mjs +1 -1
  64. package/package.json +6 -7
  65. package/script.txt +6 -7
  66. package/src/WGeo.mjs +0 -1
  67. package/src/calcClassifyUscs.mjs +5 -5
  68. package/src/calcDepthStartEndByConnect.mjs +8 -8
  69. package/src/calcDepthStartEndByDepth.mjs +9 -9
  70. package/src/calcDepthStartEndByGroup.mjs +10 -10
  71. package/src/calcLayersByMerge.mjs +1 -2
  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.test.mjs +11 -4
  86. package/test/calcLiquefactionSpt.test.mjs +11 -4
  87. package/test/calcLiquefactionSptForCriticalPga.test.mjs +11 -4
  88. package/test/calcPropInterfaceFrictionAngle.test.mjs +19 -8
  89. package/test/complementDepthData.test.mjs +9 -3
  90. 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
@@ -13,8 +13,7 @@
13
13
  ],
14
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
@@ -12,16 +12,15 @@ A tool for geotech analysis.
12
12
  To view documentation or get support, visit [docs](https://yuda-lyu.github.io/w-geo/w-geo.html).
13
13
 
14
14
  ## Installation
15
+
15
16
  ### Using npm(ES6 module):
16
- > **Note:** w-geo is mainly dependent on `lodash-es` and `wsemi`.
17
17
  ```alias
18
18
  npm i w-geo
19
19
  ```
20
20
 
21
21
  ### In a browser(UMD module):
22
- > **Note:** w-geo does not dependent on any package.
23
22
 
24
23
  Add script for w-geo.
25
24
  ```alias
26
- <script src="https://cdn.jsdelivr.net/npm/w-geo@1.1.60/dist/w-geo.umd.js"></script>
25
+ <script src="https://cdn.jsdelivr.net/npm/w-geo@1.1.62/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
  }