define-constants
Advanced tools
Comparing version 1.0.0 to 1.0.1
{ | ||
"name": "define-constants", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "description", | ||
@@ -5,0 +5,0 @@ "keywords": [], |
@@ -17,10 +17,14 @@ # define-constants | ||
const { | ||
MY_NAMESPACE, | ||
} = defineConstants() | ||
const { | ||
MY_CONSTANT, | ||
MY_FAVOURITE_CONSTANT, | ||
MY_CONSTANT_FOR_FUN, | ||
} = defineConstants("MY_NAME_SPACE") | ||
} = defineConstants(MY_NAMESPACE) | ||
// MY_CONSTANT === "MY_NAME_SPACE.MY_CONSTANT" | ||
// MY_FAVOURITE_CONSTANT === "MY_NAME_SPACE.MY_FAVOURITE_CONSTANT" | ||
// MY_CONSTANT_FOR_FUN === "MY_NAME_SPACE.MY_CONSTANT_FOR_FUN" | ||
// MY_CONSTANT === "MY_NAMESPACE.MY_CONSTANT" | ||
// MY_FAVOURITE_CONSTANT === "MY_NAMESPACE.MY_FAVOURITE_CONSTANT" | ||
// MY_CONSTANT_FOR_FUN === "MY_NAMESPACE.MY_CONSTANT_FOR_FUN" | ||
``` | ||
@@ -33,9 +37,9 @@ | ||
MY_CONSTANT_FOR_FUN, | ||
} = defineConstants("MY_NAME_SPACE", "/") | ||
} = defineConstants("MY_NAMESPACE", "/") | ||
// MY_CONSTANT === "MY_NAME_SPACE/MY_CONSTANT" | ||
// MY_FAVOURITE_CONSTANT === "MY_NAME_SPACE/MY_FAVOURITE_CONSTANT" | ||
// MY_CONSTANT_FOR_FUN === "MY_NAME_SPACE/MY_CONSTANT_FOR_FUN" | ||
// MY_CONSTANT === "MY_NAMESPACE/MY_CONSTANT" | ||
// MY_FAVOURITE_CONSTANT === "MY_NAMESPACE/MY_FAVOURITE_CONSTANT" | ||
// MY_CONSTANT_FOR_FUN === "MY_NAMESPACE/MY_CONSTANT_FOR_FUN" | ||
``` | ||
TODO: babel plugin to transform the code at compile time. |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
119130
44