@shopify/koa-shopify-graphql-proxy
Advanced tools
Comparing version 7.0.2 to 7.0.3
@@ -29,3 +29,2 @@ 'use strict'; | ||
ctx.throw(403, 'Unauthorized'); | ||
return; | ||
} | ||
@@ -32,0 +31,0 @@ |
import { Context } from 'koa'; | ||
export declare const PROXY_BASE_PATH = "/graphql"; | ||
export declare const GRAPHQL_PATH_PREFIX = "/admin/api"; | ||
export declare type ApiVersion = '2020-10' | '2021-01' | '2021-04' | '2021-07' | '2021-10' | '2022-01' | '2022-04' | '2022-07' | '2022-10' | 'unstable' | 'unversioned' | (string & {}); | ||
export type ApiVersion = '2020-10' | '2021-01' | '2021-04' | '2021-07' | '2021-10' | '2022-01' | '2022-04' | '2022-07' | '2022-10' | 'unstable' | 'unversioned' | (string & {}); | ||
interface DefaultProxyOptions { | ||
@@ -12,5 +12,5 @@ version: ApiVersion; | ||
} | ||
declare type ProxyOptions = PrivateShopOption | DefaultProxyOptions; | ||
type ProxyOptions = PrivateShopOption | DefaultProxyOptions; | ||
export default function shopifyGraphQLProxy(proxyOptions: ProxyOptions): (ctx: Context, next: () => Promise<any>) => Promise<void>; | ||
export {}; | ||
//# sourceMappingURL=shopify-graphql-proxy.d.ts.map |
@@ -1,1 +0,1 @@ | ||
module.exports = require("./build/cjs/index.js"); | ||
module.exports = require("./build/cjs/index.js"); |
{ | ||
"name": "@shopify/koa-shopify-graphql-proxy", | ||
"version": "7.0.2", | ||
"version": "7.0.3", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "description": "A wrapper around `koa-better-http-proxy` which allows easy proxying of GraphQL requests from an embedded Shopify app", |
@@ -12,3 +12,3 @@ # `@shopify/koa-shopify-graphql-proxy` | ||
```bash | ||
$ yarn add @shopify/koa-shopify-graphql-proxy | ||
yarn add @shopify/koa-shopify-graphql-proxy | ||
``` | ||
@@ -15,0 +15,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
12497