Comparing version 0.1.0 to 0.2.0
@@ -1,2 +0,8 @@ | ||
import { ITraceLoc } from "./itraceloc"; | ||
export interface ITraceLoc { | ||
readonly func: string; | ||
readonly file: string; | ||
readonly line: number; | ||
readonly col: number; | ||
toString(): string; | ||
} | ||
export declare function here(callDepth?: number): ITraceLoc; | ||
@@ -3,0 +9,0 @@ export declare class TraceLoc implements ITraceLoc { |
"use strict"; | ||
// import * as debugModule from "debug"; | ||
// const log = debugModule("traceloc"); | ||
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { | ||
@@ -5,0 +3,0 @@ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; |
{ | ||
"name": "traceloc", | ||
"version": "0.1.0", | ||
"version": "0.2.0", | ||
"description": "Trace the current location, i.e. filename, line, col ...", | ||
@@ -11,7 +11,5 @@ "main": "./out/traceloc.js", | ||
"dependencies": { | ||
"debug": "^2.6.6", | ||
"source-map-support": "^0.4.15" | ||
}, | ||
"devDependencies": { | ||
"@types/debug": "^0.0.29", | ||
"@types/node": "^7.0.14", | ||
@@ -18,0 +16,0 @@ "@types/source-map-support": "^0.2.28", |
@@ -1,4 +0,1 @@ | ||
// import * as debugModule from "debug"; | ||
// const log = debugModule("traceloc"); | ||
import { | ||
@@ -10,6 +7,4 @@ Expect, | ||
import { here, TraceLoc } from "../out/traceloc"; | ||
import { here, ITraceLoc, TraceLoc } from "../out/traceloc"; | ||
import { ITraceLoc } from "../out/itraceloc"; | ||
export class TracingTests { | ||
@@ -16,0 +11,0 @@ |
@@ -5,4 +5,12 @@ import { install } from "source-map-support"; | ||
import * as path from "path"; | ||
import { ITraceLoc } from "./itraceloc"; | ||
export interface ITraceLoc { | ||
readonly func: string; | ||
readonly file: string; | ||
readonly line: number; | ||
readonly col: number; | ||
toString(): string; | ||
} | ||
export function here(callDepth = 0): ITraceLoc { | ||
@@ -9,0 +17,0 @@ return new TraceLoc(callDepth + 1); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
1
8
82418
30
673
- Removeddebug@^2.6.6
- Removeddebug@2.6.9(transitive)
- Removedms@2.0.0(transitive)