New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

ribcage-gen

Package Overview
Dependencies
Maintainers
2
Versions
58
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ribcage-gen - npm Package Compare versions

Comparing version 1.0.1 to 1.1.0

30

backbone-component-template/index.js

@@ -0,5 +1,13 @@

'use strict';
var Base = require('ribcage-view')
, _ = require('lodash')
, State = require('ampersand-state').extend({
// forces you define all properties on the state model
// this helps catch bugs and makes code more readable
extraProperties: 'reject'
// output the derived properties and the props in toJSON
, toJSON: function toJSON(){
return _.extend(this.serialize(), this.getAttributes({derived: true}))
}
})

@@ -42,2 +50,18 @@

// helper methods
// e.g.
// , findModelIndex: function findModelIndex(model){
// this.collection.findIndex(model)
// }
// public methods
// e.g.
// , getLabel: function getLabel(){
// return this.state.label
// }
//
// , setLabel: function setLabel(label){
// this.state.label = label
// }
// Create Subviews

@@ -54,3 +78,3 @@ // , createSubviewX: function createSubviewX(){

// instantiate subviews
, afterInit: function afterInit() {
, afterInit: function afterInit(){
// e.g.

@@ -60,3 +84,3 @@ // this.subviewX = this.createSubviewX()

, afterRender: function afterRender() {
, afterRender: function afterRender(){
// e.g.

@@ -66,3 +90,3 @@ // this.appendSubview(this.subviewX)

, context: function context() {
, context: function context(){
return this.state.toJSON()

@@ -69,0 +93,0 @@ }

2

package.json
{
"name": "ribcage-gen",
"version": "1.0.1",
"version": "1.1.0",
"description": "A generator script for ribcage components",

@@ -5,0 +5,0 @@ "main": "index.js",

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