Comparing version 0.0.1 to 0.0.2
@@ -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({ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
18698
4
25