github-schema 1.0.0 → 1.1.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/README.md +18 -5
- package/dist/chunk-GEXVORGP.mjs +6 -0
- package/dist/github-schema.cjs +2 -0
- package/dist/github-schema.d.cts +26413 -0
- package/dist/github-schema.d.ts +26413 -0
- package/dist/github-schema.mjs +1 -0
- package/dist/index.cjs +13 -4
- package/dist/index.d.cts +3 -29042
- package/dist/index.d.ts +3 -29042
- package/dist/index.mjs +2 -1
- package/dist/raw.cjs +8 -0
- package/dist/raw.d.cts +9 -0
- package/dist/raw.d.ts +9 -0
- package/dist/raw.mjs +1 -0
- package/github-schema.graphql +184 -15
- package/package.json +57 -22
- package/dist/index.d.mts +0 -29042
- package/github-schema.d.ts +0 -29038
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
package/dist/index.cjs
CHANGED
|
@@ -1,11 +1,20 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
var graphqlTag = require('graphql-tag');
|
|
4
4
|
|
|
5
|
-
function
|
|
5
|
+
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
var graphqlTag__default = /*#__PURE__*/_interopDefault(graphqlTag);
|
|
8
8
|
|
|
9
|
+
// src/index.ts
|
|
9
10
|
|
|
11
|
+
// src/raw.ts
|
|
12
|
+
function gql(raw, ...keys) {
|
|
13
|
+
return keys.length === 0 ? raw[0] : String.raw({ raw }, ...keys);
|
|
14
|
+
}
|
|
10
15
|
|
|
11
|
-
exports
|
|
16
|
+
Object.defineProperty(exports, 'gqlTyped', {
|
|
17
|
+
enumerable: true,
|
|
18
|
+
get: function () { return graphqlTag__default.default; }
|
|
19
|
+
});
|
|
20
|
+
exports.gql = gql;
|