New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

shapeshifter

Package Overview
Dependencies
Maintainers
1
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

shapeshifter - npm Package Compare versions

Comparing version 6.0.0 to 6.1.0

lib/Builder.d.ts

13

CHANGELOG.md

@@ -1,3 +0,14 @@

# 6.0.0
# 6.1.0 - 04/10/18
#### 🚀 New
* Type `key` can now use shorthand syntax.
#### 🐞 Fixed
* Added missing `@types` to dependency list.
* Replaced `index.d.ts` with individual files generated with `--declaration`.
# 6.0.0 - 04/06/18
#### 💥 Breaking

@@ -4,0 +15,0 @@

2

lib/DefinitionFactory.js

@@ -26,3 +26,3 @@ "use strict";

if (typeof baseConfig === 'string') {
if (isPrimitive_1.default(normalizeType_1.default(baseConfig))) {
if (isPrimitive_1.default(baseConfig)) {
config.type = baseConfig;

@@ -29,0 +29,0 @@ }

@@ -9,4 +9,4 @@ "use strict";

var type = normalizeType_1.default(value);
return type === 'boolean' || type === 'number' || type === 'string';
return type === 'boolean' || type === 'number' || type === 'string' || type === 'key';
}
exports.default = isPrimitive;

@@ -166,4 +166,4 @@ "use strict";

default: {
var name = definition.name.value;
throw new TypeError("Unsupported GraphQL definition \"" + name + "\".");
var name_1 = definition.name.value;
throw new TypeError("Unsupported GraphQL definition \"" + name_1 + "\".");
}

@@ -170,0 +170,0 @@ }

{
"name": "shapeshifter",
"version": "6.0.0",
"version": "6.1.0",
"description": "Generate relational schemas, PropTypes, Flow aliases, and TypeScript interfaces from JSON, JS, or GraphQL schematic files.",

@@ -27,8 +27,8 @@ "keywords": [

"main": "./lib/index.js",
"types": "./lib/index.d.ts",
"module": "./esm/index.js",
"bin": "./bin/shapeshifter.js",
"scripts": {
"babel": "beemo typescript --node",
"build": "yarn run babel && yarn run build:dts",
"build:dts": "beemo run-script generate-dts",
"babel": "beemo typescript --node --declaration",
"build": "yarn run babel",
"check": "flow check && tsc --noEmit --lib esnext,esnext.asynciterable ./tests/expected/graphql/typescript/*.ts ./tests/expected/common/typescript/*.ts",

@@ -67,14 +67,13 @@ "clean": "rimraf ./{lib,esm}/",

"dependencies": {
"@types/graphql": "^0.13.0",
"@types/js-yaml": "^3.11.1",
"@types/webpack": "^4.1.3",
"@types/yargs": "^11.0.0",
"babel-runtime": "^6.26.0",
"graphql": "^0.13.2",
"js-yaml": "^3.11.0",
"optimal": "^0.18.0",
"optimal": "^0.19.0",
"yargs": "^11.0.0"
},
"devDependencies": {
"@milesj/build-tool-config": "^0.80.0",
"@types/graphql": "^0.13.0",
"@types/js-yaml": "^3.11.1",
"@types/webpack": "^4.1.3",
"@milesj/build-tool-config": "^0.82.2",
"flow-bin": "^0.69.0",

@@ -85,3 +84,3 @@ "prop-types": "^15.6.1",

"webpack-cli": "^2.0.14",
"webpack-dev-server": "^3.1.1"
"webpack-dev-server": "^3.1.3"
},

@@ -88,0 +87,0 @@ "beemo": {

Sorry, the diff of this file is not supported yet

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