Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

factory-girl

Package Overview
Dependencies
Maintainers
1
Versions
56
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

factory-girl - npm Package Compare versions

Comparing version 3.0.0 to 3.0.1

2

index.js

@@ -205,3 +205,3 @@ /* global window, define */

}
return this._build(name, attrs, wrapCallback(callback));
return builder._build(name, attrs, wrapCallback(callback));
};

@@ -208,0 +208,0 @@

@@ -6,3 +6,3 @@ {

"author": "Simon Wade",
"version": "3.0.0",
"version": "3.0.1",
"keywords": [

@@ -9,0 +9,0 @@ "factory",

@@ -209,3 +209,17 @@ # factory-girl

require('factory-girl-bookshelf')();
// use the ObjectAdapter (that simply returns raw objects) for the `post` model
```
### `ObjectAdapter`
You can use the included ObjectAdapter to work without model classes. This adapter simply returns
the provided attribute objects.
```
factory.setAdapter(new factory.ObjectAdapter());
```
### Using Different Adapters Per-model
```
// use an ObjectAdapter for the `post` model only
factory.setAdapter(new factory.ObjectAdapter(), 'post');

@@ -212,0 +226,0 @@ ```

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