grafast 0.0.1-0.20 → 0.0.1-0.22
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/dist/args.d.ts +1 -1
- package/dist/envelop.js +4 -4
- package/dist/grafastGraphql.d.ts +1 -1
- package/dist/index.js +4 -4
- package/dist/interfaces.d.ts +2 -2
- package/package.json +2 -2
package/dist/args.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { ExecutionArgs } from "graphql";
|
|
2
|
-
export declare function hookArgs(args: ExecutionArgs, ctx: Partial<Grafast.RequestContext
|
|
2
|
+
export declare function hookArgs(args: ExecutionArgs, resolvedPreset: GraphileConfig.ResolvedPreset, ctx: Partial<Grafast.RequestContext>): ExecutionArgs | PromiseLike<ExecutionArgs>;
|
|
3
3
|
//# sourceMappingURL=args.d.ts.map
|
package/dist/envelop.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
const { Buffer } = require('node:buffer');
|
|
2
2
|
const { scryptSync, createDecipheriv } = require('node:crypto');
|
|
3
3
|
const pkgName = "grafast";
|
|
4
|
-
const pkgVersion = "0.0.1-0.
|
|
4
|
+
const pkgVersion = "0.0.1-0.22";
|
|
5
5
|
|
|
6
6
|
const RESET = '\x1b[0m';
|
|
7
7
|
const BOLD_BLACK_ON_RED = '\x1b[40;31;1;7m';
|
|
@@ -28,12 +28,12 @@ if (typeof password !== 'string') {
|
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
const algorithm = "aes-192-cbc";
|
|
31
|
-
const salt = "We wouldn't be able to do so much OSS without sponsorship.
|
|
31
|
+
const salt = "We wouldn't be able to do so much OSS without sponsorship. 43561550332783194";
|
|
32
32
|
const key = scryptSync(password, salt, 24);
|
|
33
|
-
const ivBuffer = Buffer.from("
|
|
33
|
+
const ivBuffer = Buffer.from("98rxJr+e9n+5XN5whB/tDQ==", "base64");
|
|
34
34
|
const iv = new Uint8Array(ivBuffer.buffer, ivBuffer.byteOffset, ivBuffer.length);
|
|
35
35
|
const decipher = createDecipheriv(algorithm, key, iv);
|
|
36
|
-
const encrypted = "
|
|
36
|
+
const encrypted = "lt7XM9qNQSI3bPA8TA/ukiDx4cBcMeBEpAm/M9PFREYpUTTS+aWPSkag2c8E4Y83IIsayFpserdFzUCUzYCaT+RtirnPdd/PNFDiP89epku/pK3tWHNo6h6M1pVrjcQk2WRsAcplEeTbf6eNsWE4/7+796Yu6lcPolcVjs+lh7L6T8thyxGboWxN5ATmQffDAL84tOBHPFsZiz7HHstJoN1HIRAIbIy/FpJVJVldWbTbUZehdznZvZA355DLTRaRDrkiZJL3Mn3by6RYP6TvbuuGH6TszVjoXs3kBO0p3VA7px7DcNn84DxRn7ZWsFE2EWHkns0h5IteiUqQKGjviWzi+4/rAkIhh+95FSVjvUZxL0Z3fFaHjHsMWeSuj3T9yY0PFvw58CxtSh/uXuXXPUj7yYQ9OO0GQFky9P2QI1raUxnrLN42f5DbPkHeUzQ3BnIWy7I5p0vM0PkZsxHa06W93KPi95JDKGnGPKu3r82qJ7dG9gqtiGHMpZ3skoz3kGb8NQMlfoB5dCJ8AencoJID/eqfONocRkLGGZ6+CuVJ4kxfYRQAVAJJeNNWrlPoTgNkIw9KefuE7nyr3XwjzR8/FHOJtjEpCy3NARQPHjZje5NgcltUMzRe/afvFzMcUmKp0R4T/7m4u29Iu5uCMsQ6ZzDwy20eH2lnrXl5smbw2ilcM5BJu58O+xpn+sR7bisG4AzStB2rj6CbNq17bU4yy8maZZUobn32i5mxGATkrcOniNLhuAMUk+S4Th9aKEHlOiM+DN97Er/bi/pOB/uCBtQ2lkTcjlK6fjMWrab2gbpOP26Anr88IIDH/TNaJWkWssf3ojF9MkEdWMgX9VVBRGs1IeUF0BtaR6AFU+zOsw3wNFQlK8QHb58EGc3pQk0wXbG1YBS+zdnVkUtQdE2mIWjved11hxSInyTz5XrG+NpEXX38/AOhBO1mesqUDZxT8bxg1J50Wij8EETWoo8iUluAd1xFKOqnX7S0c+VY1JTA56ozn7oBn8n3wn0nh206KizB+H0YfdpvD6JdUpA/k6NmweLDC6guzGhbiMnp+4tegAX/g0ktd6HeETKUex5MvbFeLw6zdmP/sAQMwh9JmuRoTxiGeTVePtH6QtZPud96x+v2Sz0VbkHSaydDUVdwiX4xEu0ec5Bz0hajI10w3OBvfJ2Mlne61V/dW3qkRA301RvFZHDZBUPRBv7DhonNICRv44oB6e0A8J/nzS98ey1r2pSjA25ReW9TFwdLDTIKvbYV30TadMQhkVFXhXvfNxrIYSNZVyB7Vp6K1qqRXpGUu4Kj/JaxnvqHTvBD9aRI6jVwHuiwITzP+YAPAT2CJargosvfE+hwRKwYxnFxriSxtQJ7nCwO8/bni1ZVJG4xnvW8gkMtltD9MySzjeDUBx5D30ygrq+p6FzfGKFoaDzYPMNJdcA96Lv38qDxZd5gLbmCdAWFJe7441noLS+ov0uGcPvYIFJAsv06/1an6Ur5w048YJSQubu1F7/D5fot4ubTsVMPnYRIHT+pwzAo3D9IzT78jOgD3mX8JID8S8uJ7SBTLDfiFODxNt8cOLOcpSv8EJZqMtpiE8un67X8LOy/Y6+YdRIkk5ltiafVUUeFIFidWd+QST9cJbhjD3FPtjVBozKnkxVsby0AioglCgZql4sQBFkSaJql+jIMSHiOJtnmltf2TC/a3fgdcjdTIYL+yw+V70JovQE9k21BzgPAn5GNrLUKn4W8uL3OuZLYhOjS6OTGR6XPK0h1xxStMBaGEDf7pM7kEBWxTW9Vc9b/j4ZhudZiy+lKYA=="
|
|
37
37
|
let decrypted;
|
|
38
38
|
try {
|
|
39
39
|
decrypted = decipher.update(encrypted, 'base64', 'utf8') + decipher.final('utf8');
|
package/dist/grafastGraphql.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { AsyncExecutionResult, ExecutionResult, GraphQLArgs } from "graphql";
|
|
2
2
|
import type { PromiseOrValue } from "graphql/jsutils/PromiseOrValue";
|
|
3
3
|
export declare function grafastGraphql(args: GraphQLArgs, resolvedPreset?: GraphileConfig.ResolvedPreset, ctx?: Partial<Grafast.RequestContext>): PromiseOrValue<ExecutionResult | AsyncGenerator<AsyncExecutionResult, void, undefined>>;
|
|
4
|
-
export declare function grafastGraphqlSync(args: GraphQLArgs, resolvedPreset?: GraphileConfig.ResolvedPreset): ExecutionResult;
|
|
4
|
+
export declare function grafastGraphqlSync(args: GraphQLArgs, resolvedPreset?: GraphileConfig.ResolvedPreset, ctx?: Partial<Grafast.RequestContext>): ExecutionResult;
|
|
5
5
|
//# sourceMappingURL=grafastGraphql.d.ts.map
|