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

bem-promised-models

Package Overview
Dependencies
Maintainers
1
Versions
46
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bem-promised-models - npm Package Compare versions

Comparing version 0.0.12 to 0.0.13

42

blocks/promised-models/__model/promised-models__model.js

@@ -688,3 +688,4 @@ (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){

Model: require('./types/model'),
ModelsList: require('./types/models-list')
ModelsList: require('./types/models-list'),
Object: require('./types/object')
},

@@ -718,3 +719,3 @@

},{"./attribute":2,"./inheritable":3,"./storage":6,"./types/boolean":7,"./types/list":8,"./types/model":9,"./types/models-list":10,"./types/number":11,"./types/string":12,"./uniq":13,"eventemitter3":14}],6:[function(require,module,exports){
},{"./attribute":2,"./inheritable":3,"./storage":6,"./types/boolean":7,"./types/list":8,"./types/model":9,"./types/models-list":10,"./types/number":11,"./types/object":12,"./types/string":13,"./uniq":14,"eventemitter3":15}],6:[function(require,module,exports){
/**

@@ -1177,3 +1178,3 @@ * Storage

},{"../attribute":2,"../list":4,"../uniq":13}],11:[function(require,module,exports){
},{"../attribute":2,"../list":4,"../uniq":14}],11:[function(require,module,exports){
/**

@@ -1207,2 +1208,33 @@ * Number attribute

/**
* Serializeable object attribute
*/
var StringAttribute = require('./string');
module.exports = StringAttribute.inherit({
/**
* @override {StringAttribute}
*/
default: 'null',
/**
* @override {StringAttribute}
*/
get: function () {
return JSON.parse(this.value);
},
/**
* @override {StringAttribute}
*/
parse: function (value) {
if (typeof value !== 'string') {
return JSON.stringify(value);
} else {
return value;
}
}
});
},{"./string":13}],13:[function(require,module,exports){
/**
* String attribute

@@ -1222,3 +1254,3 @@ */

},{"../attribute":2}],13:[function(require,module,exports){
},{"../attribute":2}],14:[function(require,module,exports){
/**

@@ -1236,3 +1268,3 @@ * generate uniq strings

},{}],14:[function(require,module,exports){
},{}],15:[function(require,module,exports){
'use strict';

@@ -1239,0 +1271,0 @@

4

package.json
{
"description": "BEM wrapper for promised-models",
"name": "bem-promised-models",
"version": "0.0.12",
"version": "0.0.13",
"repository": "git@github.com:delfrrr/bem-promised-models.git",

@@ -31,3 +31,3 @@ "keywords": [

"dependencies": {
"promised-models": "0.0.10"
"promised-models": "0.0.11"
},

@@ -34,0 +34,0 @@ "devDependencies": {

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