graphql-timezone
Advanced tools
Comparing version 1.0.1 to 1.0.2
@@ -8,3 +8,3 @@ "use strict"; | ||
var graphql_scalar_1 = require("graphql-scalar"); | ||
var moment_timezone_1 = __importDefault(require("moment-timezone")); | ||
var timezones_1 = __importDefault(require("./timezones")); | ||
exports.default = (function (_a) { | ||
@@ -23,3 +23,2 @@ var name = _a.name, description = _a.description; | ||
}); | ||
// @ts-ignore | ||
exports.timezones = moment_timezone_1.default.tz.names(); | ||
exports.timezones = timezones_1.default; |
import { createStringScalar } from 'graphql-scalar'; | ||
import moment from 'moment-timezone'; | ||
import timezonesList from './timezones'; | ||
@@ -22,3 +22,2 @@ type Props = { | ||
// @ts-ignore | ||
export const timezones: string[] = moment.tz.names(); | ||
export const timezones: string[] = timezonesList; |
{ | ||
"name": "graphql-timezone", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "Timezone scalar type for GraphQL", | ||
@@ -8,3 +8,4 @@ "main": "dist/index.js", | ||
"scripts": { | ||
"prepublish": "tsc", | ||
"prepublish": "yarn generate:timezones && tsc", | ||
"generate:timezones": "ts-node ./generateTimezones.ts", | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
@@ -22,2 +23,3 @@ }, | ||
"@types/moment-timezone": "^0.5.30", | ||
"@types/node": "^14.6.2", | ||
"graphql": "^15.3.0", | ||
@@ -24,0 +26,0 @@ "graphql-scalar": "0.0.11", |
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
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
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
34078
12
254
7
2
+ Added@types/node@^14.6.2
+ Added@types/node@14.18.63(transitive)