backbone.marionette-lazy-loading-module
Advanced tools
Comparing version 0.0.1 to 1.0.0
{ | ||
"name": "backbone.marionette-lazy-loading-module", | ||
"description": "Lazy loading data module for backbone.marionette", | ||
"version": "0.0.1", | ||
"directory": "backbone.marionette-lazy-loading-module", | ||
"keywords": [ | ||
"backbone", | ||
"marionette", | ||
"lazyloading", | ||
"requirejs", | ||
"underscorejs", | ||
"jquery", | ||
"handlebars", | ||
"javacript", | ||
"front-end", | ||
"web", | ||
"development" | ||
], | ||
"homepage": "https://github.com/denar90/backbone.marionette-lazyLoading-module", | ||
"version": "1.0.0", | ||
"description": "", | ||
"main": "index.js", | ||
"scripts": { | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/denar90/backbone.marionette-lazyLoading-module" | ||
"url": "git+https://github.com/npm/deprecate-holder.git" | ||
}, | ||
"contributors": [{ | ||
"name": "Denysov Artem", | ||
"email": "denysov.artem@gmail.com" | ||
}], | ||
"dependencies": { | ||
"backbone.marionette": "2.4.2", | ||
"requirejs": "*", | ||
"requirejs-text": "*", | ||
"handlebars": "3.0.3" | ||
"author": "", | ||
"license": "ISC", | ||
"bugs": { | ||
"url": "https://github.com/npm/deprecate-holder/issues" | ||
}, | ||
"license": "MIT" | ||
"homepage": "https://github.com/npm/deprecate-holder#readme" | ||
} |
@@ -1,93 +0,5 @@ | ||
#Backbone.marionette lazy loading module | ||
# Deprecated Package | ||
Lazy loading data module for backbone.marionette | ||
This package is no longer supported and has been deprecated. To avoid malicious use, npm is hanging on to the package name. | ||
##Getting started | ||
###Quick start | ||
* Clone the repository: `git clone https://github.com/denar90/backbone.marionette-lazyLoading-module.git` | ||
* Add dependency into your `bower.json` file and run `bower install` | ||
##Usage | ||
* Configure your requirejs file | ||
````javascript | ||
require.config({ | ||
... | ||
paths: { | ||
... | ||
app: 'path-to-app-file', | ||
lazyLoading: 'path-to-module' // example 'modules/backbone.marionette-lazyLoading-module/' | ||
... | ||
} | ||
... | ||
}); | ||
```` | ||
* Include and run module | ||
````javascript | ||
//for example | ||
define(['marionette', 'lazyLoading/lazyLoading'], function(Marionette, lazyLoading) { | ||
var App = new Marionette.Application(); | ||
App.addRegions({ | ||
mainRegion: '#app' | ||
}); | ||
App.on("start", function() { | ||
if (Backbone.history) { | ||
Backbone.history.start(); | ||
lazyLoading.start({ | ||
moduleRegion: App.mainRegion, | ||
getDataUrl: 'getData.php', | ||
offset: 0, | ||
limit: 10 | ||
}); | ||
} | ||
}); | ||
return App; | ||
}); | ||
```` | ||
##Options | ||
#### moduleRegion | ||
* type: Object | ||
Required param. | ||
Region where data will be past | ||
#### getDataUrl | ||
* type: String | ||
* default: '' | ||
Url to getting data from server. Module automatically will be build url with `offset` and `limit`. | ||
#### offset | ||
* type: String | ||
* default: 0 | ||
Data offset. Says server from what number get data | ||
#### limit | ||
* type: String | ||
* default: 10 | ||
Data limit for one request. | ||
#### listTemplate | ||
* type: string | ||
* default: '' | ||
Template for all list of data. It's kind of container. If `listTemplate` isn't set module will use default. | ||
#### itemTemplate | ||
* type: string | ||
* default: '' | ||
Template for each item. If `itemTemplate` isn't set module will use default. | ||
Please contact support@npmjs.com if you have questions about this 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
Empty package
Supply chain riskPackage does not contain any code. It may be removed, is name squatting, or the result of a faulty package publish.
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
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 tests
QualityPackage does not have any tests. This is a strong signal of a poorly maintained or low quality package.
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
Wildcard dependency
QualityPackage has a dependency with a floating version range. This can cause issues if the dependency publishes a new major version.
Found 2 instances in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
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 v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
0
1
0
701
2
0
6
3
- Removedbackbone.marionette@2.4.2
- Removedhandlebars@3.0.3
- Removedrequirejs@*
- Removedrequirejs-text@*
- Removedamdefine@1.0.1(transitive)
- Removedasync@0.2.10(transitive)
- Removedbackbone@1.2.1(transitive)
- Removedbackbone.babysitter@0.1.12(transitive)
- Removedbackbone.marionette@2.4.2(transitive)
- Removedbackbone.wreqr@1.4.0(transitive)
- Removedhandlebars@3.0.3(transitive)
- Removedminimist@0.0.10(transitive)
- Removedoptimist@0.3.70.6.1(transitive)
- Removedrequirejs@2.3.7(transitive)
- Removedrequirejs-text@2.0.16(transitive)
- Removedsource-map@0.1.43(transitive)
- Removeduglify-js@2.3.6(transitive)
- Removedunderscore@1.8.3(transitive)
- Removedwordwrap@0.0.3(transitive)