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

rosie

Package Overview
Dependencies
Maintainers
2
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rosie - npm Package Compare versions

Comparing version 2.0.0 to 2.0.1

16

package.json
{
"name": "rosie",
"version": "2.0.0",
"version": "2.0.1",
"description": "factory for building JavaScript objects, mostly useful for setting up test data. Inspired by factory_girl",

@@ -16,8 +16,4 @@ "keywords": [

"devDependencies": {
"electron": "^1.3.4",
"eslint": "^3.4.0",
"jasmine-core": "^2.4.1",
"karma": "^1.2.0",
"karma-electron": "^4.1.0",
"karma-jasmine": "^1.0.2"
"jest": "^22.4.3"
},

@@ -29,9 +25,9 @@ "engines": {

"type": "git",
"url": "git://github.com/bkeepers/rosie.git"
"url": "git://github.com/rosiejs/rosie.git"
},
"main": "src/rosie.js",
"scripts": {
"pretest": "eslint src spec",
"test": "./node_modules/karma/bin/karma start --singleRun true",
"watch": "./node_modules/karma/bin/karma start"
"pretest": "eslint src",
"test": "jest",
"watch": "jest --watch"
},

@@ -38,0 +34,0 @@ "files": [

@@ -182,17 +182,2 @@ /**

/**
* Sets the constructor for this factory to be another factory. This can be
* used to create more specific sub-types of factories.
*
* @param {Factory} parentFactory
* @return {Factory}
*/
inherits: function(parentFactory) {
console.warn('Factory#inherits is deprecated and will be removed in rosie v2. Please use Factory#extends instead.'); // eslint-disable-line no-console
this.construct = function(attributes, options) {
return Factory.build(parentFactory, attributes, options);
};
return this;
},
/**
* Builds a plain object containing values for each of the declared

@@ -469,7 +454,11 @@ * attributes. The result of this is the same as the result when using #build

if (typeof exports === 'object' && typeof module !== 'undefined') {
/* eslint-env commonjs */
exports.Factory = Factory;
/* eslint-env commonjs:false */
} else if (typeof define === 'function' && define.amd) {
/* eslint-env amd */
define([], function() { return {Factory: Factory}; });
/* eslint-env amd:false */
} else if (this) {
this.Factory = Factory;
}
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