@tko/utils.functionrewrite 4.0.0-beta1.0 → 4.0.0-beta1.3
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/dist/functionRewrite.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +2 -2
package/dist/functionRewrite.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// @tko/utils.functionrewrite 🥊 4.0.0-beta1.
|
|
1
|
+
// @tko/utils.functionrewrite 🥊 4.0.0-beta1.3 ESM
|
|
2
2
|
const FUNCTION_REX = /\bfunction\s*\(([^)]*)\)\s*\{\s*(?:(return\s)?([^}]+?)[;\s]*)?\}/g;
|
|
3
3
|
export default function functionRewrite(bindingString) {
|
|
4
4
|
return bindingString.replace(FUNCTION_REX, (match, args, returnKeyword, rv) => {
|
package/dist/index.cjs
CHANGED
package/dist/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
// @tko/utils.functionrewrite 🥊 4.0.0-beta1.
|
|
1
|
+
// @tko/utils.functionrewrite 🥊 4.0.0-beta1.3 ESM
|
|
2
2
|
export { default as functionRewrite } from "./functionRewrite";
|
package/dist/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
// @tko/utils.functionrewrite 🥊 4.0.0-beta1.
|
|
1
|
+
// @tko/utils.functionrewrite 🥊 4.0.0-beta1.3 MJS
|
|
2
2
|
export { default as functionRewrite } from "./functionRewrite";
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "4.0.0-beta1.
|
|
2
|
+
"version": "4.0.0-beta1.3",
|
|
3
3
|
"name": "@tko/utils.functionrewrite",
|
|
4
4
|
"description": "Rewrite `function {}` as lambdas (=>)",
|
|
5
5
|
"module": "dist/utils.functionrewrite.js",
|
|
@@ -39,5 +39,5 @@
|
|
|
39
39
|
"type": "git",
|
|
40
40
|
"url": "git+https://github.com/knockout/tko.git"
|
|
41
41
|
},
|
|
42
|
-
"gitHead": "
|
|
42
|
+
"gitHead": "a8843acb8ae085915115e53a4e057b30731c635e"
|
|
43
43
|
}
|