p-hatan/ mirror

pub repository

mirror.p-hatan.com

pubspec_lock_parse

2.2.0

Simple package for parsing pubspec.lock files with a type-safe API and rich error reporting.

Cached in Iran · Upstream SHA-256 matched

Download archive

Readme

Dart pub package

Supports parsing pubspec.lock files with robust error reporting

Designed around the pubspec_parse package, and mirrors its implementation and interface

Usage

import 'dart:io';
import 'package:pubspec_lock_parse/pubspec_lock_parse.dart';

void main() {
    final lockStr = File('path/to/pubspec.lock').readAsStringSync();
    final lockfile = PubspecLock.parse(lockStr);
}

You can find more about the PubspecLock object in the documentation here

Changelog

2.2.0

  • added source: sdk package types

2.1.0

  • added toJson methods to all exported objects

2.0.1

  • Better documentation

2.0.0

  • Null safety
  • Min dart sdk to 2.14.0

1.0.0

  • Initial release

Installing

export PUB_HOSTED_URL=https://pub.mirror.p-hatan.com
flutter pub add pubspec_lock_parse
pubspec.yaml
name: pubspec_lock_parse
version: 2.2.0
description: Simple package for parsing pubspec.lock files with a type-safe API and rich error reporting.
repository: https://github.com/matthewnitschke/pubspec_lock_parse

environment:
  sdk: '>=2.14.0 <3.0.0'

dependencies:
  args: ^2.3.1
  json_annotation: ^4.6.0
  pub_semver: ^2.1.1
  checked_yaml: ^2.0.1

dev_dependencies:
  build_runner: ^2.1.11
  json_serializable: ^6.3.1
  test: ^1.21.4
  stack_trace: ^1.10.0
  yaml: ^3.1.1

Version history

VersionPublishedArchiveSHA-256
1.0.02021-11-17T15:06:39.173581ZCachedbb15f281eba417dc26fe8aada8a9a456ef72b629dd438e04ea4cac34a1a75691
2.0.02021-11-21T00:34:40.911470ZCached09548af05dda890a51ce25a56a8d3857a01aa7e629b9aefbb090344c1c472df0
2.0.12021-12-13T19:03:52.390031ZCached1c8173808d9a61ebec3bfb511930c3caf0e24a8af407905b002a9e94e47f29c8
2.1.02022-07-10T05:54:21.912942ZCachedcc648292b222f05037043352edb5863506d38f80f8ee9c70b8b3603b09accb4b
2.2.02022-10-12T02:47:21.153769ZCached020cb470287124c936c30ebfc2f927b287f275b7bf7fc2ab11577e592c017764

Dependencies

args "^2.3.1"

checked_yaml "^2.0.1"

json_annotation "^4.6.0"

pub_semver "^2.1.1"