alaska-field-mixed
Advanced tools
Comparing version 0.10.1 to 0.11.0
34
index.js
@@ -1,28 +0,12 @@ | ||
/** | ||
* @copyright Maichong Software Ltd. 2016 http://maichong.it | ||
* @date 2016-03-22 | ||
* @author Liang <liang@maichong.it> | ||
*/ | ||
// @flow | ||
'use strict'; | ||
import { Field } from 'alaska'; | ||
import mongoose from 'mongoose'; | ||
const alaska = require('alaska'); | ||
const mongoose = require('mongoose'); | ||
class MixedField extends alaska.Field { | ||
export default class MixedField extends Field { | ||
static plain = mongoose.Schema.Types.Mixed; | ||
static defaultOptions = { | ||
cell: 'MixedFieldCell', | ||
view: 'MixedFieldView', | ||
}; | ||
} | ||
MixedField.views = { | ||
cell: { | ||
name: 'MixedFieldCell', | ||
path: __dirname + '/lib/cell.js' | ||
}, | ||
view: { | ||
name: 'MixedFieldView', | ||
path: __dirname + '/lib/view.js' | ||
} | ||
}; | ||
MixedField.plain = mongoose.Schema.Types.Mixed; | ||
module.exports = MixedField; |
{ | ||
"name": "alaska-field-mixed", | ||
"version": "0.10.1", | ||
"version": "0.11.0", | ||
"description": "Alaska mixed data field", | ||
@@ -10,25 +10,5 @@ "keywords": [ | ||
"main": "index.js", | ||
"scripts": { | ||
"build": "babel ./src --out-dir ./lib", | ||
"watch": "babel ./src --out-dir ./lib -w", | ||
"prebuild": "rimraf lib", | ||
"prepublish": "npm run build" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/maichong/alaska-field-mixed.git" | ||
}, | ||
"author": { | ||
"email": "liang@maichong.it", | ||
"name": "liang", | ||
"url": "https://github.com/liangxingchen" | ||
}, | ||
"license": "MIT", | ||
"bugs": { | ||
"url": "https://github.com/maichong/alaska-field-mixed/issues" | ||
}, | ||
"homepage": "https://github.com/maichong/alaska-field-mixed#readme", | ||
"peerDependencies": { | ||
"alaska": "*" | ||
} | ||
"repository": "https://github.com/maichong/alaska/tree/master/packages/alaska-field-mixed", | ||
"author": "Liang <liang@maichong.it> (https://github.com/liangxingchen)", | ||
"license": "MIT" | ||
} |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
0
1
3801
5
132
2
2
1