Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

graphql-timezone

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

graphql-timezone - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

dist/generateTimezones.d.ts

5

dist/index.js

@@ -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;

6

package.json
{
"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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc