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

requirejs-memfiles

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

requirejs-memfiles - npm Package Compare versions

Comparing version 2.1.15-2 to 2.1.15-3

2

package.json
{
"name": "requirejs-memfiles",
"version": "2.1.15-2",
"version": "2.1.15-3",
"main": "index.js",

@@ -5,0 +5,0 @@ "repository": {

@@ -23,20 +23,23 @@ ## Why requirejs-memfiles?

requirejs.setFiles( files );
requirejs.optimize({
appDir: ".",
baseUrl: ".",
dir: "dist",
modules: [{
name: "output",
include: "main",
create: true
}]
}, function() {
var output = files[ "dist/output.js" ];
...
requirejs.setFiles( files, function( done ) {
requirejs.optimize({
appDir: ".",
baseUrl: ".",
dir: "dist",
modules: [{
name: "output",
include: "main",
create: true
}]
}, function() {
var output = files[ "dist/output.js" ];
...
done();
}, function( error ) {
// handle error
...
}, function( error ) {
// handle error
...
done();
});
});

@@ -47,3 +50,3 @@ ```

- **`requirejs.setFiles( files )`**
- **`requirejs.setFiles( files, callback )`**

@@ -60,2 +63,5 @@ **files** *Object* containing (path, data) key-value pairs, e.g.:

- **callback** *Function* called with one argument: a callback function that
must be called when use is complete.
## Test

@@ -62,0 +68,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