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

@sanity/schema

Package Overview
Dependencies
Maintainers
7
Versions
1381
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sanity/schema - npm Package Compare versions

Comparing version 0.117.0-alpha.c32e5de9 to 0.117.0-alpha.ccd15003

lib/types/date.js

15

lib/Schema.js

@@ -9,6 +9,2 @@ 'use strict';

var _generateHelpUrl = require('@sanity/generate-help-url');
var _generateHelpUrl2 = _interopRequireDefault(_generateHelpUrl);
var _types = require('./types');

@@ -20,8 +16,4 @@

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
var hasWarned = false;
function compileRegistry(schemaDef) {

@@ -51,9 +43,2 @@ var registry = Object.assign(Object.create(null), types);

function extendMember(memberDef) {
if (memberDef.type === 'date') {
if (!hasWarned) {
// eslint-disable-next-line no-console
console.warn('Heads up! The `date` type has been renamed to `richDate`. Please update your schema. See %s for more info.', (0, _generateHelpUrl2.default)('migrate-to-rich-date'));
hasWarned = true;
}
}
ensure(memberDef.type);

@@ -60,0 +45,0 @@ return registry[memberDef.type].extend(memberDef, extendMember).get();

@@ -34,2 +34,20 @@ 'use strict';

var _datetime = require('./datetime');
Object.defineProperty(exports, 'datetime', {
enumerable: true,
get: function get() {
return _datetime.DateTimeType;
}
});
var _date = require('./date');
Object.defineProperty(exports, 'date', {
enumerable: true,
get: function get() {
return _date.DateType;
}
});
var _boolean = require('./boolean');

@@ -36,0 +54,0 @@

4

package.json
{
"name": "@sanity/schema",
"version": "0.117.0-alpha.c32e5de9",
"version": "0.117.0-alpha.ccd15003",
"description": "",

@@ -35,3 +35,3 @@ "main": "lib/index.js",

"dependencies": {
"@sanity/generate-help-url": "0.117.0-alpha.c32e5de9",
"@sanity/generate-help-url": "0.117.0-alpha.ccd15003",
"arrify": "^1.0.1",

@@ -38,0 +38,0 @@ "lodash": "^4.17.4"

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