caicai_utils_00 1.0.0 → 1.1.0

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 (3) hide show
  1. package/index.js +1 -1
  2. package/math.js +4 -0
  3. package/package.json +1 -1
package/index.js CHANGED
@@ -1,2 +1,2 @@
1
- export { sum, mul, sub } from './math'
1
+ export { sum, mul, sub, square } from './math'
2
2
  export { formatCount, formatDate } from './format'
package/math.js CHANGED
@@ -9,3 +9,7 @@ export function mul(num1, num2) {
9
9
  export function sub(num1, num2) {
10
10
  return num1 - num2
11
11
  }
12
+
13
+ export function square(num1, num2) {
14
+ return num1**num2
15
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "caicai_utils_00",
3
- "version": "1.0.0",
3
+ "version": "1.1.0",
4
4
  "main": "index.js",
5
5
  "keywords": ["math","format", "caicai"],
6
6
  "author": "caicai",