Socket
Socket
Sign inDemoInstall

prismic.io

Package Overview
Dependencies
0
Maintainers
1
Versions
77
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 3.5.5 to 3.5.6

.eslintrc.json

6

lib/documents.js
"use strict";
var DateUtils = require('./utils/date');
/**

@@ -557,7 +559,7 @@ * Functions to access fragments: superclass for Document and Doc (from Group), not supposed to be created directly

*/
this.firstPublicationDate = firstPublicationDate ? new Date(firstPublicationDate) : null;
this.firstPublicationDate = DateUtils.parse(firstPublicationDate);
/**
* The last publication date of the document
*/
this.lastPublicationDate = lastPublicationDate ? new Date(lastPublicationDate) : null;
this.lastPublicationDate = DateUtils.parse(lastPublicationDate);
/**

@@ -564,0 +566,0 @@ * The language code of the document

"use strict";
var documents = require('./documents');
var WithFragments = documents.WithFragments,
GroupDoc = documents.GroupDoc;
var DateUtils = require('./utils/date');
var WithFragments = documents.WithFragments;
var GroupDoc = documents.GroupDoc;

@@ -450,10 +451,3 @@ /**

*/
// Adding ":" in the locale if needed, so JS considers it ISO8601-compliant
if (data) {
var correctIso8601Date = (data.length == 24) ? data.substring(0, 22) + ':' + data.substring(22, 24) : data;
this.value = new Date(correctIso8601Date);
}
else {
this.value = null;
}
this.value = DateUtils.parse(data);
}

@@ -1418,2 +1412,4 @@

SliceZone: SliceZone,
SimpleSlice: SimpleSlice,
CompositeSlice: CompositeSlice,
initField: initField,

@@ -1420,0 +1416,0 @@ parseFragments: parseFragments,

@@ -13,18 +13,22 @@ {

],
"version": "3.5.5",
"version": "3.5.6",
"engines": {
"node": ">=4.8.1",
"npm": ">=2.15.11"
},
"devDependencies": {
"babel-preset-es2015": "^6.3.13",
"babelify": "^7.2.0",
"browserify": "^12.0.1",
"chai": "*",
"codeclimate-test-reporter": "0.0.4",
"es6-promise": "^3.2.1",
"eslint": "^2.12.0",
"istanbul": "^0.4.4",
"jsdoc": "^3.4.0",
"mocha": "*",
"rimraf": "^2.5.4",
"uglify-js": "^2.6.1",
"vinyl-buffer": "^1.0.0",
"vinyl-source-stream": "^1.1.0"
"babel-preset-es2015": "~6.24.0",
"babelify": "~7.3.0",
"browserify": "~14.1.0",
"chai": "~3.5.0",
"codeclimate-test-reporter": "~0.4.1",
"es6-promise": "~4.1.0",
"eslint": "~3.18.0",
"istanbul": "~0.4.5",
"jsdoc": "~3.4.3",
"mocha": "~3.2.0",
"rimraf": "~2.6.1",
"uglify-js": "~2.8.16",
"vinyl-buffer": "~1.0.0",
"vinyl-source-stream": "~1.1.0"
},

@@ -31,0 +35,0 @@ "repository": {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc