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

assemblyscript-temporal

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

assemblyscript-temporal - npm Package Compare versions

Comparing version 2.2.2 to 2.2.3

5

assembly/index.ts

@@ -8,3 +8,6 @@ import "./env";

export * from "./enums";
export { now } from "./now";
export { Now } from "./now";
export { Instant } from "./instant";
// @deprecated `now` is not a standard API use `Now` instead
export { Now as now } from "./now";

2

assembly/now.ts

@@ -6,3 +6,3 @@ import { PlainDateTime } from "./plaindatetime";

export class now {
export class Now {
static plainDateTimeISO(): PlainDateTime {

@@ -9,0 +9,0 @@ const epochMillis = Date.now();

@@ -6,3 +6,3 @@ ## Development and roadmap

1. Non-timezone aware classes, i.e. `PlainDate`, `PlainDateTime`, etc with a hard-coded Gregorian calendar.
2. Ancillary classes, i.e. `Instant`, `Duration` and `now`
2. Ancillary classes, i.e. `Instant`, `Duration` and `Now`
3. Time-zone aware classes, `TimeZone`, `ZonedDateTime`, etc

@@ -342,3 +342,3 @@ 4. Non gregorian calendar systems

#### now
#### Now

@@ -345,0 +345,0 @@ Methods

{
"name": "assemblyscript-temporal",
"version": "2.2.2",
"version": "2.2.3",
"description": "An implementation of temporal within AssemblyScript, with an initial focus on non-timezone-aware classes and functionality.",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -112,8 +112,8 @@ ## assemblyscript-temporal

#### `now`
#### `Now`
The `now` object has several methods which give information about the current time and date.
The `Now` object has several methods which give information about the current time and date.
```javascript
dateTime = now.plainDateTimeISO();
dateTime = Now.plainDateTimeISO();
dateTime.toString(); // 2021-04-01T12:05:47.357

@@ -127,1 +127,3 @@ ```

There is a [brief document that outlines implementation progress and priorities](./development.md).

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