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

@use/core

Package Overview
Dependencies
Maintainers
2
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@use/core - npm Package Compare versions

Comparing version 0.3.0 to 0.4.0

lib/twos.js

7

CHANGES.md

@@ -0,1 +1,8 @@

**0.4.0 - 2017/01/04**
1. add function wrapper which converts params into pairs of plugin and options object to call the wrapped function with. The options object is optional for each one.
2. add tests specifically for the wrapper
3. use wrapper for `use()` and `use.use()`
**0.3.0 - 2017/01/04**

@@ -2,0 +9,0 @@

15

lib/index.js
// Generated by CoffeeScript 1.12.2
var combine, gen, load, use, withOptions;
var combine, gen, inTwos, load, use, withOptions;
inTwos = require('./twos');
combine = function(defaultOptions, options) {

@@ -66,8 +68,11 @@ if ((defaultOptions != null) && (options != null)) {

}
theUse = function(plugin, options) {
if (scope.inTwos == null) {
scope.inTwos = inTwos;
}
theUse = scope.inTwos(function(plugin, options) {
return scope.use(this, scope, plugin, scope.combine(baseOptions, options));
};
theUse.use = function(plugin, options) {
});
theUse.use = scope.inTwos(function(plugin, options) {
return scope.use(scope, scope, plugin, scope.combine(baseOptions, options));
};
});
theUse.withOptions = function(defaultOptions) {

@@ -74,0 +79,0 @@ return scope.withOptions(scope, scope.combine(baseOptions, defaultOptions));

{
"name": "@use/core",
"version": "0.3.0",
"version": "0.4.0",
"description": "Add use() function for easy plugin ability.",

@@ -5,0 +5,0 @@ "main": "lib",

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