Comparing version 0.1.1 to 0.1.2
@@ -107,3 +107,3 @@ (function (global, factory) { | ||
var version = (function () { | ||
return "0.1.1"; | ||
return "0.1.2"; | ||
}); | ||
@@ -110,0 +110,0 @@ |
@@ -1,1 +0,1 @@ | ||
!function(n,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e(n.ddz={})}(this,function(n){"use strict";var e={3:1,4:2,5:3,6:4,7:5,8:6,9:7,0:8,J:9,Q:10,K:11,A:12,2:13,X:14,D:15},t={"单张":1,"对子":2,"火箭":2,"三张":3,"炸弹":4,"三带一":4,"五张顺子":5,"三带二":5,"六张顺子":6,"三连对":6,"四带二":6,"二连飞机":6,"七张顺子":7,"八张顺子":8,"四连对":8,"二连飞机带二张":8,"九张顺子":9,"三连飞机":9,"十张顺子":10,"五连对":10,"二连飞机带二对":10,"十一张顺子":11,"十二张顺子":12,"六连对":12,"四连飞机":12,"三连飞机带三张":12,"七连对":14,"五连飞机":15,"三连飞机带三对":15,"八连对":16,"四连飞机带四张":16,"九连对":18,"六连飞机":18,"十连对":20,"五连飞机带五张":20},r={1:"3",2:"4",3:"5",4:"6",5:"7",6:"8",7:"9",8:"0",9:"J",10:"Q",11:"K",12:"A",13:"2",14:"X",15:"D"};n.card=function(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return(e[n]||n)<<4+t},n.cards=function(){return[17,18,19,20,33,34,35,36,49,50,51,52,65,66,67,68,81,82,83,84,97,98,99,100,113,114,115,116,129,130,131,132,145,146,147,148,161,162,163,164,177,178,179,180,193,194,195,196,209,210,211,212,224,240]},n.length=function(n){return t[n]},n.point=function(n){return e[n]||n>>4},n.surface=function(n){return r[n]},n.suit=function(n){return 15&n},n.version=function(){return"0.1.1"},Object.defineProperty(n,"__esModule",{value:!0})}); | ||
!function(n,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e(n.ddz={})}(this,function(n){"use strict";var e={3:1,4:2,5:3,6:4,7:5,8:6,9:7,0:8,J:9,Q:10,K:11,A:12,2:13,X:14,D:15},t={"单张":1,"对子":2,"火箭":2,"三张":3,"炸弹":4,"三带一":4,"五张顺子":5,"三带二":5,"六张顺子":6,"三连对":6,"四带二":6,"二连飞机":6,"七张顺子":7,"八张顺子":8,"四连对":8,"二连飞机带二张":8,"九张顺子":9,"三连飞机":9,"十张顺子":10,"五连对":10,"二连飞机带二对":10,"十一张顺子":11,"十二张顺子":12,"六连对":12,"四连飞机":12,"三连飞机带三张":12,"七连对":14,"五连飞机":15,"三连飞机带三对":15,"八连对":16,"四连飞机带四张":16,"九连对":18,"六连飞机":18,"十连对":20,"五连飞机带五张":20},r={1:"3",2:"4",3:"5",4:"6",5:"7",6:"8",7:"9",8:"0",9:"J",10:"Q",11:"K",12:"A",13:"2",14:"X",15:"D"};n.card=function(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return((e[n]||n)<<4)+t},n.cards=function(){return[17,18,19,20,33,34,35,36,49,50,51,52,65,66,67,68,81,82,83,84,97,98,99,100,113,114,115,116,129,130,131,132,145,146,147,148,161,162,163,164,177,178,179,180,193,194,195,196,209,210,211,212,224,240]},n.length=function(n){return t[n]},n.point=function(n){return e[n]||n>>4},n.surface=function(n){return r[n]},n.suit=function(n){return 15&n},n.version=function(){return"0.1.2"},Object.defineProperty(n,"__esModule",{value:!0})}); |
{ | ||
"name": "ddz", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"description": "斗地主工具包", | ||
@@ -9,4 +9,10 @@ "main": "dist/ddz.min.js", | ||
"dev": "rollup -c -w", | ||
"build": "cross-env NODE_ENV=production rollup -c" | ||
"build": "cross-env NODE_ENV=production rollup -c", | ||
"test": "mocha --compilers js:babel-register --reporter spec", | ||
"test-cov": "babel-node ./node_modules/.bin/babel-istanbul cover ./node_modules/.bin/_mocha -- --compilers js:babel-register", | ||
"test-travis": "babel-node ./node_modules/.bin/babel-istanbul cover ./node_modules/.bin/_mocha --report lcovonly --" | ||
}, | ||
"pre-commit": [ | ||
"test" | ||
], | ||
"repository": { | ||
@@ -24,7 +30,16 @@ "type": "git", | ||
"devDependencies": { | ||
"babel-cli": "^6.26.0", | ||
"babel-core": "^6.26.0", | ||
"babel-istanbul": "^0.12.2", | ||
"babel-plugin-transform-runtime": "^6.23.0", | ||
"babel-preset-env": "^1.6.1", | ||
"babel-preset-latest": "^6.24.1", | ||
"babel-preset-stage-0": "^6.24.1", | ||
"babel-register": "^6.26.0", | ||
"coveralls": "^2.13.3", | ||
"cross-env": "^5.0.5", | ||
"istanbul-harmony": "^0.3.16", | ||
"mocha": "^3.5.3", | ||
"power-assert": "^1.4.4", | ||
"pre-commit": "^1.2.2", | ||
"rollup": "^0.52.3", | ||
@@ -31,0 +46,0 @@ "rollup-plugin-babel": "^3.0.3", |
# ddz | ||
[![License MIT](https://img.shields.io/npm/l/ddz.svg)](https://github.com/zhuweiyou/ddz/blob/master/LICENSE) | ||
[![Build Status](https://travis-ci.org/zhuweiyou/ddz.svg?branch=master)](https://travis-ci.org/zhuweiyou/ddz) | ||
[![Coverage Status](https://coveralls.io/repos/github/zhuweiyou/ddz/badge.svg?branch=master)](https://coveralls.io/github/zhuweiyou/ddz?branch=master) | ||
[![NPM Version](https://img.shields.io/npm/v/ddz.svg)](https://www.npmjs.com/package/ddz) | ||
[![NPM Download](https://img.shields.io/npm/dt/ddz.svg)](https://www.npmjs.com/package/ddz) | ||
斗地主工具包,功能正在陆续开发中 | ||
@@ -41,3 +48,3 @@ | ||
获取一副新牌,从小到大,黑红梅方 | ||
获取一副新牌,从小到大,黑红梅方,一共 54 张 | ||
@@ -44,0 +51,0 @@ ```js |
@@ -19,3 +19,3 @@ import resolve from 'rollup-plugin-node-resolve' | ||
replace({ | ||
'process.env.VERSION': JSON.stringify(pkg.version) | ||
'process.env.npm_package_version': JSON.stringify(pkg.version) | ||
}), | ||
@@ -27,3 +27,11 @@ resolve({ | ||
exclude: 'node_modules/**', | ||
runtimeHelpers: true | ||
runtimeHelpers: true, | ||
babelrc: false, | ||
presets: [ | ||
['env', {'modules': false}], | ||
'stage-0' | ||
], | ||
plugins: [ | ||
'transform-runtime' | ||
] | ||
}), | ||
@@ -30,0 +38,0 @@ commonjs(), |
@@ -1,1 +0,1 @@ | ||
export default () => process.env.VERSION | ||
export default () => process.env.npm_package_version |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
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
16234
25
338
155
0
20