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

caterpillar

Package Overview
Dependencies
Maintainers
2
Versions
150
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

caterpillar - npm Package Compare versions

Comparing version 6.4.0 to 6.5.0-next.1599208656.2cac1bc1fd4bfd911ca3e9ec2a0e6e1cd9122099

edition-es2019-esm/index.js

2

compiled-types/logger.d.ts

@@ -35,3 +35,3 @@ import { LevelInfo, LevelsMap } from 'rfc-log-levels'

* The configuration to use for the line offset.
* This defaults to the caterpillar filename, and any method that includes the word `log`.
* This defaults to any file path that includes `logger`, and any method that includes the word `log`.
*/

@@ -38,0 +38,0 @@ lineOffset: Offset

@@ -21,6 +21,6 @@ import getLogLevel, { rfcLogLevels } from 'rfc-log-levels'

* The configuration to use for the line offset.
* This defaults to the caterpillar filename, and any method that includes the word `log`.
* This defaults to any file path that includes `logger`, and any method that includes the word `log`.
*/
this.lineOffset = {
file: __filename,
file: /logger/i,
method: /log/i,

@@ -27,0 +27,0 @@ }

@@ -42,2 +42,3 @@ /**

const str = typeof data === 'string' ? data : JSON.stringify(data)
// requires typescript dom lib to define TextEncoder global
if (typeof TextEncoder !== 'undefined') {

@@ -44,0 +45,0 @@ // compatibility with deno and later node streams

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

import filedirname from 'https://unpkg.com/filedirname@^2.0.0/edition-deno/index.ts'
const [__filename, __dirname] = filedirname(import.meta.url)
import getLogLevel, {

@@ -11,3 +9,3 @@ rfcLogLevels,

Location,
} from 'https://unpkg.com/get-current-line@^6.0.0/edition-deno/index.ts'
} from 'https://unpkg.com/get-current-line@^6.1.0/edition-deno/index.ts'
import { Transform } from './transform.ts'

@@ -51,6 +49,6 @@

* The configuration to use for the line offset.
* This defaults to the caterpillar filename, and any method that includes the word `log`.
* This defaults to any file path that includes `logger`, and any method that includes the word `log`.
*/
public lineOffset: Offset = {
file: __filename,
file: /logger/i,
method: /log/i,

@@ -57,0 +55,0 @@ }

@@ -61,2 +61,3 @@ /**

const str = typeof data === 'string' ? data : JSON.stringify(data)
// requires typescript dom lib to define TextEncoder global
if (typeof TextEncoder !== 'undefined') {

@@ -63,0 +64,0 @@ // compatibility with deno and later node streams

@@ -5,3 +5,3 @@ // Imports

import { inspect } from 'https://deno.land/std/node/util.ts'
import * as ansi from 'https://unpkg.com/@bevry/ansi@^1.3.0/edition-deno/index.ts'
import * as ansi from 'https://unpkg.com/@bevry/ansi@^1.4.0/edition-deno/index.ts'

@@ -8,0 +8,0 @@ /**

@@ -66,6 +66,6 @@ 'use strict'

* The configuration to use for the line offset.
* This defaults to the caterpillar filename, and any method that includes the word `log`.
* This defaults to any file path that includes `logger`, and any method that includes the word `log`.
*/
this.lineOffset = {
file: __filename,
file: /logger/i,
method: /log/i,

@@ -72,0 +72,0 @@ }

@@ -45,2 +45,3 @@ 'use strict'

const str = typeof data === 'string' ? data : JSON.stringify(data)
// requires typescript dom lib to define TextEncoder global
if (typeof TextEncoder !== 'undefined') {

@@ -47,0 +48,0 @@ // compatibility with deno and later node streams

@@ -65,6 +65,6 @@ 'use strict'

* The configuration to use for the line offset.
* This defaults to the caterpillar filename, and any method that includes the word `log`.
* This defaults to any file path that includes `logger`, and any method that includes the word `log`.
*/
this.lineOffset = {
file: __filename,
file: /logger/i,
method: /log/i,

@@ -71,0 +71,0 @@ }

@@ -45,2 +45,3 @@ 'use strict'

const str = typeof data === 'string' ? data : JSON.stringify(data)
// requires typescript dom lib to define TextEncoder global
if (typeof TextEncoder !== 'undefined') {

@@ -47,0 +48,0 @@ // compatibility with deno and later node streams

# History
## v6.5.0 2020 September 4
- Updated dependencies, [base files](https://github.com/bevry/base), and [editions](https://editions.bevry.me) using [boundation](https://github.com/bevry/boundation)
## v6.4.0 2020 August 18

@@ -4,0 +8,0 @@

{
"title": "Caterpillar",
"name": "caterpillar",
"version": "6.4.0",
"version": "6.5.0-next.1599208656.2cac1bc1fd4bfd911ca3e9ec2a0e6e1cd9122099",
"description": "Caterpillar is the ultimate logging system for Deno, Node.js, and Web Browsers. Log levels are implemented to the RFC standard. Log entries can be filtered and piped to various streams, including coloured output to the terminal, the browser's console, and debug files. You can even write your own transforms.",

@@ -17,3 +17,5 @@ "homepage": "https://github.com/bevry/caterpillar",

"denoland",
"dom",
"es2019",
"esnext",
"log",

@@ -91,2 +93,3 @@ "logger",

"tags": [
"source",
"typescript",

@@ -98,2 +101,16 @@ "import"

{
"description": "TypeScript compiled against ES2019 for web browsers with Import for modules",
"directory": "edition-browsers",
"entry": "index.js",
"tags": [
"compiled",
"javascript",
"import"
],
"engines": {
"node": false,
"browsers": "defaults"
}
},
{
"description": "TypeScript compiled against ESNext for Node.js 14 with Require for modules",

@@ -103,2 +120,3 @@ "directory": "edition-esnext",

"tags": [
"compiled",
"javascript",

@@ -118,2 +136,3 @@ "esnext",

"tags": [
"compiled",
"javascript",

@@ -129,24 +148,13 @@ "es2019",

{
"description": "TypeScript compiled against ES2019 for web browsers with Import for modules",
"directory": "edition-browsers",
"description": "TypeScript compiled against ES2019 for Node.js 12 || 13 || 14 with Import for modules",
"directory": "edition-es2019-esm",
"entry": "index.js",
"tags": [
"compiled",
"javascript",
"es2019",
"import"
],
"engines": {
"node": false,
"browsers": "defaults"
}
},
{
"description": "TypeScript compiled against ESNext for Node.js with Import for modules",
"directory": "edition-node-esm",
"entry": "index.js",
"tags": [
"javascript",
"import"
],
"engines": {
"node": true,
"node": "12 || 13 || 14",
"browsers": false

@@ -175,3 +183,3 @@ }

"node": {
"import": "./edition-node-esm/index.js",
"import": "./edition-es2019-esm/index.js",
"default": "./index.cjs",

@@ -184,8 +192,9 @@ "require": "./edition-esnext/index.js"

},
"deno": "edition-deno/index.ts",
"browser": "edition-browsers/index.js",
"module": "edition-browsers/index.js",
"dependencies": {
"@bevry/ansi": "^1.3.0",
"@bevry/ansi": "^1.4.0",
"editions": "^4.1.0",
"get-current-line": "^6.0.0",
"get-current-line": "^6.1.0",
"rfc-log-levels": "^3.13.0"

@@ -197,3 +206,3 @@ },

"@typescript-eslint/parser": "^4.0.1",
"assert-helpers": "^7.0.1",
"assert-helpers": "^7.2.0",
"eslint": "^7.8.1",

@@ -204,3 +213,3 @@ "eslint-config-bevry": "^3.19.0",

"kava": "^5.11.0",
"make-deno-edition": "^1.1.0",
"make-deno-edition": "^1.1.1",
"prettier": "^2.1.1",

@@ -211,3 +220,3 @@ "projectz": "^2.15.0",

"typescript": "^4.0.2",
"valid-directory": "^3.2.0",
"valid-directory": "^3.3.0",
"valid-module": "^1.13.0"

@@ -217,8 +226,8 @@ },

"our:clean": "rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next",
"our:compile": "npm run our:compile:deno && npm run our:compile:edition-browsers && npm run our:compile:edition-es2019 && npm run our:compile:edition-esnext && npm run our:compile:edition-node-esm && npm run our:compile:types",
"our:compile": "npm run our:compile:deno && npm run our:compile:edition-browsers && npm run our:compile:edition-es2019 && npm run our:compile:edition-es2019-esm && npm run our:compile:edition-esnext && npm run our:compile:types",
"our:compile:deno": "make-deno-edition --attempt",
"our:compile:edition-browsers": "tsc --module ESNext --target ES2019 --outDir ./edition-browsers --project tsconfig.json && ( test ! -d edition-browsers/source || ( mv edition-browsers/source edition-temp && rm -Rf edition-browsers && mv edition-temp edition-browsers ) )",
"our:compile:edition-es2019": "tsc --module commonjs --target ES2019 --outDir ./edition-es2019 --project tsconfig.json && ( test ! -d edition-es2019/source || ( mv edition-es2019/source edition-temp && rm -Rf edition-es2019 && mv edition-temp edition-es2019 ) ) && echo '{\"type\": \"commonjs\"}' > edition-es2019/package.json",
"our:compile:edition-es2019-esm": "tsc --module ESNext --target ES2019 --outDir ./edition-es2019-esm --project tsconfig.json && ( test ! -d edition-es2019-esm/source || ( mv edition-es2019-esm/source edition-temp && rm -Rf edition-es2019-esm && mv edition-temp edition-es2019-esm ) ) && echo '{\"type\": \"module\"}' > edition-es2019-esm/package.json",
"our:compile:edition-esnext": "tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) ) && echo '{\"type\": \"commonjs\"}' > edition-esnext/package.json",
"our:compile:edition-node-esm": "tsc --module ESNext --target ESNext --outDir ./edition-node-esm --project tsconfig.json && ( test ! -d edition-node-esm/source || ( mv edition-node-esm/source edition-temp && rm -Rf edition-node-esm && mv edition-temp edition-node-esm ) ) && echo '{\"type\": \"module\"}' > edition-node-esm/package.json",
"our:compile:types": "tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )",

@@ -259,3 +268,5 @@ "our:deploy": "echo no need for this project",

},
"deno": "edition-deno/index.ts"
"boundation": {
"dom": true
}
}

@@ -61,3 +61,3 @@ <!-- TITLE/ -->

``` typescript
import * as pkg from 'https://unpkg.com/caterpillar@^6.4.0/edition-deno/index.ts'
import * as pkg from 'https://unpkg.com/caterpillar@^6.5.0/edition-deno/index.ts'
```

@@ -69,3 +69,3 @@

<script type="module">
import * as pkg from '//cdn.skypack.dev/caterpillar@^6.4.0'
import * as pkg from '//cdn.skypack.dev/caterpillar@^6.5.0'
</script>

@@ -78,3 +78,3 @@ ```

<script type="module">
import * as pkg from '//unpkg.com/caterpillar@^6.4.0'
import * as pkg from '//unpkg.com/caterpillar@^6.5.0'
</script>

@@ -87,3 +87,3 @@ ```

<script type="module">
import * as pkg from '//dev.jspm.io/caterpillar@6.4.0'
import * as pkg from '//dev.jspm.io/caterpillar@6.5.0'
</script>

@@ -98,6 +98,6 @@ ```

<li><code>caterpillar/source/index.ts</code> is <a href="https://www.typescriptlang.org/" title="TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. ">TypeScript</a> source code with <a href="https://babeljs.io/docs/learn-es2015/#modules" title="ECMAScript Modules">Import</a> for modules</li>
<li><code>caterpillar/edition-browsers/index.js</code> is <a href="https://www.typescriptlang.org/" title="TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. ">TypeScript</a> compiled against <a href="https://en.wikipedia.org/wiki/ECMAScript#10th_Edition_-_ECMAScript_2019" title="ECMAScript ES2019">ES2019</a> for web browsers with <a href="https://babeljs.io/docs/learn-es2015/#modules" title="ECMAScript Modules">Import</a> for modules</li>
<li><code>caterpillar/edition-esnext/index.js</code> is <a href="https://www.typescriptlang.org/" title="TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. ">TypeScript</a> compiled against <a href="https://en.wikipedia.org/wiki/ECMAScript#ES.Next" title="ECMAScript Next">ESNext</a> for <a href="https://nodejs.org" title="Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine">Node.js</a> 14 with <a href="https://nodejs.org/dist/latest-v5.x/docs/api/modules.html" title="Node/CJS Modules">Require</a> for modules</li>
<li><code>caterpillar/edition-es2019/index.js</code> is <a href="https://www.typescriptlang.org/" title="TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. ">TypeScript</a> compiled against <a href="https://en.wikipedia.org/wiki/ECMAScript#10th_Edition_-_ECMAScript_2019" title="ECMAScript ES2019">ES2019</a> for <a href="https://nodejs.org" title="Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine">Node.js</a> 10 || 12 || 13 || 14 with <a href="https://nodejs.org/dist/latest-v5.x/docs/api/modules.html" title="Node/CJS Modules">Require</a> for modules</li>
<li><code>caterpillar/edition-browsers/index.js</code> is <a href="https://www.typescriptlang.org/" title="TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. ">TypeScript</a> compiled against <a href="https://en.wikipedia.org/wiki/ECMAScript#10th_Edition_-_ECMAScript_2019" title="ECMAScript ES2019">ES2019</a> for web browsers with <a href="https://babeljs.io/docs/learn-es2015/#modules" title="ECMAScript Modules">Import</a> for modules</li>
<li><code>caterpillar/edition-node-esm/index.js</code> is <a href="https://www.typescriptlang.org/" title="TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. ">TypeScript</a> compiled against <a href="https://en.wikipedia.org/wiki/ECMAScript#ES.Next" title="ECMAScript Next">ESNext</a> for <a href="https://nodejs.org" title="Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine">Node.js</a> with <a href="https://babeljs.io/docs/learn-es2015/#modules" title="ECMAScript Modules">Import</a> for modules</li>
<li><code>caterpillar/edition-es2019-esm/index.js</code> is <a href="https://www.typescriptlang.org/" title="TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. ">TypeScript</a> compiled against <a href="https://en.wikipedia.org/wiki/ECMAScript#10th_Edition_-_ECMAScript_2019" title="ECMAScript ES2019">ES2019</a> for <a href="https://nodejs.org" title="Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine">Node.js</a> 12 || 13 || 14 with <a href="https://babeljs.io/docs/learn-es2015/#modules" title="ECMAScript Modules">Import</a> for modules</li>
<li><code>caterpillar/edition-deno/index.ts</code> is <a href="https://www.typescriptlang.org/" title="TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. ">TypeScript</a> source code made to be compatible with <a href="https://deno.land" title="Deno is a secure runtime for JavaScript and TypeScript, it is an alternative to Node.js">Deno</a></li></ul>

@@ -104,0 +104,0 @@

@@ -41,6 +41,6 @@ import getLogLevel, { rfcLogLevels, LevelInfo, LevelsMap } from 'rfc-log-levels'

* The configuration to use for the line offset.
* This defaults to the caterpillar filename, and any method that includes the word `log`.
* This defaults to any file path that includes `logger`, and any method that includes the word `log`.
*/
public lineOffset: Offset = {
file: __filename,
file: /logger/i,
method: /log/i,

@@ -47,0 +47,0 @@ }

@@ -61,2 +61,3 @@ /**

const str = typeof data === 'string' ? data : JSON.stringify(data)
// requires typescript dom lib to define TextEncoder global
if (typeof TextEncoder !== 'undefined') {

@@ -63,0 +64,0 @@ // compatibility with deno and later node streams

@@ -10,2 +10,3 @@ {

"target": "ESNext",
"lib": ["DOM.Iterable", "DOM", "ESNext"],
"module": "ESNext"

@@ -12,0 +13,0 @@ },

Sorry, the diff of this file is not supported yet

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