anima-pull2load
Advanced tools
Comparing version 1.0.3 to 2.0.0
@@ -23,2 +23,7 @@ # History | ||
可提前500px加载下一页数据 | ||
可提前500px加载下一页数据 | ||
## 2.0.0 | ||
去除spm,改为npm |
{ | ||
"name": "anima-pull2load", | ||
"version": "1.0.3", | ||
"description": "it's a widge supporting pull to load", | ||
"version": "2.0.0", | ||
"description": "it's a widget supporting pull to load", | ||
"keywords": [], | ||
@@ -11,2 +11,3 @@ "homepage": "", | ||
], | ||
"main": "index.js", | ||
"repository": { | ||
@@ -19,22 +20,20 @@ "type": "git", | ||
}, | ||
"licenses": "MIT", | ||
"spm": { | ||
"engines": { | ||
"seajs": "2.2.1" | ||
}, | ||
"tests": "tests/*.js" | ||
"entry": { | ||
"index": "./index.js" | ||
}, | ||
"main": "index.js", | ||
"dependencies": { | ||
"anima-yocto-lite": "~1.1.0", | ||
"spm-expect.js": "0.3.1", | ||
"seajs": "2.2.1" | ||
}, | ||
"devDependencies": { | ||
"spm-expect.js": "0.3.1", | ||
"anima-yocto": "~1.1.0", | ||
"spm-webpack": "~1.0.0" | ||
"atool-build": "0.6.x", | ||
"atool-doc": "^0.1.0", | ||
"atool-test": "^0.4.4", | ||
"dora": "0.3.x", | ||
"gh-pages": "^0.11.0", | ||
"object-assign": "^4.0.1" | ||
}, | ||
"scripts": { | ||
"build": "spm-webpack -c" | ||
"scripts": { | ||
"build": "atool-build", | ||
"test": "atool-test", | ||
"test-debug": "atool-test -k", | ||
"doc": "atool-doc", | ||
"doc-build": "atool-doc --build", | ||
"gh-pages": "atool-doc --build && gh-pages -d __site" | ||
}, | ||
@@ -44,3 +43,6 @@ "engines": { | ||
}, | ||
"publishConfig": {} | ||
"licenses": "MIT", | ||
"dependencies": { | ||
"anima-yocto-lite": "^2.0.0" | ||
} | ||
} |
# pull2load | ||
--- | ||
[](http://spmjs.io/package/pull2load) | ||
An awesome spm package! | ||
--- | ||
## Install | ||
``` | ||
$ spm install pull2load --save | ||
$ npm install anima-pull2load --save | ||
``` | ||
@@ -16,0 +9,0 @@ |
@@ -0,4 +1,5 @@ | ||
'use strict'; | ||
var $ = require('anima-yocto-lite'); | ||
var BUTTON = '<button class="pull2load" style="width:100%; border-radius: 12px; line-height:28px; background-color:#DCDCDC; margin-bottom:5px;">下条更精彩,点击加载</button>'; | ||
var BUTTON = '<button class="am-pull2load">下条更精彩,点击加载</button>'; | ||
@@ -33,2 +34,3 @@ var Pull2Load = function(callback, opt) { | ||
"prerender": 0, //预先加载 | ||
"buttonTemplate": BUTTON, | ||
}, setParams); | ||
@@ -39,3 +41,3 @@ }, | ||
if (this['loadbutton'] && this['container']) { | ||
$(this['container']).append(BUTTON); | ||
$(this['container']).append(this.buttonTemplate); | ||
callback(); | ||
@@ -42,0 +44,0 @@ }else { |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
No contributors or author data
MaintenancePackage does not specify a list of contributors or an author in package.json.
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 website
QualityPackage does not have a website.
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
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
1
2
6447
6
9
76
41
+ Addedanima-yocto-core@2.0.4(transitive)
+ Addedanima-yocto-event@2.0.5(transitive)
+ Addedanima-yocto-lite@2.0.2(transitive)
- Removedseajs@2.2.1
- Removedspm-expect.js@0.3.1
- Removedanima-yocto-core@1.1.1(transitive)
- Removedanima-yocto-event@1.0.3(transitive)
- Removedanima-yocto-lite@1.1.2(transitive)
- Removedseajs@2.2.1(transitive)
- Removedspm-expect.js@0.3.1(transitive)
Updatedanima-yocto-lite@^2.0.0