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

vuex-orm-decorators

Package Overview
Dependencies
Maintainers
1
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vuex-orm-decorators - npm Package Compare versions

Comparing version 2.0.0-beta.4 to 2.0.0-beta.5

10

dist/plugins/Date/DateType.js

@@ -19,8 +19,14 @@ import { Type } from '@vuex-orm/core';

}
if (value === undefined && typeof this.value !== 'number') {
return this.value || new Date();
if (typeof value === 'number') {
this.value = value;
}
if (this.isMilliseconds(value)) {
this.value = parseInt(value);
}
return new Date(this.value);
}
isMilliseconds(value) {
return parseInt(value).toString().length > 12;
}
}
//# sourceMappingURL=DateType.js.map

2

package.json
{
"name": "vuex-orm-decorators",
"version": "2.0.0-beta.4",
"version": "2.0.0-beta.5",
"description": "Simple Typescript decorators to improve the vuex-orm experience in Typescript by introducing typed property access.",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

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