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

darken-sdk

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

darken-sdk - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

2

index.js

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

"use strict";Object.defineProperty(exports,"__esModule",{value:true});exports.default=void 0;require("regenerator-runtime/runtime");var _measure=_interopRequireDefault(require("./measure"));var _onIndexEntry=_interopRequireDefault(require("./onIndexEntry"));var _pullIndex=_interopRequireDefault(require("./pullIndex"));function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var _default=function _default(_ref){var config=_ref.config,logger=_ref.logger;var state={remaining:0,total:0};var SECONDS=new Intl.NumberFormat(config.locale,{maximumFractionDigits:1,style:"unit",unit:"second",unitDisplay:"long"});return(0,_measure.default)(function(){logger.info({context:{app:{name:"@akalauo/darken",version:"0.0.1"},config:config},type:"meta"});return(0,_pullIndex.default)({config:config,logger:logger})((0,_onIndexEntry.default)({config:config,logger:logger,state:state}))}).then(function(duration){logger.info({context:{duration:SECONDS.format(duration/1000),files:state.total},type:"done"})}).catch(function(error){logger.error({context:{duration:SECONDS.format(error.duration/1000),error:{message:error.message,type:error.name},files:state.total},type:"done"})})};exports.default=_default;
"use strict";Object.defineProperty(exports,"__esModule",{value:true});Object.defineProperty(exports,"Configuration",{enumerable:true,get:function get(){return _Configuration.default}});Object.defineProperty(exports,"Logger",{enumerable:true,get:function get(){return _Logger.default}});exports.darken=void 0;require("regenerator-runtime/runtime");var _Configuration=_interopRequireDefault(require("./Configuration"));var _Logger=_interopRequireDefault(require("./Logger"));var _measure=_interopRequireDefault(require("./measure"));var _onIndexEntry=_interopRequireDefault(require("./onIndexEntry"));var _pullIndex=_interopRequireDefault(require("./pullIndex"));function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var darken=function darken(_ref){var config=_ref.config,logger=_ref.logger;var state={remaining:0,total:0};var SECONDS=new Intl.NumberFormat(config.locale,{maximumFractionDigits:1,style:"unit",unit:"second",unitDisplay:"long"});return(0,_measure.default)(function(){logger.info({context:{app:{name:"@akalauo/darken",version:"0.0.1"},config:config},type:"meta"});return(0,_pullIndex.default)({config:config,logger:logger})((0,_onIndexEntry.default)({config:config,logger:logger,state:state}))}).then(function(duration){logger.info({context:{duration:SECONDS.format(duration/1000),files:state.total},type:"done"})}).catch(function(error){logger.error({context:{duration:SECONDS.format(error.duration/1000),error:{message:error.message,type:error.name},files:state.total},type:"done"})})};exports.darken=darken;
{
"name": "darken-sdk",
"version": "0.0.1",
"version": "0.0.2",
"description": "JavaScript SDK for Darken.sh, a universal patch/mirror/image/sync tool.",

@@ -10,2 +10,9 @@ "main": "index.js",

},
"repository": {
"type": "git",
"url": "https://gitlab.com/akalauo/darken-sdk.js"
},
"publishConfig": {
"access": "public"
},
"license": "MIT",

@@ -12,0 +19,0 @@ "scripts": {

@@ -16,5 +16,3 @@ # Darken SDK

```javascript
import Configuration from 'darken-sdk/Configuration';
import Logger from 'darken-sdk/Logger';
import darken from 'darken-sdk';
import { Configuration, Logger, darken } from 'darken-sdk';

@@ -21,0 +19,0 @@ darken({

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