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

@types/platform

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/platform - npm Package Compare versions

Comparing version 1.0.27 to 1.3.0

26

platform/index.d.ts

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

// Type definitions for Platform 1.0.0
// Type definitions for Platform 1.3
// Project: https://github.com/bestiejs/platform.js

@@ -6,4 +6,3 @@ // Definitions by: Jake Hickman <https://github.com/JakeH/>

interface PlatformStatic {
declare interface Platform {
description?: string;

@@ -17,16 +16,17 @@ layout?: string;

version?: string;
os?: PlatformOS;
parse?(ua: string): PlatformStatic;
os?: {
architecture?: number;
family?: string;
version?: string;
toString(): string;
};
parse?(ua: string): Platform;
toString?(): string;
}
interface PlatformOS {
architecture?: number; //platform's docs say this is a string, but their code doesn't agree
family?: string;
version?: string;
toString(): string;
declare var platform: Platform;
declare module "platform" {
export = platform;
}
declare var platform: PlatformStatic;
{
"name": "@types/platform",
"version": "1.0.27",
"description": "TypeScript definitions for Platform 1.0.0",
"version": "1.3.0",
"description": "TypeScript definitions for Platform",
"license": "MIT",
"author": "Jake Hickman <https://github.com/JakeH/>",
"contributors": [
{
"name": "Jake Hickman",
"url": "https://github.com/JakeH/"
}
],
"main": "",

@@ -14,4 +19,5 @@ "repository": {

"dependencies": {},
"typings": "index.d.ts",
"typesPublisherContentHash": "906ab069cc03293dc8d7cc7d991e9e299038c768b0c3133052a7e7e2f598cbb3"
"peerDependencies": {},
"typesPublisherContentHash": "96650a6f428f33e2ccfd6e2b80ccc8f010e5533aa4682e4714056fa5734cdc18",
"typeScriptVersion": "2.0"
}

@@ -5,12 +5,10 @@ # Installation

# Summary
This package contains type definitions for Platform 1.0.0 (https://github.com/bestiejs/platform.js).
This package contains type definitions for Platform (https://github.com/bestiejs/platform.js).
# Details
Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/types-2.0/platform
Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/master/platform
Additional Details
* Last updated: Mon, 19 Sep 2016 17:28:59 GMT
* File structure: Global
* Library Dependencies: none
* Module Dependencies: none
* Last updated: Tue, 21 Mar 2017 15:13:34 GMT
* Dependencies: none
* Global values: platform

@@ -17,0 +15,0 @@

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