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

@waiting/shared-types-dev

Package Overview
Dependencies
Maintainers
1
Versions
74
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@waiting/shared-types-dev - npm Package Compare versions

Comparing version 1.0.0 to 1.1.0

8

CHANGELOG.md

@@ -6,2 +6,10 @@ # Change Log

# 1.1.0 (2021-04-08)
**Note:** Version bump only for package @waiting/shared-types-dev
# 1.0.0 (2021-04-07)

@@ -8,0 +16,0 @@

9

dist/index.cjs.js

@@ -5,6 +5,6 @@ /**

*
* @version 8.4.2
* @version 1.0.0
* @author waiting
* @license MIT
* @link https://github.com/waitingsong/shared#readme
* @link https://github.com/waitingsong/ts-ast#readme
*/

@@ -140,4 +140,5 @@

const start = input.getStart();
// postions of variable, not of declaration
const { line, column } = input.getSourceFile().getLineAndColumnAtPos(start);
const type = input.getType(); // getText() => "import(..).DbDict<import(...).D>"
const type = input.getType(); // getText() => "import(url).DbDict<import(url).Db>"
let typeReferenceText = ''; // "DbDict<D>"

@@ -300,3 +301,3 @@ try {

+ JSON.stringify(obj, null, 2)
+ (appendingTypeAssert ? ` as ${typeText}` : '')
+ (appendingTypeAssert && info.typeReferenceText ? ` as ${typeText}` : '')
+ ` /* ${trailingString} */`;

@@ -303,0 +304,0 @@ express.replaceWithText(jsonCode);

@@ -117,4 +117,5 @@ import { ts, Project, SyntaxKind, } from 'ts-morph';

const start = input.getStart();
// postions of variable, not of declaration
const { line, column } = input.getSourceFile().getLineAndColumnAtPos(start);
const type = input.getType(); // getText() => "import(..).DbDict<import(...).D>"
const type = input.getType(); // getText() => "import(url).DbDict<import(url).Db>"
let typeReferenceText = ''; // "DbDict<D>"

@@ -121,0 +122,0 @@ try {

@@ -66,3 +66,3 @@ import { deepFind } from '../util';

+ JSON.stringify(obj, null, 2)
+ (appendingTypeAssert ? ` as ${typeText}` : '')
+ (appendingTypeAssert && info.typeReferenceText ? ` as ${typeText}` : '')
+ ` /* ${trailingString} */`;

@@ -69,0 +69,0 @@ express.replaceWithText(jsonCode);

{
"name": "@waiting/shared-types-dev",
"author": "waiting",
"version": "1.0.0",
"version": "1.1.0",
"description": "shared typescript types devel",

@@ -19,8 +19,8 @@ "private": false,

"bugs": {
"url": "https://github.com/waitingsong/shared/issues"
"url": "https://github.com/waitingsong/ts-ast/issues"
},
"homepage": "https://github.com/waitingsong/shared#readme",
"homepage": "https://github.com/waitingsong/ts-ast#readme",
"repository": {
"type": "git",
"url": "git@github.com:waitingsong/shared.git"
"url": "git@github.com:waitingsong/ts-ast.git"
},

@@ -94,3 +94,3 @@ "license": "MIT",

},
"gitHead": "547bacce31d985208fec125b929f4e04463d1a80"
"gitHead": "98276463896aa09840e84e596aa1c1fac318e88c"
}

@@ -203,4 +203,5 @@ import {

const start = input.getStart()
// postions of variable, not of declaration
const { line, column } = input.getSourceFile().getLineAndColumnAtPos(start)
const type = input.getType() // getText() => "import(..).DbDict<import(...).D>"
const type = input.getType() // getText() => "import(url).DbDict<import(url).Db>"

@@ -207,0 +208,0 @@ let typeReferenceText = '' // "DbDict<D>"

@@ -27,3 +27,3 @@ /* eslint-disable @typescript-eslint/ban-types */

/** Default: true */
appendingTypeAssert: boolean
appendingTypeAssert?: boolean
}

@@ -128,3 +128,3 @@

+ JSON.stringify(obj, null, 2)
+ (appendingTypeAssert ? ` as ${typeText}` : '')
+ (appendingTypeAssert && info.typeReferenceText ? ` as ${typeText}` : '')
+ ` /* ${trailingString} */`

@@ -131,0 +131,0 @@ express.replaceWithText(jsonCode)

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